0
Welcome Guest! Login
0 items Join Now

Creating my own Gantry template

    • bigspring's Avatar
    • bigspring
    • Jr. Rocketeer
    • Posts: 29
    • Thanks: 0

    Creating my own Gantry template

    Posted 12 years 11 months ago
    • Hi guys

      Getting started with Gantry, got a question (which might be stupid so I apologise in advance).

      If I want to make my own Gantry-based template, should I duplicate rt_gantry and change the contents of the templateDetails.xml file and work from there, or should I work purely using the style "overrides" provided?

      I want to avoid CSS overrides if possible, I'd prefer to just edit the template directly and end up with my own forked version of the default rt_gantry one.

      Thanks! :)
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Creating my own Gantry template

    Posted 12 years 11 months ago
    • Hi, you don't need to duplicate or override anything. Start with the Gantry Template and just change the files in the template directory directly to suit your needs. The only exception is if you need to change the files in the Gantry Framework Core, in that case you would create overrides in the template, most likely you won't need to do that. Hope that helps.
    • The difficult we do immediately, the impossible takes a little longer.
    • bigspring's Avatar
    • bigspring
    • Jr. Rocketeer
    • Posts: 29
    • Thanks: 0

    Re: Creating my own Gantry template

    Posted 12 years 11 months ago
    • Thanks very much Cliff! Really appreciate the response.
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Creating my own Gantry template

    Posted 12 years 11 months ago
    • Glad to help :D
    • The difficult we do immediately, the impossible takes a little longer.
  • Re: Creating my own Gantry template

    Posted 12 years 9 months ago
    • I have a follow-up question on the same topic.
      I'm experimenting and really do want to clone the master template, creating a duplicate I can rename "practice" and mess around with.
      I cannot find a step-by-step explanation of how to do this.
      When I simply "Save a copy" in the template manager, the copy's tabs are all grayed out.
      Thanks!
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Creating my own Gantry template

    Posted 12 years 9 months ago
    • Hi, what you're doing is creating an override. All you can do with that is override the settings from the default. When you click the checkboxes for the features inside the tabs, you are then able to override the settings of the master template.

      If you're looking to experiment with the master theme, you'll just have to play with that. The duplicate feature does not create an independent copy.
    • The difficult we do immediately, the impossible takes a little longer.
  • Re: Creating my own Gantry template

    Posted 12 years 9 months ago
    • It that the function of the "Presets", to create and manage template variations?

      Why then, when I do a "Save a Copy" are all of the tab items grayed out?
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Creating my own Gantry template

    Posted 12 years 9 months ago
    • The presets control the style only - if you go into your "grayed out" copy and choose a different preset, you'll see that changes are made to the style tab, these changes are not applied to the master template when you save. You cannot make changes to layouts or other gantry features by changing a preset.

      The purpose of making a duplicate copy of the template would be if you wanted to change the style or layout or any of the other features on a specific page / pages. It's grayed out because it uses all the default settings from the master template, allowing you to override only the specific things you wish to change.
    • The difficult we do immediately, the impossible takes a little longer.
  • Re: Creating my own Gantry template

    Posted 12 years 9 months ago
    • Thank you Cliff, for your help,
      So, if I want to have a template that has four section tabs in a top nav menu, each pointing to a different "category" that I want to have a different look (template configuration), from module positions to colors and graphics.

      What is the proper way to set that up?

      Install the master template four times, change the name of each and make modifications accordingly?
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Creating my own Gantry template

    Posted 12 years 9 months ago
    • Hi, you can do this by using the override method we've been talking about. Make as many duplicates of the master template as you need and make the changes in the duplicates. The duplicates have an "assignments" tab, this is where you set which page the settings are applied to. Set that, then go through the settings and click the checkbox next to the settings you want to change and you'll be able to edit it. This would be much easier than keeping track of 4 different template installations, doing overrides is easy once you get used to how it works. Hope that helps.
    • The difficult we do immediately, the impossible takes a little longer.

Time to create page: 0.059 seconds