[support] Alter node (title) field?

toon severijns toon.severijns at gmail.com
Mon Oct 1 23:05:14 UTC 2012


Hello All,

This must be a simple thing to do but i can't seem to get my head around it:

   - I have got a content type 'publication'
   - A publication can have two possible physical formats: "normal",
   "electronic"
   - When a publication has physical format "electronic" i'd like to alter
   my title field in al my view modes (i use display suite) like this "Some
   Title (electronic)"

I've been trying theme_preprocess_node function but to no avail.
I've also tried hook_node_view, but there i have my title field already as
markup in an array so i can't just alter the title itsself.

I'm very much stuck on a simple thing here i guess. Any help would be
greatly appreciated.

Thanks beforehand!

Best,


Toon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20121002/8d60c731/attachment.html 


More information about the support mailing list