Share » Forums » General » Forums - Edit Button Problem

Forums - Edit Button Problem

Forums - Edit Button Problem

Monday 26 February 2007 3:47:08 am - 4 replies

Author Message

Claudia Kosny

Monday 26 February 2007 4:47:04 am

Hi John

The latest news I heard about this was that there was no good fix available. The reason for this problem is that the views are cached based on the role, not on the single user. So if user A and user B share the same role, they will see the same view. If you would cache by user this would be solved, but you would have quite a lot of cache files.

Check also here:
http://ez.no/community/forum/general/do_you_see_the_edit_button/re_do_you_see_the_edit_button__10
and the bug report in the last post in this thread.

Claudia

John Smith

Monday 26 February 2007 4:57:16 am

Hi Claudia,

Thanks for your kind help. Would it be possible for you to help me in writting the template code for caching by user please.

Cheers.

Smith

Xavier Dutoit

Monday 26 February 2007 5:48:38 am

And don't forget to disable the cache view on the template level (TTL=0)

Otherwise, might be easier to have a bit of javascript that hides the buttons when current user != owner than doing that on the server.

X+

P.S. The problem is still present on the forums on ez too,

http://www.sydesy.com

John Smith

Monday 26 February 2007 5:56:26 am

hi there,

I am using the code in the template named as /design/news/templates/full/forum_topic.tpl

{set-block scope=root variable=cache_ttl}0{/set-block}
{cache-block keys=array($uri_string,$current_user.contentobject_id)}

... tpl code

{/cache-block}

It is not doing anything.

Moreover i am not too good at javascript, can you please help me in that.

Cheers

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu