An External Picture layout is used to show a picture for each object in a list, and works by using a property on your objects to reference images on the Evolve server.
It is similar to the Image layout, except it is much better suited to displaying smaller images.
For example, you could have a number of 'Product' objects, each one with a 'logo' property. If you upload an image for each product to your Evolve server, you can enter the image name in the 'logo' property for each product, and using the External Picture layout, display that logo on an Index Page or Object Page (if listing Associated Objects).
|
In order to use the External Picture layout, you must have a Property Type on your object which can be used to store the image file reference. This must be a Single-Line Textproperty. Note the scriptname of this Property Type. The External Picture layout also requires you publish your Site as a Custom Site, and image files must be uploaded to your Evolve server. |
---|
Why and how should you use one?
Use the External Picture layout when you want to display an image for each object in a list.
Where and when can you use one?
Use the table below to see where you can use an External Picture:
Page Type |
Parent node |
Tabs |
Number on page |
Editable |
---|---|---|---|---|
Index Page |
Object Type node |
Yes - optional |
Any |
No |
Object Page |
Association Type node |
Yes - mandatory |
Any |
No |
What do you want to do?
Use an External Picture layout
To use the External Picture layout:
Ensure you have a Single-Line Text Property Type on your Object Type where you can enter the image name. If you do not have one, use CW Suite to create a new one.
For example, create a new Property Type titled 'logo'.
|
If you create the Property Type while Evolve Designer is open, you will have to close Evolve Designer and re-open it in order for it to recognize the new meta data. |
---|
Upload all the image files you want to use to the 'images' folder, or a sub-folder within it, in your custom Site folder
All standard web image formats are supported.
For each of the objects you want to use an image with, enter the image file name in the new property field.
What you enter here must be the full path to the image file, with the root being the 'images' folder in your custom Site folder. Therefore, if you uploaded your images directly into the 'images' folder, you can simply enter the image file name. However, if you created a sub-folder there, you should enter: <sub-folder-name>/<image-file-name>, such as 'logos/myimage.png'.
In Evolve Designer, locate the parent node you want your External Picture page to sit beneath
This is either the Object Type node on an Index Page or an Association Type node on an Object Page
In the Selected Properties setting for the parent node, ensure you select the new Property Type which stores the image reference
Right-click the layout beneath the parent node and choose Switch Layout > CW > External Picture
In the Layout ID setting for the External Picture layout node, enter the scriptname of the Property Type which stores the image reference.
Save and Publish your Site.
|
Please remember that now you are using a custom Site you must select that custom Site in the Deployment node settings for your Site. |
---|
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Términos de uso Privacidad Cookie Preference Center