Topic: One publication, multiple Categories
Converted
avatar
12
Posts: 0

Posted:
14.Jun 2008 - 03:04

Looking for a way to have a single publication assigned to multiple categories.. is there any way to do this?

Converted
avatar
12
Posts: 0

Posted:
14.Jun 2008 - 04:24

If you don't specifically need to use the Postnuke/Zikula category system, you could use publication relations.

http://elfisk.dk/modules/pagesetter/docs/manual/PagesetterManual.html#relationsrelation



edited by: dks, Jun 13, 2008 - 08:24 PM
Converted
avatar
12
Posts: 0

Posted:
14.Jun 2008 - 18:10

I am using the Pagesetter categories actually...

What I am actually trying to do is associate a publication to more than one pagesetter category.

i.e.

Categories: 1. Food 2. Nature 3. People (etc)

Documents: 1. Deer 2. Dogs 3. Cats 4. Hockey Stars (etc)

I'd like to have the document "Deer" listed when viewing either Category "Food" or Catetgory "Nature"

The Relationship system may do what I need but not without rebuilding my site. I use a single document type and have them associated to pagesetter categories.. Everything is accessed from a ceatgories block.

Hope all this makes sense..
Converted
avatar
12
Posts: 0

Posted:
14.Jun 2008 - 23:42

I have had a look at relation feature and I must say, it is very well done!! I will be doing the work necessary to use it and it will be worth it!!!

One snag I have run into tho.. I created Parent and Child Publication types and it all works good.. Only thing is if I Display the Parent Type, the list of child objects is limited to 5.. I have checked "Number of publications to show in list" to 99 in both Publication types but this did not help.. I see nothing in the templates that would cause this...

What am I missing?



edited by: Sorak, Jun 14, 2008 - 06:43 PM
Converted
avatar
12
Posts: 0

Posted:
15.Jun 2008 - 05:14

Found it
In function.pagesetter_inlinePubList
I changed

Code

$noOfItems = (empty($args['pubcnt']) ? 5 : $args['pubcnt']);

to

Code

$noOfItems = (empty($args['pubcnt']) ? 50 : $args['pubcnt']);


Works great now! :-D
Converted
avatar
12
Posts: 0

Posted:
1.Aug 2008 - 07:07

You could also just specify how many publications to display using the pubcnt argument. HOW you do it depends on how you're displaying your list (inline list, full page, etc)