Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
I've had something sprung on me at the last moment by a client.
They want to disable a page on their website for christmas - I have told them that I am not sure if that is actually possible - but thought it was worth me asking!
The page in question is actually a shop page - I think I'm just going to have to add a note on the page for them warning people not to order after a certain time.

Thanks
You can simply unpublish the page (from 'Advanced settings' dropdown) and that should be it.
Does this help?
I figured that doing that would result in a 404 though.
I really wish that they had told me that they wanted the ability to do this in the original spec!
That might work well enough though, thanks for pointing it out!
You could add a checkbox to the template, let’s call it disable_page.
Code: Select all
<cms:editable name="disable_page" label="Disable this Page?" type="checkbox" />

Then on the front-end use
Code: Select all
<cms:if disable_page>
   <!--add desired behavior here.
         redirect, message, whatever-->
</cms:if>

This way you can use if-logic in other areas as well, for instance to disable or remove links to the page.
Code: Select all
<cms:if !(disable_page)>
   <a href="<cms:show k_page_link/>">Link Text</a>
</cms:if>

Just another idea that might work for you.
Ok, that is an excellent long term solution.
Will give that a go if the unpublish idea doesn't pan out!
Thanks for pointing that out! :)
5 posts Page 1 of 1
cron