Hi How to create page.tpl.php for specific URL.
If the page that your are referring is a node,
then just copy that the existing page.tpl.php into a new file and name that file with this pattern page-node-[node:id].tpl.php
ex: page-node-32.tpl.php
Hi,
If you need to create page.tpl.php file for particular url then first findout what node-id it has. Say it has node-id = 8 then make page-node-8.tpl.php file in your theme folder.
Thank you.
Yes, It is Working ....
If you were to visit http://www.example.com/myalbum, PHPTemplate would look for the following templates: page-myalbum.tpl.php page.tpl.php
Refer: Different page templates
Regards Rakesh Falke DforDrupal
thanks rakesh.
Comments
page-node-[node:id].tpl.php
If the page that your are referring is a node,
then just copy that the existing page.tpl.php into a new file and name that file with this pattern page-node-[node:id].tpl.php
ex: page-node-32.tpl.php
Hi, If you need to create
Hi,
If you need to create page.tpl.php file for particular url then first findout what node-id it has. Say it has node-id = 8 then make page-node-8.tpl.php file in your theme folder.
Thank you.
Thanks
Yes, It is Working ....
Different page templates depending on the current path
If you were to visit http://www.example.com/myalbum, PHPTemplate would look for the following templates:
page-myalbum.tpl.php
page.tpl.php
Refer: Different page templates
Regards
Rakesh Falke
DforDrupal
thanks
thanks rakesh.