Display template: Allows alternative HTML to be used for the resource
view page. See the default 'caption' field for an example. Leave blank
to use the normal display for this field.
Also see the Notes field, where the display template is:
<div class="RecordStory">
<h1>[title]</h1>
<p>[value]</p>
</div>
And the RecordStory CSS class has special styling with a background image.
Basically, you have the ability to style [title] and [value] within
any HTML elements that you want.
Another example, sometimes to limit the line-length of captions, I
might do this for the caption field:
<div class="item" style="width:500px;">
<h3>[title]</h3>
<p>[value]</p>
</div>
<div class="clearerleft"> </div>
The main reason is that you want to style a field (or all fields)
differently. For example, if the design calls for single stacked lines
of metadata, you might want to omit the block structure using the
display templates and have the metadata styled as key value pairs
like:
Title: TEST IMAGE
Country: USA
Date: 11/17/10
Hope that helps
> --
> You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
> To post to this group, send email to resour...@googlegroups.com.
> To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.
>
>
--
Tom Gleason, PHP Developer
DBA Impressive Design
Exploring ResourceSpace at:
http://resourcespace.blogspot.com