ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Getting the chosen relationship_id of Relationships fieldtype field

September 12, 2013 3:10am

Subscribe [1]
  • #1 / Sep 12, 2013 3:10am

    arvinsim

    23 posts

    I recently upgraded from 2.5.5 to 2.7 and I am doing a number of fixes to make my code up compatible with the new version.

    I have a channel field called foo which is of the Relationships fieldtype.

    When I tried outputting {foo} it outputs 0

    {exp:channel:form
       channel="a_channel"
    }
    ...
    {foo} <-- outputs 0
    {/exp:channel:form}

    My problem is, how do I get the id of the currently chosen foo value?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases