Jump to content

Archived

This topic is now archived and is closed to further replies.

gabelloyd

DMS Page Template Hierarchy

Recommended Posts

gabelloyd    4
gabelloyd

Hi guys,

I'm a bit confused about how page templates as assigned.  In an effort to just hash a project together, I was trying to create dedicated templates on a per-brand basis to allow me to change the masthead and call to action areas per brand. 

 

The url strings for each brand are something like:

  • [pl-site-url]/brands/redline/ - assigned a template called "Redline Brand Specific"
  • [pl-site-url]/brands/scott/ - assigned a template called "Scott Brand Specific".  

each template has local section options for the masthead and the call to action sections that I have placed in the "Local Scope Region".  

 

I thought I could change the masthead image for the Redline page, Publish it, then go to the "Templates" tab, find the "Redline Brand Specific", under "Actions" choose "Update Template with Current Configuration" and it would save this new masthead image to the "Redline Brand Specific" template.  However, when I then navigate back to the Scott Brand page, the template that is shown as being used is listed as "Scott Brand Specific", but the masthead image is now the Redline image that I just assigned to the Redline template.  If I go through the process of changing the image and trying to save the Scott template as before, the Redline masthead image then changes.  

 

WP 3.8.1

DMS: latest release

 

Thanks.

Share this post


Link to post
Share on other sites
gabelloyd    4
gabelloyd

Maybe this will help, too.  When I am on the Redline or Scott page, it will show the template that I am using.  If I am on the Scott page, I will go to Templates and fine the "Scott Brand Specific" template.  I choose "Load Template".  This looks fine, but then I navigate back to the Redline page and instead of the "Redline Brand Specific" template being used, the "Scott Brand Specific" template is being used.  Ok.  So, I go to Templates and find the "Redline Brand Specific" template and select "Load Template".  Looks good, but go back to the Scott page and now we're using the "Redline Brand Specific" template here.  And around and around we go.

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Gabe

 

Firstly where are you adding the masthead? If it's the header this is a global section so what ever you have set in there will appear on all page, make sure you have it in the page template area to work in line with the template.

 

These are definitely static pages you're using? Not blog/category pages or single posts? As the last three are dynamically created they all follow the same template, so changes made on one, reflect on the others.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
gabelloyd    4
gabelloyd

James,

 

Thanks man.  To answer your first question, I was not putting this in the header global region, just the top of the template local region.  I can see how someone would make that mistake.  Sorry i didn't clarify that.  

 

You are correct that I did not fully understand the template assignment restrictions.  I was trying to modify a category post type.  I did think that because it was "local" that it meant "local to the specific post-id, not necessarily specific to the category as a whole.  Understanding that cleared a few things up for me.  

 

I created a solution to my problem, but possibly created another problem with the DMS Editor hanging on load to a few of the category pages.  I will post this issue in another topic.

 

Thanks!

Share this post


Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • DonRicardoRVM
      By DonRicardoRVM+
        First of all, sorry for my bad English.  I am developing an ecommeece with wp, woocommerce, PL5 and quickshop, and I need to do some changes in the simple product grid. I want to change the classes of some divs, but I can't find the templates. 
      Also, I change the grid of the category products pages, but I didn't make it correctly.
      This is the cat archive's: http://globosdemar.com/wp/categoria-producto/camisetas-para-ninos-y-ninas/
      Can you help me?
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • Barnaby Skinner
      By Barnaby Skinner+
      Hey all, hope I worded the topic correctly!
      I just need to know if either 1) I'm making a mistake or 2) this could be set as a new feature?
      Using the global settings typography parameters, I have a global paragraph font type (set using googlefonts) and have set the style to align:justify. When laying out <p> text inside a simple TEXT module, the <p> text adheres to both the font type and justification. Perfect.
      Now, when I set <p> text inside the PARAGRAPH TEXT field within an ELEMENT module, the <p> text adheres to the font type, but not the justification. It's rather annoying as I like to fully justify para text across the board and tend to use Element modules instead of text boxes for various reasons. It also seems silly that some PARAGRAPH TEXT fields adopt global settings, whilst other don't.
      Or I'm doing it wrong :S
      Any help or advice is much appreciated!
      Cheers
    • jeomiland
      By jeomiland+
      Hi
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?
       
×