random global content tag
Posted: Sun Apr 23, 2006 10:50 am
Hi
I was about to sit down and start writing a simple tag when I thought I'd better check that it's not been done already.
Say I've got a number of global content blocks all with a name beginning "snippet_"
I now want to pick a number of these content blocks by simply adding to my template a tag along the lines of
{random_global_content type="snippet" blocks="2"}
On a differing template I might chose to only show one block and from a different pool so I'd simply adjust the type and blocks parameters.
Can this be done using an existing technique?
Cheers
I was about to sit down and start writing a simple tag when I thought I'd better check that it's not been done already.
Say I've got a number of global content blocks all with a name beginning "snippet_"
I now want to pick a number of these content blocks by simply adding to my template a tag along the lines of
{random_global_content type="snippet" blocks="2"}
On a differing template I might chose to only show one block and from a different pool so I'd simply adjust the type and blocks parameters.
Can this be done using an existing technique?
Cheers