Drupal 7: custom template based on url alias


/ Published in: PHP
Save to your folder(s)

This will give you the ability to create custom node templates based on the URL alias of a page.

Example: if you create a page with the URL alias "aboutus", you can now use node--page-aboutus.tpl.php as your node template.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.