You can configure how and where you want to display e.g. photographer names or credits on different pages. Note that although photographer names can be in any field, we strongly recommend that you use the Infradox Credit field only for this purpose. Certain options are not available if the photographer names are stored in other fields.
First, configure the Credit field
Assuming that photographer names are stored in the Credit field, go to Site configuration, click Metadata repository in the menu bar and then click on the credit field row in the list.. This will open the properties dialog. This dialog is explained in a separate article that you may want to read first: The metadata repository.
For the sake of what we’re trying to explain with this article however, simply
- select Yes in the Show on website dropdown
- check the box Hide label if the field has no value and
- check the box Display as search link
(this enables either search for the text or activation of the supplier / contributor browse function).
When you are done, click Save at the bottom of the dialog.
Using macros to change how the photographer names / credits are displayed on different pages
This option is a bit more complicated to configure, but it is recommended if you want to display the information differently on different pages.
E.g. one way on the preview pages but using another way on download pages.
Go to Site configuration, click Metadata display in the menu bar and then open the section Credit and Copyright.
In the macro input boxes, enter the codes that you want to use. You can create a macro for the preview pages, for the cart pages and for the order/download pages. If you want to display the information the same way on all pages, then you may not have to use this option at all, or you can simply apply the same macro for all page types.
- [supplier_name] / Best Images
John Doe / Best Images
- [supplier_name][sep][supplier_group][sep]Best Images [sep= / ]
John Doe / Super Photos / Best Images
- [credit] – [copyright]
John Doe – Best images
- © [supplier_name] / [supplier_group] / [ts_copyright]
© John Doe / Super Photos / Best Images
- © [year_now], [credit]
© 2015, John Doe
Codes that you can use for your macros
[supplier_name] > display name of linked supplier
[supplier_group] > group name of which the supplier is part
[ts_credit] > value specified in Website contact details
[ts_copyright] > value specified in Website contact details
[credit] > credit metadata field
[copyright] > copyright metadata field
[author] > author metadata field
Other metadata fields can be used too, for example:
[headline] > headline metadata field
[custom1] > custom1 metadata field
[year_now] > current year
The separator code [sep]
[sep] outputs the separator that you have defined with [sep=…] where … is the separator you want to use.
The = sign is followed by the separator that you want use, for instance:
- [sep= / ] for a space, then a forward slash, and then another space
- [sep=/] for just a forward slash without spaces
- [sep=-] for a dash
Using the [sep] code will help prevent duplicate separators if one of the fields is blank.
Consider the below example:
[supplier_name] / [supplier_group] / Infradox images
If the supplier_group is also Infradox images then it would be displayed twice,
e.g. John Doe / Infradox images / Infradox images.
The duplicate name however is automatically removed, so it will output John Doe / / Infradox images.
If however you use
[supplier_name][sep][supplier_group][sep]Infradox images [sep= / ]
then the output will be (no duplicate separators)
John Doe / Infradox images.
Although you can of course simply output the credit fields as it is available in the file’s metadata, it is recommended that you display the supplier name instead (with the macro code [supplier_name]). Every file is linked to a unique supplier (more info here), and if you use this option then you are guaranteed to display names the same way always (no spelling mistakes, no upper/lower case problems and so on).
For a full credit, this macro is best used: [supplier_name][sep][supplier_group][sep]My company name [sep= / ]