I am trying to use the hCard template. I would like to be able to make 2 separate Address Books - one for businesses, one for site users. I created a category "Addresses" with 2 sub-categories "Business Addresses" and "User Addresses".
Do I need another template to point to the second category? How do I change the fields (I tried to change them under the publication edit section, but they didn't change).
I know a lot of people use and love the Pagesetter module and all the thing it can do, but since I'm not too great at programming or php, I'm stuck.
Any and all help is greatly appreciated. A "dummies" version would be wonderful. :-D
Thanks in advance,
Mickey
Posted: 23.02.2008, 04:54
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Firstly, I'm not sure what the hCard template is.
Have you created your publication type for your address book(s) yet?
What problems were you having with your categories?
There's several ways to tackle this, depending on what you want the end result to be.
You can create two publications if you have specific fields for each.
You can create one big list and use filters and/or different templates to display the list results that you need.
Posted: 23.06.2008, 05:34
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
Ok Mickey, here's what i have seen so far:
http://www.pagesetter.net/index.php?module=pagesetter&func=viewpub&tid=4&pid=96
Those guys have a working hCard template for pagesetter... Cool huh?
Now, let's see.. if you want to make two separate Address Books you could either use one publication type and filter using categories (when you list your results you can use the &filter=cat:eq:Business or the &filter=cat:eq:User to restrict your list to just those).
This is if you intend (like with the hCard) to list them using the same format... If you were about to use a different template for each one then you would need then to add &tpl=Business to the business list url (the Address-list-Business -with header, and footer and full- would be another template for your publication type) and if it was users you would use &tpl=User. This way you get to output two completely different formated lists.
You could also implement [if] [elseif] [/if] checks to your templates to customize further.
My best bet would be head over to Pagesetter.net and download a couple of their templates to analyze them so you get the hang out of it.
You are welcome in advance,
Whiskey
P.S. dks... I don't mean to disrespect you but if you didn't knew what an hCard is (it's all about the microformats, baby!), and didn't present any help, why did you answered?