Keyword

How to hide 'Add a new item in this category' link

  • John Comeskey
  • John Comeskey's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 11 months ago #73657 by John Comeskey
So I have some K2 categories in which I allow submissions from registered users and other K2 categories in which I do NOT allow submissions from users.

But ALL K2 categories include a link that says, 'Add a new item in this category'. I cannot figure out how to hide this link in the categories that do not allow submissions.

Can anyone please advise? Or is this a K2 bug?

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #73658 by Markus Thiel
Replied by Markus Thiel on topic How to hide 'Add a new item in this category' link
Just remove this in your file item.php:


addLink; ?>">

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #73659 by Markus Thiel
Replied by Markus Thiel on topic How to hide 'Add a new item in this category' link
< span class="catItemAddLink" >
< a class="modal" rel="{handler:'iframe',size:{x:990,y:650}}" href="< ?php echo $this->addLink; ? >" >
< ?php echo JText::_('Add a new item in this category'); ? >
< /a >
< /span >

Please Log in or Create an account to join the conversation.

More
13 years 11 months ago #73660 by asdfads adfasdf
Replied by asdfads adfasdf on topic How to hide 'Add a new item in this category' link
I have the same problem - kind of urgent that I solve this - any info anyone? I want it to appear for categories they have permission to edit, but not the ones they don't...

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #73661 by asdfads adfasdf
Replied by asdfads adfasdf on topic How to hide 'Add a new item in this category' link
Has anybody found a way to make this work right? This is killing me...

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum