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.

search parameters with dynamic data

August 15, 2011 9:19pm

Subscribe [2]
  • #1 / Aug 15, 2011 9:19pm

    twdbaba

    41 posts

    Hello,

    I have a question for you: I want (need) to use the “search” parameter in an exp:channel:entries tag, but the value of this parameter is dynamically generated by a query (exp:query sql…).

    I’ve tried all the way to make it working, but it doesn’t; the query result is something like “1200\W|4\W|46\W|766\W”, and if I paste this value in the search param. it works fine;

    if I add the value using, for example a session with the code <?php echo $my_value; ?>, and the $my_value is inserted manually , the result is OK, but… if I generate the $my_value content with a query, the channel entry is empty.

    I also tried to embed the exp:query tag and the exp:channel:entries tags, but the exp:query tag change the way the channel:entries results (very difficult to explain, sorry).

    I also tried to generate a query and use only the exp:query module, but I don’t arrive to create the query correctly.

    Any suggestion? The publishing date is… in 10 hours 😊

    Thanks
    Alberto

    Moved to Community Help forum by Moderator

  • #2 / Aug 16, 2011 11:16am

    Sue Crocker

    26054 posts

    Hi, Alberto.

    Unfortunately this is one of those kinds of questions that really is a how do I kind of question, so it belongs in the Community Help forum. Moving there for additional community support.

  • #3 / Aug 16, 2011 11:18am

    twdbaba

    41 posts

    Thanks Sue!

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

ExpressionEngine News!

#eecms, #events, #releases