#221 - Additional Tempcode symbols
| Identifier | #221 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Additional Tempcode symbols |
| Status | Closed (rejected) |
| Handling member | Chris Graham |
| Addon | core |
| Description | Implement 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 |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".
Comments
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.