-
MODX Staff
- 2,502 Posts
Either that or you could use Static Resources where the link was to the image and you could use other fields for the image text.
On modx.com we use static resources for the slider list that sit below home:
https://img.skitch.com/20120403-eteqfjtqkiqakh2ms62kcwyjn3.jpg
https://img.skitch.com/20120403-e38nit888f2p5fks9t4e1nyesj.jpg
As you can see in the first image we're repurposing fields (using form customization) and using the static resource to link to the image.
In the second image you can see how it looks beneath the home page.
You can take a look at the home page source view to see how the list looks in the markup and we use a chunk for the getResources call as follows:
<li id="hl_[[+idx]]" class="panel" style="background: url([[+content]]) no-repeat;" onclick="location.href='[[+introtext]]'" >
<div class="copy" style="[[+description]]">
<h5>[[+pagetitle]]</h5>
<h6>[[+longtitle]]</h6>
</div>
</li>
Hope this helps.
Cheers,
Jay
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
OIC -- no, the link must be the text and the image to go with the link, so a TV is the best way.
Thank you, everyone...