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.

Strange Pre_Load Behavior

January 17, 2013 3:15am

Subscribe [1]
  • #1 / Jan 17, 2013 3:15am

    Deep Arora

    153 posts

    I want to restrict channel entries based on a pre_load variable, so I am doing this:

    {preload_replace:entry_id_list="{exp:myplugin:get_entries}"}
    
    {exp:channel:entries channel="mychannel" entry_id="{entry_id_list}" limit="10"}

    But this doesn’t display any entries..however, the variable {entry_id_list} does have a value (1|2) that matches he entry id.

    Now, if I modify the line:

    {preload_replace:entry_id_list="1|2"}

    it starts displaying those entries. So, is there a format difference in what the plugin function returns back to the template where function is called?

     

  • #2 / Jan 24, 2013 1:32am

    Deep Arora

    153 posts

    Anyone??

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

ExpressionEngine News!

#eecms, #events, #releases