Skip to main content
9 events
when toggle format what by license comment
Apr 11, 2019 at 9:57 vote accept Pratish Jha
Jan 24, 2019 at 17:08 answer added Rodrigo Panchiniak Fernandes timeline score: 0
Jan 24, 2019 at 4:29 comment added Pratish Jha Thanks, gentleman for your suggestions.....The reason being I am asking this question because my design is ready with html css javascript jquery.....the problem I am facing in customizing it to drupal 7 theme is that the Labels & values has lots of css classes & attributes & some inline javascript. So I am unable to put those classes javascript by content type manage display field formatter method. Please suggest me some solution for this
Jan 23, 2019 at 12:38 comment added Leigh The question wasn't very clear but the reason I suggested it would be in a page.tpl within $content you'd only have the regions. Within the node tpl you'd have the actual node fields within $content (plus $node) which looked to be what he was after
Jan 23, 2019 at 12:33 comment added Kevin If you’re not preprocessing then it won’t matter what template you’re using. I don’t see how a page template changes this vs a node template. These variables don’t exist at the page level.
Jan 23, 2019 at 11:53 comment added Pratish Jha Yes I have some specific reason to call field's label & its value individually and add many classes attributes some javascript and extra headings that I'am unable to do by field formatter class module.
Jan 23, 2019 at 10:23 comment added Leigh page tpl's are quite high level and after all of the content has been pulled together for rendering. If you want to change things on a specific content type you might be better using node--mycontent-type.tpl.php. Or is there a specific reason you need the node fields in the page.tpl
Jan 23, 2019 at 9:29 history edited berramou CC BY-SA 4.0
added 13 characters in body; edited tags
Jan 23, 2019 at 9:25 history asked Pratish Jha CC BY-SA 4.0