I'm using the Structure field type as pictured.


The only thing my template will output is {field_name}, which yields:


But I need to access/display more info. If I could get the entry_id or url_title, I could run a channel entries loop, but it appears that's not available. Ideas?


If you need to get more info from the entry, I think a 'Relationship' field or Playa could be your best option.

| improve this answer | |
  • Yeah, I considered this - but there are a number of entries with the same title. I would need a way to show the entry's context in structure. – 4midori Sep 8 '15 at 15:50

Did you check the docs?


I believe you want to utilize one of these Structure global variables. Something like:

{exp:channel:entries entry_id="{structure:page:entry_id}"}

    {title} - Stuff! - {entry_id} - Things!

| improve this answer | |
  • {structure:page:entry_id} gets the current page's entry id, but I need that info from the field itself. – 4midori Sep 8 '15 at 15:51
  • Had to use a plugin to get this data out. – 4midori Sep 14 '15 at 20:52

You could use the query module. Find the ID of your Structure field (shown in the Channel Fields table) and then enter the following in your template, replacing the field_id_25 with your field ID. This will output the entry id of the selected entry.

{exp:query sql="select field_id_25 from exp_channel_data where entry_id={structure:page:entry_id}"}{field_id_25}{/exp:query} 
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.