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.

embed current_user as search parameter

October 08, 2012 1:17pm

Subscribe [1]
  • #1 / Oct 08, 2012 1:17pm

    Alli

    158 posts

    Can someone remnd me how to embed the current_user as a search parameter.
    this is not working:
    search:agent_id=“CURRENT_USER” but passing the member_id directly does eg. search:agent_id=“29”

    Thanks

  • #2 / Oct 10, 2012 11:24am

    Kevin Smith

    4784 posts

    Hi Alli,

    CURRENT_USER is only meant for the author_id parameter. Try using {logged_in_member_id} in that parameter instead. Does that work for you?

  • #3 / Oct 10, 2012 4:32pm

    Alli

    158 posts

    Hi Kevin
    I think I needed an early parse parameter so I used mo’ variables and that does the trick.

  • #4 / Oct 11, 2012 5:53pm

    Kevin Smith

    4784 posts

    Glad to hear you were able to find a solution, Alli! Anything else I can help with?

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

ExpressionEngine News!

#eecms, #events, #releases