Login or Register

RSS IconRecent posts in this topic

avatar
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..
avatar
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.
avatar
Leon on Dec 19. 2007. 5:30 am
nice idea- I'd also be interested in a solution for this...
avatar
cyandesign on Dec 19. 2007. 8:31 am
That would be handy.
avatar
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
avatar
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)
avatar
sccrwoohoo on Feb 3. 2008. 5:24 pm
Where would you put this?


avatar
mdesign on Mar 25. 2008. 6:11 pm
Thank for that bit of code, Ilija.
http://masugadesign.com
avatar
ralph_rapport on May 21. 2008. 12:09 pm
Is there anywhere to put this to make it global in 1.1?

RSS IconRecent posts in this topic