Jump to content

The right structure for catalogs


bookie
 Share

Recommended Posts

I am slowly feeling my way through processwire and am trying to get an idea how best to structure my pages to make it easy to execute what I'm looking for.

My intention is to create catalogs that can contain multiple items. Those items may appear in multiple catalogs.

I was thinking of creating a tag field in item pages, and have catalog templates publish items that contain the relevant tag. But it appears that fields can only hold a single value. If I create multiple fields to serve the same purpose I assume that being able to determine if an item belongs in a catalog would get significantly more difficult. Is there an elegant solution to this that has already been worked out somewhere? 

Link to comment
Share on other sites

Hi there. 

Trying to visualize what you're trying to do.

From what I see, it may be good to go with Page references. Multiple type. So you can tag them accordingly. 

This way if you add a new catalog category, it will automatically be visible on the auto fill/checkbox. 

Link to comment
Share on other sites

Ottogal, that looks like what I needed, thanks!

Pip, it does look like Page References are what I was looking for. The car example in the tutorial ottogal linked is close to what I'm doing. 

For example if you have a movie that is both in Japanese, and a Horror movie, I want to simply create pages that list it under both Japanese Movies and Horror Movies.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...