What is it?
The best way to think of a Paint Layout is a Design File for your page content. These are particularly useful when you have several assets that you wish to display in an identical way, for example if you had staff profiles or interviews and wanted them to look consistent. When combined with a Metadata Schema a Paint Layout can become a very powerful tool.
How do I do it?
- Create a new Paint Layout
- Acquire the locks and select which type of assets you would like to customise then click commit
- If you acquire the locks again you can select another asset to customise. This is useful if you have several different types of assets setup in a tree type structure. For example you store all your profiles in different folders and want all the folders to list the profiles stored within and then want the profiles to display identically
- Expand out the layout then expand the Type Formats
- Right click on the asset type you'd like to customise and then right click and go to edit contents
- Set up the page content as you need and commit when you are finished. Any keywords such as Paint Layouts will be regenerated for each asset the Paint Layout is applied to. Remember to include the keyword to print the actual information stored within the asset itself.
- When you are finished navigate to the area in the tree where you would like to start the cascade, right click on it and go to Lookup Settings.
- Acquire the locks and apply the Paint Layout to the Layout area and then commit the changes. (NOTE: you can create different user defined layouts and change the look and feel of assets just as you would with a design)
If you have problems viewing Paint Layouts across different URLs you need to check the URL Specific Definitions to see if they have been applied across all the site URLs
If you were paying attention when editing the contents of the Type Format you would have noticed something different about Paint Layouts. They have the ability to have Conditional Keywords applied to them.
As the name suggests Conditional Keywords allow you to control what the user can see of the asset contents based on certain conditions being met. Two of the most useful conditions are Regexp and logical, which allow you to do pattern matching and obtain a true/false. So if you stored lots of optional interview question values as metadata but only wanted them to display if they had been answered you would create a logical condition on that metadata field. Then within the contents of your Type Format you would start the condition, print the appropriate question and answer if it was true and simply leave the contents blank if it wasn't.