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.

passing plugin return value to channel entries tag

September 02, 2011 5:41am

Subscribe [2]
  • #1 / Sep 02, 2011 5:41am

    Sean Delaney

    64 posts

    any reason why this wont work?

    {exp:channel:entries channel="not diary_event" entry_id="{exp:my_plugin:get_last_edited_entry}”}

    get_last_edited_entry function in my plugin is:

    function get_last_edited_entry()
    {
    $this->EE = &get;_instance();

    $results = $this->EE->db->query('SELECT entry_id FROM exp_channel_titles ORDER BY edit_date DESC LIMIT 1');

    $entry_id = $results->row('entry_id');

    return (string) $entry_id;
    }

  • #2 / Sep 02, 2011 5:51am

    Sean Delaney

    64 posts

    It’s ok - I got it working.  Added dynamic=“off” and parse=“inward” and it worked.

  • #3 / Sep 02, 2011 8:38am

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases