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.

how to use the value of a query string as a param in a channel entries tag

January 10, 2012 4:05pm

Subscribe [4]
  • #1 / Jan 10, 2012 4:05pm

    H Media Webmaster

    119 posts

    I’m trying to make an ajax request to an EE template

    the script adds a query string on to the end of the request url

    /ajax/products/?term=fish

    I want to include the value of term in a channel entries tag

    what’s the best way to get at the GET data without using php?

  • #2 / Jan 12, 2012 7:28pm

    e-man

    1816 posts

    There’s no way you can just have the “/ajax/products/fish” as a url?
    Have a look at http://devot-ee.com/add-ons/mo-variables/ or http://devot-ee.com/add-ons/get-and-post-variables (they might help).

  • #3 / Jan 13, 2012 3:30pm

    H Media Webmaster

    119 posts

    thanks for the add-on tips

    in this case the query string is being added to my url by the jQueryUI autocomplete plugin

    it’s the default behavior for that plugin and would be challenging to change

  • #4 / Jan 13, 2012 6:19pm

    Use http://devot-ee.com/add-ons/phpstringfun and explode or split, etc., to remove the ?term=

  • #5 / Jan 14, 2012 8:41am

    e-man

    1816 posts

    Was going to suggest the same.

  • #6 / Jan 16, 2012 9:56am

    H Media Webmaster

    119 posts

    thanks guys!

  • #7 / Mar 02, 2012 5:11pm

    hookxlkz

    1 posts

    I’m certainly getting excited about interchanging good tips with everybody related to how to fish.
    Howdy all. I realized that I might want to introduce myself here.

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

ExpressionEngine News!

#eecms, #events, #releases