View Issue Details

IDProjectCategoryView StatusLast Update
0000221Composrcorepublic2011-09-16 02:37
ReporterChris GrahamAssigned ToChris Graham 
SeverityFeature-request 
Status closedResolutionwon't fix 
Product Version 
Fixed in Version 
Summary0000221: Additional Tempcode symbols
DescriptionImplement some additional Tempcode symbols...

number of entries in a catalogue/catalogue-category/download-category/gallery/etc

all the items from the side_stats block

Composr version
TagsNo tags attached.
Time estimation (hours)4
Sponsorship open

Activities

Chris Graham

2011-09-16 02:37

administrator   ~0000186

This would open the floodgates to a major proliferation, essentially anything in the PHP API might be wanted.

The side_stats case can currently be done by including the side_stats block, but giving the template no output. But as it loads, it's tempcode will run, so you can load up loads of shift-encoded variables with the values you need.

Otherwise, it is also possible to run PHP inside templates to access the full API (if you turn it on).

Otherwise, you could also write miniblocks and include those in templates.

Issue History

Date Modified Username Field Change