Indicating visibility of an item right in the list
Page: 1
Right now, when you are looking at a list of items like Discussions, Files, etc. you cannot tell what is visible to a client and what is private. To find that out, you need to open the item.
I would like to modify the code to show some type of indication of visibility in the list of items (e.g. a "lock" icon in front of item) Has anyone done this?
To save me some time, perhaps someone could point me to the relevant section of code. Thanks.
..tony..
I would like to modify the code to show some type of indication of visibility in the list of items (e.g. a "lock" icon in front of item) Has anyone done this?
To save me some time, perhaps someone could point me to the relevant section of code. Thanks.
..tony..
Ilija Studen
on Dec 20. 2007. 1:22 am
Every object has a visibility flag with two possible values:
VISIBILITY_PRIVATE - object is visible only to the members of owner company
VISIBILITY_NORMAL - object is visible to member of owner company and to the clients
Here is a simple piece of code that you can use:
VISIBILITY_PRIVATE - object is visible only to the members of owner company
VISIBILITY_NORMAL - object is visible to member of owner company and to the clients
Here is a simple piece of code that you can use:
{if $object->getVisibility() == VISIBILITY_PRIVATE}
<img src="{image_url name=locked.gif}" alt="Locked" />
{else}
<img src="{image_url name=unlocked.gif}" alt="Unlocked" />
{/if}
activeCollab team member



