By Philippe on Friday, 07 February 2020
Posted in Technical Issues
Likes 0
Views 753
Votes 0
Hello,

How to deactivate the "View page as" option?
So that admins of Pages can only publish as Page (default).

Thank you
Philippe
Unfortunately that is no setting for this, but you can modify on this file if you would like to show the page owner by default.

JoomlaFolder/administrator/components/com_easysocial/includes/template/helpers/form.php

Find this line of code 858


$viewAs = $session->get('easysocial.viewas', 'user', SOCIAL_SESSION_NAMESPACE);


Replace with

$viewAs = $session->get('easysocial.viewas', 'page', SOCIAL_SESSION_NAMESPACE);


Then that view page as button, you have to use CSS to hide it.
·
Saturday, 08 February 2020 01:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok. Thank you Arlex
·
Saturday, 08 February 2020 05:41
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome, marking this as resolved.
·
Saturday, 08 February 2020 18:20
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post