I'm wanting to allow my client to be able to create unlimited pages at the root of their site, for example, these will be used for confirmation pages etc:
http://www.url.com/test-page http://www.url.com/test-page2
I've created the following template using Switchee, however when I goto the url for the page I simply get a 404 page. I've created a "standard_items" channel and they have the url of test-page:
{exp:switchee variable="{segment_1}" parse="inward"}
{case value=""}
{embed="site/header" page_name="home"}
<!-- Homepage -->
{exp:channel:entries channel="home" limit="1"}
<h1>{title}</h1>
{/exp:channel:entries}
{/case}
{case default="yes"}
{embed="site/header" page_name="detail"} <!-- Standard page -->
{exp:channel:entries channel="standard_item"}
<h1>{title}</h1>
{introduction}
{image}
<div class="image">
<img src="{url:portrait}" alt="{title}" width="196" height="224" />
</div>
{/image}
{body}
{/exp:channel:entries}
{/case}
{/exp:switchee}
{embed="site/footer"}
Any idea why?