gantry / gantry5

:rocket: Next Generation Template / Theme Framework

Home Page:http://gantry.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems with Container-Section in Joomla5, Gantry 5.5.17

selfpubservice opened this issue · comments

Hi everybody,

Joomla 5.03, Gantry 5.5.17, php 8.2/8.3

Strange behaviour with Container-Sections in Joomla5-Templates: The outline settings are not transferred to the generated code.

Example:
Screenshot 2024-04-15 at 10-18-04 Zahnarztpraxis Neukirchen - Administration

Layout is always full width of screen, no "boxed content" and the class "section-vertical-paddings" is not included into the section tag. The width settings of g-sidebar and g-main are also ignored and set to 25% / 75%, not to 20/60% as expected.

Resulting Code:

<section id="g-container-main" class="g-wrapper">
	<div class="g-grid">
		<div class="g-block size-25">
			<aside id="g-sidebar">
				<div class="g-grid"> 
					<div class="g-block size-100">
						<div class="g-content">
							...
						</div>
					</div>
				</div>
				<div class="g-grid">
					<div class="g-block size-100">
						<div class="g-content">
							...
			  			</div>
					</div>
				</div>
				<div class="g-grid">
					<div class="g-block size-100">
						<div class="g-content">
							...
			  			</div>
					</div>
				</div>
			</aside>
		</div>
		<div class="g-block size-75">
			<main id="g-mainbar">
				<div class="g-grid">
					<div class="g-block size-100">
						<div class="g-content">
							...
						</div>
					</div>
				</div>
				<div class="g-grid">
					<div class="g-block size-100">
						<div class="g-content">
							...
						</div>
					</div>
				</div>
				<div class="g-grid">
					<div class="g-block size-100">
						<div class="g-content">
							...
						</div>
					</div>
				</div>
			</main>
		</div>
	</div>
</section>

Maybe a bug in Gantry 5.5.17?

BG, Peter

What outline are you trying to set this up for? The default outline is not a home-particles outline
outlines

This actually has nothing to do with the outline or any home particles. Correctly set data is not transferred here to the generated code. Incidentally, this is a self-developed template based on the Helium template. This is the saved contaier section in the layout.yaml. This ist correctly what the screenshot in my first post show, but the generated code does ignore this.

/container-main/:
    -
      -
        'sidebar 20':
          -
            - position-position-2951
          -
            - position-position-2845
          -
            - position-position-9451
      -
        'mainbar 60':
          -
            - position-position-5795
          -
            - system-content-8739
          -
            - position-position-7786
      -
        'aside 20': {  }

...

container-main:
    attributes:
      boxed: '0'
      class: section-vertical-paddings
      extra: {  }

Can you make your site available for testing? I tested my own outline and it works.

Here is a sample installation J5.1.0 with Gantry 5.5.17, and the Helium Template. Outline is "Helium - Standard".
https://test5.selfpubservice.de/

I set a class and a tag to the container and the Aside area to 20%, Main to 60% and Sidebar to 20%.

The result is no class, no tag, Aside = 25%, and Main fills the rest as expected.

<section id="g-container-main" class="g-wrapper">
  <div class="g-container">
    <div class="g-grid">
      <div class="g-block size-25">
        <aside id="g-aside">
        ...
        </aside>
      </div>
      <div class="g-block size-75">
        <main id="g-mainbar">
        ...
       </main>
     <div>                                                

I would like your backend login details please.

It works for me
help-g5
Unpublished module in sidebar position