Hi all,
Really enjoying working with Couch CMS but I'm having a bit of difficult time try grasp which of the core concepts I should use to create the following.
Basically I have an about section of the website I am currently building, this consists of any number of cloned pages. This is all fine and I have my three page (client will need the ability to add more pages using the same template to this view on the website) but instead of showing a listings page when the user goes to /about.php I want it to default to a specified cloned page.
For example I have the following page structure:
in the main navigation for the site there will be a link to "about", when the user clicks this link or visits /about.php I want it direct them to the "about this website" page (which is the default page in backend) instead of the listings view. Is this possible? I just having a bit of difficulty trying to figure out what the best way to go about doing this.
I currently have all the pages there and can access them with the /about.php?p=## url but how do I go about defaulting the first page in that list to appear when the link is just /about.php ?
Here's a basic version of what I am trying to achieve
Thanks in advance for any help anyone may be able to provide.
Really enjoying working with Couch CMS but I'm having a bit of difficult time try grasp which of the core concepts I should use to create the following.
Basically I have an about section of the website I am currently building, this consists of any number of cloned pages. This is all fine and I have my three page (client will need the ability to add more pages using the same template to this view on the website) but instead of showing a listings page when the user goes to /about.php I want it to default to a specified cloned page.
For example I have the following page structure:
- Code: Select all
About
- About this website
- About this business
- About the city
in the main navigation for the site there will be a link to "about", when the user clicks this link or visits /about.php I want it direct them to the "about this website" page (which is the default page in backend) instead of the listings view. Is this possible? I just having a bit of difficulty trying to figure out what the best way to go about doing this.
I currently have all the pages there and can access them with the /about.php?p=## url but how do I go about defaulting the first page in that list to appear when the link is just /about.php ?
Here's a basic version of what I am trying to achieve
- Code: Select all
<cms:template title='About' clonable='1'>
<cms:editable name="about_content" type="richtext" />
</cms:template>
<html>
<head>
<title>about</title>
</head>
<body>
<!-- Primary Content -->
<main>
<cms:if k_is_page>
<article>
<div>
<h1><cms:show k_page_title /></h1>
</div>
<div>
<cms:show about_content />
</div>
</article><!-- /article -->
<cms:else />
here <!-- this is where I want the first item in the navigation below to be displayed if a page isn't loaded -->
</cms:if>
</main>
<!-- About section in page sub navigation widget -->
<aside>
<ul>
<cms:pages masterpage='about.php' order="asc">
<li><a href="<cms:show k_page_link />"><cms:show k_page_title /></a></li>
</cms:pages>
</ul>
</aside>
</body>
</html>
Thanks in advance for any help anyone may be able to provide.