Understanding Tags
I'm trying to understand the lingo of this module. Here is my code snippet I am using:
{exp:channel:entries channel="portfolio" status="open" orderby="{portfolio_reorder}" sort="asc"}
<!--code in here-->
{/exp:channel:entries}
When I reorder them in the CP of EE 2.02, I refresh the page that uses this and it doesn't reorder anything. Do I need the curly brackets around my 'orderby' field as my custom field in the portfolio channel is called 'portfolio_reorder'? I tried with or without them and neither worked.
Any help would be great. Thanks.
Replies
Low 6 May 2010 07:29
Hey Dan,
Check out the docs on the orderby parameter. You don't need the brackets in the parameter, just the name of the custom field, in this case: the reorder field you created and assigned to the portfolio channel.
Make sure you've saved the order in the module at least once, to the correct values can be set. Then your code above (without the curly brackets in the parameter value) should work just fine.