0
Welcome Guest! Login
0 items Join Now

J25/30 How to create a template menu page override

    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    J25/30 How to create a template menu page override

    Posted 12 years 11 months ago
    • Thanks to Kevin DuCommun for making this guide possible.
      The old "per menu item configuration" that we knew and loved is now even better in the Joomla 2.5 & 3.0 environment.

      When you install our RocketLauncher or template you will see the template appear as TemplateName - Default-MASTER.
      Any overall style, feature or layout changes made here will affect ALL menu pages assigned to this template.

      What if we need one of our menu pages to have different settings than our Default-MASTER?
      The elegant solution is to create a duplicate, which will act as a template-override of the Default-MASTER and make our changes there.
      You will notice that in the Template Manager page Gantry will assign the label OVERRIDE to this template.

      So let's see how we go about this.
      Let's start with our Default Master Home page:
      This image is hidden for guests.
      Please log in or register to see it.

      If you have another template installed you can use that as your override template:
      This image is hidden for guests.
      Please log in or register to see it.

      If you have just the one template installed than this is the procedure.
      So we want to change the look for the Site Map -> Articles menu page. Open Admin and we see our rt_*template*__j16 - Default and is a MASTER. Click on it and then click Duplicate:
      This image is hidden for guests.
      Please log in or register to see it.


      Now we see our copy appear, notice the MASTER tag is off for the copy and it is automatically named as Default (2).
      This image is hidden for guests.
      Please log in or register to see it.

      First thing we do is rename the copy, so something like rt_*template*__j16 - MENU-Articles, to indicate what this menu page this style will affect. Then click "SAVE" and we'll continue editing.
      This image is hidden for guests.
      Please log in or register to see it.

      So choose the override template you wish to use and click on the template to edit it.
      In this example we're changing the Header Style from Dark to Light and Menu Pill style from orange to red. So go to the Style tab and click in the checkbox for Header Style and Menu Pill Style and from the dropdown, make your changes.
      This image is hidden for guests.
      Please log in or register to see it.

      At this point you "SAVE" again or wait till after the next step.

      With your Gantry changes set, move to the ASSIGNMENTS tab.
      This image is hidden for guests.
      Please log in or register to see it.

      In this case we've selected ONLY the Main Menu -> Articles menu page to be affected by our changes. Click "SAVE" and your done.

      Your Admin Template Manager should look like this now:
      This image is hidden for guests.
      Please log in or register to see it.


      Going to the Front end we see our changes made:
      This image is hidden for guests.
      Please log in or register to see it.


      Finally a big ol' wink to David Goode for his input

Time to create page: 0.038 seconds