Page 1 of 1
SOLVED: LinkMgr images
Posted: Wed May 23, 2012 12:06 pm
by nmorgan
Hello, I'm the current version of cmsms with linkmgr installed.
I can't figure out how to get the images to show up. I've uploaded link images to the linkmgr uploads folder - when adding links I'm able to select the uploaded files...
yet when I display the page I just get the links as bulleted items with no image.
Any ideas?
http://morganwebhosting.com/~bvizzard/i ... page=press
scroll to the bottom section where links appear under "In The Blogosphere" section.
Is there another module that would do this better?
Re: LinkMgr images
Posted: Wed May 23, 2012 12:12 pm
by Jos
Try {get_template_vars} and for any array you retrieve you can use {$arrayname|print_r}. Put it after the module call.
That way you get all the available variables and their values.
Re: LinkMgr images
Posted: Wed May 23, 2012 12:39 pm
by Rolf
<img src="{$item.link_img}" title="{$item.link_name}" alt="{$item.link_name}" />
Re: LinkMgr images
Posted: Wed May 23, 2012 1:09 pm
by nmorgan
Hello thanks for responses.
Is this module meant to include a photo automatically? I'm not too great with code but with a little more info I might can follow you guys. So far no luck.
Jos: I put in the vars code so that displays now. I tried to follow what you said but got a smarty error which is displaying now:
http://morganwebhosting.com/~bvizzard/i ... page=press
Roff: I tried putting the code you mentioned
<img src="{$item.link_img}" title="{$item.link_name}" alt="{$item.link_name}" />
into the template but didn't know where it belonged. I was able to displace one photo which showed up at the bottom of the list but not one thumbnail for each story.
I was hoping for just a thumbnail instead of the bullet for each of these. Maybe that's not what linkmgr is supposed to do.
Re: LinkMgr images
Posted: Wed May 23, 2012 1:48 pm
by Rolf
Short example
Code: Select all
<div class="linkmgr">
{foreach from=$items item="item"}
{if $item.link_img}<a href="{$item.link_url}" target="_blank"><img src="{$item.link_img}" title="{$item.link_name}" alt="{$item.link_name}" /></a>{/if}
<h4><a href="{$item.link_url}" target="_blank">{$item.link_name}</a></h4>
<p>{$item.link_desc}</p>
{/foreach}
</div>
Note: images must be uploaded to the /uploads/images/linkmgr directory.
Re: SOLVED: LinkMgr images
Posted: Thu May 24, 2012 1:49 pm
by nmorgan
Thanks so much for your help. That worked but the photo just rests above the post - which may just be how it is supposed to be. I was hopping for a thumbnail before the post like you see on blog rolls on blogs. Perhaps I'm not using the right tool for the job.
Again, much thanks!
Re: SOLVED: LinkMgr images
Posted: Thu May 24, 2012 1:52 pm
by Jos
You can resize the image with
CGSmartImage or
SuperSizer and even edit the template and stylesheet in a way that a user can click on the thumbnail to view it in an overlay like "Lightbox"