GetSimple Support Forum

Full Version: Can't Make Pages Private
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys,

Here's my dilemma!  I need to make certain pages private that are been used as content in another page (<?php get_i18n_content('page'); ?> but when I set page to private it still shows up, even when I'm logged out!

Please Help!
Try incognito mode to be sure
(2017-03-08, 11:27:03)shawn_a Wrote: [ -> ]Try incognito mode to be sure

Hi Shawn,

Content still showing?
That's correct, it's how the function works (like GS's getPageContent)

To accomplish what you need, you have to something like
PHP Code:
<?php if (returnPageField('page','private') != 'Y' || is_logged_in()) { ?>
...
<?php get_i18n_content('page'); ?>
...
<?php ?>
(Not tested)
ah i failed to read properly
(2017-03-09, 01:44:35)Carlos Wrote: [ -> ]That's correct, it's how the function works (like GS's getPageContent)

To accomplish what you need, you have to something like
PHP Code:
<?php if (returnPageField('page','private') != 'Y' || is_logged_in()) { ?>
...
<?php get_i18n_content('page'); ?>
...
<?php ?>
(Not tested)
perfect! thank you Carlos and Shawn!