You are not logged in.
OK, after a quick chat with graeme, he made me notice that that’s how thing work on the inner cogs of TXP, because:
because /section/category/title effectively means /?s=section&c=category&id=someid
And also:
/section/title?c=category is valid (returns true)
Even if the above URLs may not match any real use case, that’s how things works on the background. TXP evaluates if the &c=name ($c variable) is set, and so, if_category returns true, even if on an individual article.
The possible “workarounds”:
if_individual_article instead of testing for if_categoryif_article_list first and then nest a if_category (aka “if_category_list” tag, yet to be invented).Thanks, graeme!
Offline
Thanks for letting us know, Julián!
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Funny I never remarked that. Thanks for the heads-up!
In the gbp library look for:
@var $permissions = ’1,2,3,4,5,6’;@ (two instances)
change to the user levels that you need there.
See graeme’s post
Last edited by uli (2009-11-10 14:49:49)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
uli wrote:
In the gbp library look for:
var $permissions = '1,2,3,4,5,6';(two instances)
change to the user levels that you need there.
Instead of modifying the admin library can I suggest you define var $permissions = etc... in the PermanentLinks, PermanentLinksBuildTabView and PermanentLinksListTabView classes within the gbp_pl source. The admin library is used for other plugins (eg. MLP) so any changes made to it would also effect them too.
Offline
graeme wrote:
The admin library is used for other plugins (eg. MLP) so any changes made to it would also effect them too.
Ouch! Thanks
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
graeme wrote:
Instead of modifying the admin library can I suggest you define
var $permissions = etc...in thePermanentLinks,PermanentLinksBuildTabViewandPermanentLinksListTabViewclasses within the gbp_pl source. The admin library is used for other plugins (eg. MLP) so any changes made to it would also effect them too.
True. It would be possible to upgrade the plugin with the new restricted permissions? I think that is better that only the admin can define the Links by default.
Offline