Timeline for Display custom field content in node.tpl
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 22, 2013 at 10:23 | comment | added | user8753 | i find about field_view_field function that seem can do the trick..if someone has done this yet and can explain to me..thanks | |
Mar 19, 2013 at 13:23 | comment | added | user8753 |
your code take errors i think : Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /var/www/drupal7/includes/entity.inc). not ?
|
|
Mar 19, 2013 at 9:40 | comment | added | Alice Heaton | Ah yes you're right - I have the File Entity module enabled too, sorry I forgot about it. I've edited the answer to add that into it. | |
Mar 19, 2013 at 9:40 | history | edited | Alice Heaton | CC BY-SA 3.0 |
Edit: added File Entity module requirement.
|
Mar 19, 2013 at 9:20 | comment | added | user8753 | i think i do add the file_entity module too ? | |
Mar 15, 2013 at 11:34 | comment | added | Alice Heaton | (So the code I provided is only for accessing values on a node object. You can use/theme those as you wish) | |
Mar 15, 2013 at 11:33 | comment | added | Alice Heaton | D7 uses Entities, which is a new concept not present in D6. Your code was accessing field values on the "$node" object. I'm providing an alternative D7 way of doing this, which I consider cleaner than directly using the values on the $node object - however you can still do that in D7 if you wish. | |
Mar 15, 2013 at 11:00 | comment | added | user8753 | it's very different as D6..so i learn about this actually and your links are useful. i am not sure about your code, is it only for theming ? or is it for getting value and theming a field ? | |
Mar 15, 2013 at 10:39 | history | answered | Alice Heaton | CC BY-SA 3.0 |