Skip to content

Instantly share code, notes, and snippets.

@dpdexter
Created October 7, 2011 23:11
Show Gist options
  • Save dpdexter/1271562 to your computer and use it in GitHub Desktop.
Save dpdexter/1271562 to your computer and use it in GitHub Desktop.
Getting BrilliantRetail Category Images
{exp:query sql="SELECT * FROM exp_br_category WHERE parent_id = (SELECT category_id FROM exp_br_category WHERE url_title = 'products') ORDER BY sort"}
<h2>{title}</h2>
{url_title}
<br />
{image}
<br />
{detail}
<hr />
{/exp:query}
@dpdexter
Copy link
Author

dpdexter commented Oct 7, 2011

Note the call to "WHERE url_title = 'products'" in the internal SQL statement. Products should probably be replaced with a dynamic segment variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment