Page 1 of 1
How to define a list of pages with the same template ??
Posted: Sun Mar 02, 2008 10:19 pm
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 ??
Re: How to define a list of pages with the same template ??
Posted: Sun Mar 02, 2008 10:49 pm
by nuno
Hi in template manager click in Set All Pages
Re: How to define a list of pages with the same template ??
Posted: Sun Mar 02, 2008 10:52 pm
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
Re: How to define a list of pages with the same template ??
Posted: Mon Mar 17, 2008 5:31 am
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
Re: How to define a list of pages with the same template ??
Posted: Mon Mar 17, 2008 5:44 am
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
