<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Under construction settings/code]]></title><description><![CDATA[<p dir="auto">Wondering what the best way is to create single page 'under construction' home page, while being able to freely edit and design the rest of the website—including headers and footers. I tried the PHP redirect from the Oncord Developers page, but it kept throwing a redirect error and would load the page (when not logged in as an admin).</p>
]]></description><link>https://community.oncord.com/topic/9/under-construction-settings-code</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 23:05:35 GMT</lastBuildDate><atom:link href="https://community.oncord.com/topic/9.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Apr 2024 05:50:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Under construction settings/code on Thu, 11 Apr 2024 02:52:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stephenblignault" aria-label="Profile: StephenBlignault">@<bdi>StephenBlignault</bdi></a> Thank you for your detailed response; that certainly looks like the type of solution I was after. Hadn't thought of using two design templates, but that makes perfect sense. Appreciate the insight and code!</p>
]]></description><link>https://community.oncord.com/post/30</link><guid isPermaLink="true">https://community.oncord.com/post/30</guid><dc:creator><![CDATA[Ben]]></dc:creator><pubDate>Thu, 11 Apr 2024 02:52:25 GMT</pubDate></item><item><title><![CDATA[Reply to Under construction settings/code on Wed, 10 Apr 2024 21:44:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ben" aria-label="Profile: Ben">@<bdi>Ben</bdi></a> Hi Ben, we have achieved this same functionality using the following method.</p>
<p dir="auto">Step 1) Create a new temporary Design<br />
Create a design and called it Coming Soon or something similar, and attached this design to your single coming soon / under construction page. (On your page, click on Settings icon and then choose your coming soon template under the Design field.</p>
<p dir="auto">Step 2) Lock down your current Design (using PHP method)<br />
Then your current website design, the default Design template for the rest of your website, click the Source icon and then the PHP tab and add the following code:</p>
<pre><code>&lt;?php

// disable the website until we are ready to launch website.
// only homepage 'coming soon' page is available for non admins.
if (!\Components\Settings\Administrators::currentIsAdministrator())
{
	\Framework\HTTP\Redirection::redirect('/');
}

?&gt;
</code></pre>
<p dir="auto">This will redirect all non-logged in Administrators to the homepage, which should be your Under Construction page.</p>
<p dir="auto">Note, if your Under Construction / Coming soon page is is not the homepage, '/', then replace the code from '/' to your page name, such as '/coming-soon/' or similar.</p>
<p dir="auto">Hope this helps</p>
]]></description><link>https://community.oncord.com/post/25</link><guid isPermaLink="true">https://community.oncord.com/post/25</guid><dc:creator><![CDATA[StephenBlignault]]></dc:creator><pubDate>Wed, 10 Apr 2024 21:44:51 GMT</pubDate></item></channel></rss>