eZ Community » Forums » Setup & design » Show hidden nodes
expandshrink

Show hidden nodes

Show hidden nodes

Wednesday 15 October 2008 10:22:49 am - 4 replies

I want to show a certain part of the website to a colleague for verification, but I don't want that part to appear online yet so I made it hidden.
Yet, I can't find a policy i.e.('show hidden nodes') that can be assigned to a certain role... only an ini setting for a whole siteaccess.

Anyone got suggestions to accomplish that people can view hidden nodes after login? Thanks already!

Wednesday 15 October 2008 10:25:51 am

Create a custom siteaccess that only they have access to login to blunk.gif Emoticon

Thursday 16 October 2008 10:06:51 pm

ok, or just assign it to a section and add a policy blunk.gif Emoticon

maybe I should enter a feature request...

Friday 17 October 2008 10:07:29 am

If only navigation/search tools such as menus or sitemaps are well configured, that is they only fetch what they are supposed to, including section declaration, then adding another section does the trick perfectly, we use that all the time to develop functionalities that aren't supposed to be accessed by general users. Whether the user will be required to log in or not to see that section, remains only the matter of how you setup your policies.

Thursday 21 January 2016 10:31:15 am

Just for the searching people: I solved a similar problem by adding something like

if( preg_match( '~^/?admin_de/content/versionview/~' , $_SERVER['REQUEST_URI'] ) ) {
    $ezIniSiteIni = eZINI::instance('site.ini');
    $ezIniSiteIni->setVariable( 'SiteAccessSettings', 'ShowHiddenNodes', 'true' );
    $ezIniSiteIni->setVariable( 'ContentSettings', 'ViewCaching', 'disabled' );
}

in my extension/customerX/autoloads/eztemplateautoload.php.

Now, when you open a file in the backend to edit it, you can see the hidden parts of the site via the "preview" button.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from