preclick
on Dec 18. 2007. 6:02 pm
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..
tinycg
on Dec 19. 2007. 3:20 am
I'd agree that would be a nice addition, I can look at it in the next couple days.
Leon
on Dec 19. 2007. 5:30 am
nice idea- I'd also be interested in a solution for this...
Ilija Studen
on Dec 20. 2007. 7: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:
{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 |
LinkedIn
davidm
on Feb 1. 2008. 5:39 pm
Great, I was just looking of this, and IMHO it should be in 1.1 as default...
I'll update views accordingly !
The best way to predict the future is to invent it
------------------------------------------
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
sccrwoohoo
on Feb 3. 2008. 5:24 pm
Where would you put this?
mdesign
on Mar 25. 2008. 6:11 pm
Thank for that bit of code, Ilija.
http://masugadesign.com
ralph_rapport
on May 21. 2008. 12:09 pm
Is there anywhere to put this to make it global in 1.1?