0
Welcome Guest! Login
0 items Join Now

SOLVED Base Outline & Default

  • SOLVED Base Outline & Default

    Posted 1 year 4 months ago
    • I assume that base outline is where you set the defaults for the template and default is for page customisations?
    • Turning Ideas Into Reality Since 1995
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Base Outline & Default

    Posted 1 year 4 months ago
    • Yes and no - because it depends what specific item you are talking about. The Gantry 5 docs explain all this at length and we also provide rocketlaunchers so you can see how it's done.

      This is a brief explanation for Joomla (it's different with other CMSs).

      The base outline styles tab is where you should set all the colours for your site once. They will automatically be inherited by every other outline on your site unless you specifically override that in another outline.

      https://docs.gantry.org/gantry5/basics/terminology

      The same is NOT true for the base outline layout. The base outline layout itself will never be used directly anywhere on your site. The base outline layout is where you should set-up the "common" parts of your site (e.g. logo, menu, footer, copyright, etc). You want to do it here so you can maintain all of that in one place once. So, if it doesn't get used why do you do this? The answer, is because you should then specifically tell other outlines to use those part on their layout too. You do this through a gantry 5 mechanism called "inheritance". Gantry 5 inheritance can operate at the section level or particle level.

      https://docs.gantry.org/gantry5/configure/inheritance

      The "default" outline is the outline that you should normally set as the "default" template in template manager (yellow starred). This means that this is the outline that will be used by every single page of your site unless you specially assign a different outline. As such, the "default" outline should not contain page specific content on its layout, it should only contain content common to all pages. Here is the first example where you would use inheritance to tell part of the "default" outline to inherit their layout from the base outline layout.

      Now, for the most primitive of sites you could stop here. If that "default" outline only contained "common" (page unspecific) content and module position particles (into which you can assign content using joomla module manager) that outline layout could indeed be used by every page of your site. But, Gantry 5 also permits content to be applied directly on the layout of an outline (not via a module position). This would then make the content "page specific" (only apply to a specific page) and therefore you would normally create an additional outline first, assign it to the page (in g5 assignments tab of the outline), and then put your content directly onto the layout.

      So as you can see there are two way of adding content. Either directly on the outline layout or via a module position. What's the difference? Well an outline constructed with page specific content on it's layout it much easier to understand - you look at the outline layout and you see everything that appear on the page. The downside being you have to create more outlines. With module positions it's harder to understand what is actually appearing where on the page (there's less physical representation to look at). The plus side being that you can use less outlines and also Joomla ACL (to limit content to certain users or pages) in Joomla module manager.

      In reality you will use a mix of both methods (which is what the rocketlaunchers do).

      Please read the Gantry 5 documentation and study the rocketlaunchers to learn much more.

      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: SOLVED Base Outline & Default

    Posted 1 year 4 months ago
    • Thanks.

      I've read most of the documentation so far as I come across things I need to learn and this makes sense.
    • Turning Ideas Into Reality Since 1995

Time to create page: 0.049 seconds