
david at kineticode
Jul 12, 2011, 11:11 PM
Post #4 of 4
(493 views)
Permalink
|
On Jun 2, 2011, at 5:31 AM, Nick Legg wrote: > I haven't been able to find anything like that, but perhaps I'm looking in the wrong place. I checked in Admin -> Publishing -> Contributor Types and Admin -> Publishing -> Contributors. Here's how it works: In ADMIN -> PUBLISHING -> Contributor Types, you can add custom fields to a type. The default "Writer" and "Illustrator" contributor types, for example, each have a custom field named "Bio". Custom fields are optional; you only need to add them if you want some sort of additional data associated with a particular type of contributor. Maybe for "Photographer" you want a "Kit" field where you can select "Canon" or "Nikon". Once you have a contributor type with a custom field, if you switch over to ADMIN -> PUBLISHING -> Contributors and search, you'll see that contributors of that type, in addition to having the usual "Edit" and "Log" links, will have a "New" link. If you click one, you'll get a new field, "New Role Name", where you can type in a new role. For a photographer, you might type "Sports", then click "Next". Now you'll see the usual contributor profile, only in the Custom Fields section, you'll see two tabs: "Default" and "Sports". You can then select a different value for each. You can have "Canon" selected in the "Default" tab and "Nikon" selected in the "Sports" tab. This allows you to have one contributor but different metadata associated with that contributor's roles. Then, when you edit a story and add a contributor, if the contributor has more than one role (and all have at least one, named "Default"), you can select in which role the contributor is associated with the story. So if our photographer has provided a photo of a rugby match, you might select "Sports". Then when the story is published, the template can fetch the contributor and the "Kit" field contents and list the photographer as a Nikon user. The reason you haven't known how to do this, most likely, is that you have no custom fields in any of your contributor types. So the "New" link will never show up, and every contributor will have only the "Default" role. I did notice one minor bug when looking at this stuff, though: If you go to edit a contributor of a type that has no fields, the "Custom Fields" section header still shows up, but is completely empty. It probably should not appear at all. HTH, David
|