Hi
I'd like to ask if there is a way to insert a link, which is visible only for the users (or a group of the galery) and not for all.
Sugar888
Offline
Activate and use of LocalFiles Editor ([extension by Piwigo Team] LocalFiles Editor)
and in the first tabsheet "Local config"
following the php writing rules insert for example:
$conf['links'] = array(
'http://piwigo.org' => array(
'label' => 'Piwigo website',
'new_window' => false,
'visible' => 'return !is_a_guest();'),
);
You will get in the Links menu a single link to Piwigo only for your registered visitors.
Offline
Hi
I tried your suggestion and used for testing it what you've used as an example, but it seems not to work. I see in the Link menue the link, but it is visible for guests too.
Offline
Now I was wondering if this option could be included in the plug-in Advanced Menu Manager.
Offline
Sugar888 wrote:
Hi
I tried your suggestion and used for testing it what you've used as an example, but it seems not to work. I see in the Link menue the link, but it is visible for guests too.
That's true, and it's a regression from prior releases.
:-(
Offline
Sugar888 wrote:
Now I was wondering if this option could be included in the plug-in Advanced Menu Manager.
That's true.
IMO, it is much more complex.
I am going to notify the AMM author.
;-)
Offline
[Bugtracker] ticket 1723
but for now, I don't have the time to implement the feature.
Offline
Thanks :-)
No problem. I'll wait for the upgrade.
Last edited by Sugar888 (2010-06-06 19:57:45)
Offline