hello ... I am using relationships for the first time and, grappling to get it working, wanted to check that what I am trying to do is do-able using this method. Fairly simple really, I would have used dynamic folders, but clones of work.php (i.e. work items) can belong to more than 1 category. I want to have sub-navigation/filtering at the top of the work.php listing page to show work items by category.
So I have created a relationship between work.php and work-categories.php and get the list of work-categories showing up in the Admin Panel for work.php. Now I have hit a brick wall! Here is the work-categories.php template:
And in work.php the editable region is:
I've tried variations of the related_pages and reverse_related_pages tags within work.php but nothing is happening.
Any hints or tips much appreciated!
So I have created a relationship between work.php and work-categories.php and get the list of work-categories showing up in the Admin Panel for work.php. Now I have hit a brick wall! Here is the work-categories.php template:
- Code: Select all
<?php require_once( 'admin/cms.php' ); ?>
<cms:template title='Work categories' clonable='1' commentable='0' order='50'>
</cms:template>
<?php COUCH::invoke(); ?>
And in work.php the editable region is:
- Code: Select all
<cms:editable type='relation' name='work_category' label='Work category' masterpage='work-categories.php' />
I've tried variations of the related_pages and reverse_related_pages tags within work.php but nothing is happening.
Any hints or tips much appreciated!