Jump to content

How do you make a page private?


Recommended Posts

unfortunately with default features is not possible.

you can achieve it only with .tpl file modification

you can use in cms.tpl file code like

{if $cms->id==5}
 {if $logged}
  {$cms->content}
 {/if}
{else}
 {$cms->content}
{/if}
Link to comment
Share on other sites

Please answer the first question first. What would be the code to make a CMS page private? And where would I have to plug the code in at? For example, I created a CMS named "upload". How would I make that private? 

Link to comment
Share on other sites

i said everything necessary in post #2

replace

 

original $cms->content with code that i suggested to use.

replace also if condition:

{if $cms->id==5}

 

with id which is equal to your CMS page id you want to make private.

  • Like 1
Link to comment
Share on other sites

Thanks I found the Page Id. It is 6. I went to the cms.tpl file found $cms->content and replaced it with the below and the page was blank. 

 

{if $cms->id==5}
{if $logged}
{$cms->content}
{/if}
{else}
{$cms->content}
{/if}

Link to comment
Share on other sites

×
×
  • Create New...