Drupal 7 Theming individual pages -


i'm starting drupal 7 site , have noticed every page require separate layout.

in order style individual node name template mode-nid-page.tpl.php or there more it?

i think need add gallery widgets, etc.. think that's separate matter. involve displaying fields in above template?

first off: don't think it's idea theme pages based on nid.

that aside, here 2 possibilities how can achieve this:

  1. theme normal node template, include logic there. example include specific template files based on nid. not clean separation of course, such code should not go templates. cleaner separation attach custom field pages holds template file used themeing.

  2. as want create individual styles different nids assume number of not exorbitantly large. in case, create separate content types. each of nids should converted node of content type , of course each content type can have own theme template then.

downside of second approach there might work involved if have lot of settings need transferred content types (e.g., permissions). again, new pages nodes too, things should work out of box did before.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -