I'd like to add a snippet among two fields. When I put the snippet into page.tpl I can just place bottom of content or top of content. it should be placed after of certian field. could you give me some tips how can it be achieved ?

Thanks in advance

Comments

WorldFallz’s picture

page.tpl.php is the page template-- you want to use the node and/or field templates.

logoservisdestek’s picture

how can I implement the snippet after certian field ? in tpl.php pages I can see just $content variable that prints full content of node

WorldFallz’s picture

One way would be use the field template and add it there (if you theme the first field, you would put it at the end, if you theme the second field you would put it at the beginning).

Otherwise you can selectively hide and render fields outside of the $content variable.

logoservisdestek’s picture

Good point. Thank you I will try it

logoservisdestek’s picture

I really appreciate for your help. hide(), render() worked for me

WorldFallz’s picture

excellent-- happy to help ;-)