Display specific field in item view ONLY for an author

More
10 years 11 months ago #42521 by brandonking
Hi,

I am trying to use a text field as a hyperlink or button to trigger un-publish link.

But, I ONLY want to display this text field for an author in item view(not item form view).

Does anyone know how to achieve this without hacking?

Thanks for your time.

Regards,

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

More
10 years 11 months ago #42522 by nemicker
need to create a group for your author ...
or edit tour template
Code:
<?php $user =& JFactory::getUser(); $userName = $user->get( 'name' ); if ($userName == 'YOURNAMEUSERWANTED') { } else { echo YOUR POSITION OR FIELD; } ?>

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.862 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline