Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
How can I print the contents of a Viewfield in my custom tpl file?
Thanks!
Peter
Comments
Comment #1
BigEd CreditAttribution: BigEd commentedIf I DPM the output I can see the view elements but not the view its self or the view field. If i use view_embed then it by passes the view field. Is there anyway that you can output the view?
Ok my bad. You can dpm the field, when i tried it I must have made a schoolboy error.
Works fine.
Comment #2
BigEd CreditAttribution: BigEd commentedComment #3
hockey2112 CreditAttribution: hockey2112 commentedCan you please elaborate on how you accomplished it? Thanks!