I want to have a product list page which can be handled by couch admin.
I tried following the portfolio tutorial, but it got so confusing when it came to which page he was coding on. I ONLY want a list view of the products, i don't need a single page for reach of them.
There will be around 10 folders (categories) on one page.
I got a lot of dirty code at the moment, i've managed to make the admin panel thing,
This is my product.php file:
I tried following the portfolio tutorial, but it got so confusing when it came to which page he was coding on. I ONLY want a list view of the products, i don't need a single page for reach of them.
There will be around 10 folders (categories) on one page.
I got a lot of dirty code at the moment, i've managed to make the admin panel thing,
This is my product.php file:
- Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<?php include('templates/header.php'); ?>
<cms:template title="Produkter" clonable="1">
<cms:editable name='Bilde'
type='image'
desc='Last opp et bilde av produktet her'
/>
<cms:editable name='Informasjon'
type='text'
/>
<cms:editable name='Mer_info'
type='text'
desc='Link til mer informasjon om produktet'
/>
<cms:editable name='Brukermanual'
type='text'
desc='Link til mer brukermanual til produktet'
/>
<cms:folder name='ambulanse_baarer' title='Ambulanse bårer' />
</cms:template>
<cms:folders>
<h1><cms:show k_folder_title/></h1>
<section id="content">
<article class="produkter">
<a href=""><img src="<cms:show Bilde/>" alt="" /></a>
<h2><cms:show k_page_title /></h2>
<p><cms:show Informasjon /></p>
<a class="readMore" href="<cms:show Mer_info />">Informasjon</a>
<a class="manual" href="<cms:show Brukermanual />">Informasjon</a>
</article>
</section>
</cms:folders>
<div class="clearLeft"></div>
<?php include('templates/footer.php') ?>
</body>
</html>
<?php COUCH::invoke(); ?>