Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Partial caching - actions, without Page objects


Go to End


1404 Views

Avatar
Rodskagg

Community Member, 26 Posts

18 February 2016 at 3:48am

I have added a route, with actions and ID parameters, which get handled by a controller. The controller renders HTML content using renderWith. So I'm not using an actual Page object for this content. I'm trying to add partial caching to the template, and would like to use the $Action and $ID parameters as caching parameters. How do I access these parameters in my .ss template file? $Action and $ID doesn't seem to work - they are empty.