In applying Authcache settings to an existing site I have encountered a problem where certain items hard-coded into the theme's page.tpl.php
need to be personalised for each user. I could do it by moving those components into blocks and/or panels, but they are quite complex and I was wondering if a better approach would be to do it via the Authcache API using the authcache_usercookie.module example as a starting point.
Here is an example of the code I would like to personalise:
<?php if($page['topics_tab']): ?>
<div class="tabs-menu collapse hidden-print" id="topics-collapse-tab">
<div class="container">
<div class="row">
<div class="col-md-8 col-md-push-2">
<?php print render($page['topics_tab']); ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
Is it possible (easy? difficult?) to modify page.tpl.php
to make Authcache cache this snippet for each user, or should I redo the page using blocks/panels?