We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

plugin call within weblog parameters

Development and Programming

Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

I’ve written a shopping cart plugin which stores references to items. I then want to retrieve these values to then use in a weblog to get back the item details.

Another similar post can be found here: http://ellislab.com/forums/viewthread/81138/#410668 Where the outcome works. But for me it doesn’t?!?!

In my template I’ve got: 0={exp:ava_cart:getItem cartNum="0"} {exp:weblog:entries weblog=”books” dynamic=”off” search:isbn=”{exp:ava_cart:getItem cartNum="0"}” parse=”inward”}

This correctly prints out “0=978-2-940373-02-4” but nothing is displayed from the weblog. If I manually enter the value e.g. {exp:weblog:entries weblog="books" dynamic="off" search:isbn="978-2-940373-02-4" parse="inward"}, it works and weblog has values.

“books” weblog holds all the products (books funnily enough), the reference is unique to each book. As proven by the direct reference, the book in question exists.

Any thoughts or ideas would be appreciated.

Thanks,

Peter

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

I can get round the problem by putting the weblog:entries tag within an embed and passing the plugin value via parameters, so problem solved. But it’s odd why this doesn’t work.

I’ve used plugins previously in a weblog:entries (e.g. doing a find and replace on the search parameter), although these have always been tag pairs not a single.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.