How to define a list of pages with the same template ??

General project discussion. NOT for help questions.
Post Reply
Saulo Padilha
Forum Members
Forum Members
Posts: 17
Joined: Wed Jan 30, 2008 12:59 pm
Location: Juiz de Fora - MG, Brazil

How to define a list of pages with the same template ??

Post by Saulo Padilha »

I have made a new template and I want to define it in a list of pages.

There is an easy way to select a list of pages and then define them with the same template ?? or the only way is go inside each page and select the template ??
nuno

Re: How to define a list of pages with the same template ??

Post by nuno »

Hi in template manager click in Set All Pages
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: How to define a list of pages with the same template ??

Post by blast2007 »

spadilha wrote: There is an easy way to select a list of pages and then define them with the same template ?? or the only way is go inside each page and select the template ??
If you want to change only few (20?) pages, it shouldn't be difficult if you can access to mysql tables via Phpmyadmin.
Take note of  number of your desired template id (20) , then id's of the pages to change (eg 10, 11, 12)

Then use a query like this:

Code: Select all

UPDATE `cms`.`cms_content` SET `template_id` = '20' WHERE
 `cms_content`.`content_id` =10 AND 
 `cms_content`.`content_id` =11 AND 
 `cms_content`.`content_id` =12 ;
Regards
blast
Saulo Padilha
Forum Members
Forum Members
Posts: 17
Joined: Wed Jan 30, 2008 12:59 pm
Location: Juiz de Fora - MG, Brazil

Re: How to define a list of pages with the same template ??

Post by Saulo Padilha »

Nuno, I don't want to set the template to  "All Pages", but just some of them. I want to select some pages and set the same tamplete.

thankz anyway
Fani

Re: How to define a list of pages with the same template ??

Post by Fani »

blast2007 wrote:
spadilha wrote: There is an easy way to select a list of pages and then define them with the same template ?? or the only way is go inside each page and select the template ??
If you want to change only few (20?) pages, it shouldn't be difficult if you can access to mysql tables via Phpmyadmin.
Take note of  number of your desired template id (20) , then id's of the pages to change (eg 10, 11, 12)

Then use a query like this:

Code: Select all

UPDATE `cms`.`cms_content` SET `template_id` = '20' WHERE
 `cms_content`.`content_id` =10 AND 
 `cms_content`.`content_id` =11 AND 
 `cms_content`.`content_id` =12 ;
Regards
blast
Yep, dude, me absolutely agrees with what you sayin ;)
Post Reply

Return to “General Discussion”