HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Hide "Add News"

Login / Search

 [ Join | More ]
 Add topic 
#59920 (In Topic #13035)

Fan in action

Hiding the "Add News" Link

I was wondering if there is a way for me to hide the "Add News" link from the MAIN_NEWS and SIDE_NEWS blocks based on the user's usergroup? That or hide it all together?
Back to the top

Community saint

Hi Dezzles! Yes, you can remove the link via the following templates:

Block Main News: BLOCK_MAIN_NEWS.tpl


{$?,{$IS_NON_EMPTY,{SUBMIT_URL}},<a href="{SUBMIT_URL*}">{!ADD_NEWS}</a>|}
That's on line 2 and just remove it and good to go.

Block Side News: BLOCK_SIDE_NEWS.tpl

This is exactly the same as main news. It's important to note that in this case, the very last character on line 2 needs to be a curly brace }. With the add news stuff in there, there are two braces and it's easy to miss and remove the second one by accident.

Hope this helps!

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top

Fan in action

Thankyou very much, it worked like a charm :D
Back to the top
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: