|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Design Customization Display image of an entry in informers (very first image in the entry) |
Display image of an entry in informers |
NormalX,
Code <a href="$ENTRY_URL$"><img src="$IMG_URL1$"></a> This will be the code a clickable entry image that takes you to the entry page. The rest - styles, spacing etc, can be set as you like. I'm not active on the forum anymore. Please contact other forum staff.
|
Sunny, Tried,it didn't work
Here is code for homepage Code $MYINF_1$ Informer 1 Code Code <a href="$ENTRY_URL$"><img src="$IMG_URL1$"></a> Link to entries - http://alphax.ucoz.com/news Added (2014-04-20, 2:53 PM) |
NormalX, try this:
In the Page of full entry and its associated comments replace $BODY$ with: Code <div id="fromhereimg">$BODY$</div> Then in the informer's template, where you want image to apperrar: Code <script>$(document).ready(function(){ $('#imgload').load('$ENTRY_URL$ #fromhereimg img:nth-child(1)'); });</script> <div id="imgload"></div> If you want to associate style to the images, write at the end of the informer's template: Code <style>#imgload img { /* --- CSS --- */ }</style> I'm not sure if it will work. hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau sometimes i lurk here |
| |||
| |||