Create Page.tpl.php for specific URL

Events happening in the community are now at Drupal community events on www.drupal.org.
mayur.pimple's picture

Hi
How to create page.tpl.php for specific URL.

Comments

page-node-[node:id].tpl.php

swarad07's picture

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

tejaspmehta's picture

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

mayur.pimple's picture

Yes, It is Working ....

Different page templates depending on the current path

rakesh falke's picture

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

mayur.pimple's picture

thanks rakesh.

Mumbai

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: