0
Welcome Guest! Login
0 items Join Now

SOLVED Need help for a new preset with an extra section

    • Wouter's Avatar
    • Wouter
    • Jr. Rocketeer
    • Posts: 21
    • Thanks: 0

    SOLVED Need help for a new preset with an extra section

    Posted 3 years 6 months ago
    • Hey,
      I'm starting to understand Gantry 5 more and more.
      I use Helium and would like to have an extra section between Main and Footer with 2 module positions in it.
      For that I use this documentation:

      docs.gantry.org/gantry5/advanced/creating-layout-presets

      But I'm doing something wrong somewhere because I can't create and load a new preset without an error appearing.

      Can anyone help me with the yaml file that I can then load into Gantry 5?

      Thank you in advance.

      Wouter
    • Best regards,
      Wouter
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Need help for a new preset with an extra section

    Posted 3 years 6 months ago
    • Well, those are the docs and it is an advanced subject. Did you know that you can create additional rows in existing sections? (that's usually a better alternative than trying to create new layout presets for yourself).

      The most common mistake in creating layout presets is using tabs in the yaml files rather than spaces (8you cannot use tabs).

      What error message are you getting?

      Please would you post your URL, superuser id and pswd in the secure tab of your post and I'll have a look for you.

      Please post your FTP logon, password and FTP URL in the secure area of your post.


      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Wouter's Avatar
    • Wouter
    • Jr. Rocketeer
    • Posts: 21
    • Thanks: 0

    Re: SOLVED Need help for a new preset with an extra section

    Posted 3 years 6 months ago
    • This the error I receive:
      500 Internal Server Error
      Oops, Failed to read fooruit-home.yaml: You cannot define a mapping item when in a sequence at line 2 (near "`/mainbottom/:").

      I suspect it has to do with adding the mainbottom part.
      I copied that info from the example in the documentation I referenced.
      But apparently that's not going well.
      Unfortunately I don't see what I should place there to get a Mainbottom under Main.
      In the attachment I have added the yaml file.


      I understand your advice to create an extra row under an existing section.
      But I don't think that's possible under the Main section because that section is split into three parts.
      Below that I can't add a row that spans the width of Aside Main and Sidebar.
      Is that right?
    • Best regards,
      Wouter
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Need help for a new preset with an extra section

    Posted 3 years 6 months ago
    • There's quite a lot wrong in that yaml file see screenshots.

      It's important to understand that this is an advanced topic that requires good skills to undertake. The thing you should understand is that in YAML files indentation has meaning, that means you cannot use tabs to indent lines - you have to use spaces. Also, the content of the yaml has to have integroty - i.e. there are things within it that relate to other things therein too and you have to get them right.

      Sorry, but as this is advanced customisation I can't really spend much time going through every line, but hopefully i've pointer you in the right direction with the screenshots. The best thing you can do now is study existing YAML file files that you know to work.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Wouter's Avatar
    • Wouter
    • Jr. Rocketeer
    • Posts: 21
    • Thanks: 0

    Re: SOLVED Need help for a new preset with an extra section

    Posted 3 years 6 months ago
    • If it is so complicated to add an extra row somewhere in the template, then Gantry is not the right template framework for me.

      I am currently testing T4. Looks like I can handle that better.

      Thank you very much for the explanation.
      This topic can be closed.
    • Best regards,
      Wouter
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED Need help for a new preset with an extra section

    Posted 3 years 6 months ago
    • Adding extra rows is easy - you just do that on the g5 admin layout - but you wanted to add sections, which isn't so easy.

      Good luck with your project.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.052 seconds