Jump to content

Archived

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

bloom1creative

DMS2 Template Issue

Recommended Posts

bloom1creative+    3
bloom1creative

Hi guys

 

Perhaps I am being silly, or simply doing it wrong.

 

I create the page I am happy with and assign it to the template 'page1' for example.

 

I now want another page with the same template, so I load 'page1'.  This page has different colours, content, and imagery etc, but all of the loaded dms elements share the same IDs as the previous page, which they would if they are the same template.  So I rename this template 'page2', and it still keeps the same ID... ? I tried to unlink the page 2, before recreating the new template file, but it seemed to still keep the same IDs - so is this the best way to do this or am I missing something?

 

Cheers


Many thanks

 

Rob1n

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

If I understand you correctly, you have created a template with the layout and section you want and have saved this as a template for example Template 1. You then have another page which you want to use the same template, but you want to configure these templates differently and use their section IDs for customization, but you can't because they share the same IDs as the Template 1. So, you basically can't customize them with CSS ?

 

Is that correct ?

 

As far as I am concerned this is how a template should work. If you want to add individual customization on a sections that is used on a template on a page by page basis, you should either prefix your custom CSS with the page-id-X class from the body tag or give your section(s) on that template a custom class using the styling classes field.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
bloom1creative+    3
bloom1creative

Pretty much bang on Danny mate yeah.  I then create a new template for the new page, that is currently running Template 1 in order to try and separate it from the other page, but it still seems to keep the same ID?  I have gotten around it before by cloning everything for new IDs and deleting the other haha, bit of a mission though.


Many thanks

 

Rob1n

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

So what you would prefer is when you assign that template to a new page, all the sections have unique IDs, separate from the other pages running that template ?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
bloom1creative+    3
bloom1creative

Ideally mate, but then would that template still link to the page?  Probably not as they all have different IDs I guess?

 

IDeally (get it?), you can save a 'base' template, which applies all new IDs, or a normal template, which means that all pages created after have the same IDs as is current.

 

Unless theres a trick I'm missing which I might be


Many thanks

 

Rob1n

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

What do you mean would that template still link to the page ?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
bloom1creative+    3
bloom1creative

Yeah essentially mate


Many thanks

 

Rob1n

Share this post


Link to post
Share on other sites
GetMeWebDesign+    115
GetMeWebDesign

You need to save custom sections, then those sections will look the same on each page, even if you unlock the template before saving, but any changes you make will be global to that custom section


Chrome Developer tools - please use them. If you are not sure how, then it is easy to learn

Be inventive in your keyword search of the forum ie Navi > Navbar > menu > tabs > font > color. Your answer lies there somewhere!

Share this post


Link to post
Share on other sites
bloom1creative+    3
bloom1creative

That's fine mate, but whats the situation with saving out a copy of a template, and using that copy as a new template?  Seeing as that new 'copy' actually carries the same IDs as the original template


Many thanks

 

Rob1n

Share this post


Link to post
Share on other sites
GetMeWebDesign+    115
GetMeWebDesign

Sorry... I am lost on this? I understood you had a template and then wanted to use it for a new page, but wanted to alter the CSS for that 'new' page (so presumably unlocking the template to make changes). Yet thought you also wanted some sections to look the same across the original template and its unlocked clones and the only way to link them is with custom sections. If, in fact you want the same template layout but not linked to the original, then surely you would either unlock the template and save (and ids are then different - after refresh). Any changes you make to them now will be unique to that section as it has a new id

 

I am obviously missing something


Chrome Developer tools - please use them. If you are not sure how, then it is easy to learn

Be inventive in your keyword search of the forum ie Navi > Navbar > menu > tabs > font > color. Your answer lies there somewhere!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

What do you mean would that template still link to the page ?

 

 

Yeah essentially mate

 

I was asking a question, I wasn't sure what you mean't, can you explain please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Jared Smith
      By Jared Smith+
      I haven't figured out how to get the "Sync Loaded Item" option in templates menu of Platform 5 to stay checked. It doesn't give me an option to save settings when I select it, and when I select it then click off the editor, it unselects. Also if I select it before loading a template, it doesn't stay checked there either.  Whats going on?
    • Queue-it
      By Queue-it+
      Hi,
      I created a Pagelines template for a "Post type" post. Whenever creating a new post page it firstly display that template post and I have to manually change it in the scope from "All of type posts " to "Current page". 
      Is there a way to fix that? 
       
       

    • richardjacruz
      By richardjacruz+
      I'm building a website in a dev environment at http://162.144.182.17/~uescocra.
      I want to import a bunch of products, and then have the products have a different template than the default template. 
      I also want to change the default template for blog posts.
      Before I go making changes, can I do this where the post type of "products" has its own global template, and the same with blog posts?
      For instance, in a product I might want to have a widget for categories, similar products, etc., and in the blog I may want list of the latest posts, blog categories, link to an email sign-up landing page, etc.
      Thanks.
      Rich
    • abuzzelli
      By abuzzelli+
      Is there a shortcode or a way to automatically pull the site name into the footer or elsewhere?
    • seanocaside21
      By seanocaside21+
      An old client of mine has come across an issue with their website. 
      The site is fine on the front end but when you log into the DMS editor the 'About' page template isnt available instead the template for the 'Print Services' page appears
      Here is the live About page http://www.digicom.ie/about/. And see attached file for what i see in the back end.
      In the page settings i can see that the wrong page template is active but I'm not sure how this is the case if the live page is correct. The client assures me they didnt activate the template. 
      Any help at all? 

×