Jump to content

Archived

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

FRevi

How are templates intended to be used?

Recommended Posts

FRevi+    7
FRevi

Still getting the hang of DMS. Shouldn't take this long.

• Have read the docs (http://docs.pagelines.com/configure/using-templates basically says create a page then click to make it a template; useless)

• Have searched the forums, read a bunch of threads even.

• Have previously disabled all other plugins, both of them.

• www.frankreviphotography.com

• DMS 2.1.4

• WP 3.9.1

• Host ipower.com

 

What's the intended workflow for using templates please?

 

When I think "template", I think

- create a template

- create pages starting with the template

- to change a template, you have to enable or go to the template-editing world

- when you change the template, all pages with the template show the changes

- when you change a page, you can't change the parts of it that are controlled by the template

 

How shall I understand templates in the DMS world?  thx

 

-----------------------------------------------------------------

 

I've seen that when you edit a page created with a template, you actually edit that page, the template itself, and all other pages created with the template. Unless you unlock the template. If you do that, and then modify the template, the template changes are not reflected in the page from  which you unlocked the template. Do I have that wrong, or is your template logic completely counterintuitive? If there were use cases involved with coming up with that logic, could you post those so I can reformat my brain please?

 

Every time I change something that's supposed to go on all pages (which is my idea of what a template does) I turn it into a new template because I have the problem of the topic about cutting off the revise topic option at the top and the posted solution didn't work for me)

 

 


Ⅎʀ

Share this post


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

Hi,

 

Firstly, our documentation is currently being reviewed and worked on, as you mentioned it is currently not up to scratch.

 

To create a template, go to a page and create your layout, this means adding sections into the position of your choice and configure them, then save it as a template. You can then go to other pages and assign this template. You can bulk assign templates via the WordPress Admin Dashboard > pages.

However, please bear in mind that the Fixed, Header and Footer template areas are global template areas, this means that whatever you add to them will be universal throughout your site.

 

Also, if you unlink a template this means that you have assigned a template to that page and wish to use that template as a base, but also wish to configure it slightly so that it is different in some aspect, this could be how a section or sections are configured or you wish to change the layout slightly.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
FRevi+    7
FRevi

Super, that's helpful.

 

It would be really great if the template itself didn't change when the content of the page changes. My understanding is that's the whole reason for CSS - to decouple the content of a document from its layout. Just a thought.

 

Anyhow, now that I've finally got my head wrapped around that, I can take it into account as I move ahead.

 

Thanks!


Ⅎʀ

Share this post


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

I am not sure what you mean by if the template didn't change itself when the content of the pages changes ?

 

Also, CSS is a style sheet language used for describing the look and formatting of a document written in a markup language. Basically, it makes your web page look pretty.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
FRevi+    7
FRevi

Sorry for the sassy tone in my post. I also wasn't clear. It's basically an observation and suggestion.

 

I think CSS is intended to not just make pages pretty, but consistent (layout), and when you change the CSS, it changes all the pages (so, not content). It decouples page format from content.

 

In DMS, It seems that by default every page starts entirely as a template integrating both layout (formatting) and content, and when I put content into a page, all other pages with that template get that content; e.g., if I put a title into a text box section, by default that title replaces the title in all the other pages. For every page, I have to first unlock the section if I want its content to not propagate. I find that counterintuitive. What if I then want to change the layout of a bunch of pages that have been unlocked from their template? Am I missing something?

 

That was my question: is your intended use case: "first, create a page and save the whole thing as a template; then use that to create each unique content page, but remember to unlock it from the template before committing the changes"?

Would it make sense to create templates separately from content? The use case then becomes: first, create a template. Then create a page from that template and add content; save the page. Simple. Also the DMS UI would sync with the intent of the HTML/CSS relationship.

Thanks.
 


Ⅎʀ

Share this post


Link to post
Share on other sites
FRevi+    7
FRevi

Anyhow I think we're on the same page, so to speak.


Ⅎʀ

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? 

×