Friday 04 April 2008 2:54:01 am
I have a similar problem... I have a form which I'm trying to pre-populate with the current user id. It works, but the contents are cached, and it always displays the same user id, regardless of the current logged in user! I've tried several of these solutions (cache-block expiry, set-block ttl, etc...), with no luck. My template is this one...
{default content_object=$node.object
content_version=$node.contentobject_version_object
node_name=$node.name
current_user=fetch('user', 'current_user')}
... form fields including $current_user.login ...
...which is called from another template, this way:
{let form=fetch('content', 'node', hash('node_id', 10091))}
{section show=$form}
{node_view_gui view=full content_node=$form}
{/section}
{/let}
I'm using 3.6.5... Any hint would be appreciated, thanks!
|