croxton / Stash

Stash allows you to stash text and snippets of code for reuse throughout your templates.
GNU General Public License v3.0
197 stars 20 forks source link

fixed_order vs entry_id parsing #92

Closed leigeber closed 10 years ago

leigeber commented 10 years ago

Mark, odd issue we are running into. Under the exact same context if we pull a stash variable into the entry_id parameter on the channel entries tag pair we get the right entries (just not in the fixed order like we need). However, if we try to use the fixed_order parameter we get back all entries as if it didn't parse. Any reason you can think of why it wouldn't parse the same? As always, thanks for the assist.

{exp:channel:entries channel="properties" fixed_order="{exp:stash:wp-videos}" dynamic="no" limit="4" disable="member_data|pagination|categories" parse="inward"}

croxton commented 10 years ago

Do you have white space or line breaks in your variable? Use trim="yes" when you get the variable to get rid of them, or close up the surrounding white space manually where you set the variable.

leigeber commented 10 years ago

Sure enough, thanks Mark. Not sure why it mattered on fixed vs entries but we're all good now.