0
Welcome Guest! Login
0 items Join Now

Cannot make an alternative article layout with Gantry Base Template

  • Cannot make an alternative article layout with Gantry Base Template

    Posted 9 years 1 month ago
    • Hi

      I searched this forum to get an answer on the above problem. Read a topic about Alternative layout in the Cerulean template. Followed all instructions. Didn't work out.

      So, what's the problem? I need a few alternative layouts in com_content > featured. So I copied the related files from plugins > system > gantry > overrides > 3.3 > 2.5 > com_content > featured to my templates > gantry > html > com_content ? featured folder. Copied these files in the same folder and renamed them.

      After that I copied these renamed files to the templates > gantry > html > joomla > 3.0 > com_content > featured folder (also tried to put them in a new folder called 3.3. Uploaded all files, erased gantry cache. Nothing to see in the Alternative layout dropdown except for the default layout.

      I'm stuck now, tried different names, different folders, can't think of anything else.

      And I am really in need of these alternatives layouts (need 4 of them).

      Working with the latest version of joomla and gantry (with basetemplate).

      Anybody who can help?

      Many thanks!

      Hans
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Cannot make an alternative article layout with Gantry Base Template

    Posted 9 years 1 month ago
    • The correct location for your com_content overrides in the gantry template should be:

      /templates/gantry/html/joomla/3.3/.............


      If your need more help 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. Also, 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.
  • Re: Cannot make an alternative article layout with Gantry Base Template

    Posted 9 years 1 month ago
    • This message contains only secure information that is visible to Krachtstroom, moderators and administrators
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Cannot make an alternative article layout with Gantry Base Template

    Posted 9 years 1 month ago
    • The names of your files are wrong?

      They need to be default.php, default_item.php and default_links.php in the folder as you have them now.

      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.
  • Re: Cannot make an alternative article layout with Gantry Base Template

    Posted 9 years 1 month ago
    • Hi MrT,

      But if I can only use one filename like default.php, I can have only one altenative lay out for lets say com_content/featured. And I need four of them...

      Any ideas?

      Hans
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Cannot make an alternative article layout with Gantry Base Template

    Posted 9 years 1 month ago
    • Our MOD Henning will reply to explain a little more the step that you missed. I have attached a little screenshot though that should help until he can reply later on.

      Regards, Mark.
    • Last Edit: 9 years 1 month ago by MrT.
    • 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.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Add "Alternative Menu Items" for "Featured Layouts" to Gantry Base Template

    Posted 9 years 1 month ago
    • To get a fresh start I suggest to download a copy of the Gantry-Rocketlauncher so you can’t mess up your site.
      I guess for „Featured layouts“ you need to add „Alternative Menu Items“ instead of „Alternative Layouts“ (like you can see in my screenshot above) ...

      Perhaps I'm wrong but I can only see a "template-style"-option but no "Alternative-layout"-option for this menu-item-type?

      1. locate these files

      templates/gantry/html/com_content/featured/default_item.php
      templates/gantry/html/com_content/featured/default_links.php
      templates/gantry/html/com_content/featured/default.php

      duplicate those and rename them like

      templates/gantry/html/com_content/featured/custom_item.php
      templates/gantry/html/com_content/featured/custom_links.php
      templates/gantry/html/com_content/featured/custom.php

      2. locate this file

      components/com_content/views/featured/tmpl/default.xml

      copy that file to

      templates/gantry/html/com_content/featured/

      so you have these files now

      templates/gantry/html/com_content/featured/custom_item.php
      templates/gantry/html/com_content/featured/custom_links.php
      templates/gantry/html/com_content/featured/custom.php
      templates/gantry/html/com_content/featured/custom.xml

      templates/gantry/html/com_content/featured/default_item.php
      templates/gantry/html/com_content/featured/default_links.php
      templates/gantry/html/com_content/featured/default.php

      3. open this file

      templates/gantry/html/com_content/featured/custom.xml

      find

      <layout title="COM_CONTENT_FEATURED_VIEW_DEFAULT_TITLE" option="COM_CONTENT_FEATURED_VIEW_DEFAULT_OPTION">

      and change it to

      <layout title="CUSTOM LAYOUT" option="CUSTOM_LAYOUT">


      4. I guess you are using Joomla 3.3.

      So create a folder-structure like this

      templates/gantry/html/joomla/3.3/com_content/featured


      5. locate these files

      components/com_content/views/featured/tmpl/default_item.php
      components/com_content/views/featured/tmpl/default_links.php
      components/com_content/views/featured/tmpl/default.php

      copy those to the folder you just created and rename them like this

      templates/gantry/html/joomla/3.3/com_content/featured/custom_item.php
      templates/gantry/html/joomla/3.3/com_content/featured/custom_links.php
      templates/gantry/html/joomla/3.3/com_content/featured/custom.php

      those are the files you work on. Personally I just throw a „Test“ into that file to see if the layout kicks in.
      You can use other files as a starting point if you like to ...

      6. Now you should be able to create a new menu-item of the type "CUSTOM LAYOUT"

      This image is hidden for guests.
      Please log in or register to see it.


      Of course it’s a lot easier for „article layouts“. You don’t need all that xml stuff.
      More info can be found here https://docs.joomla.org/Layout_Overrides_in_Joomla .
      I hope I didn’t forget a step.
    • Last Edit: 9 years 1 month ago by Henning.
    • The following users have thanked you: DanG, MrT

Time to create page: 0.058 seconds