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?
SOLVED: LinkMgr images
SOLVED: LinkMgr images
Last edited by nmorgan on Thu May 24, 2012 1:47 pm, edited 1 time in total.
Re: LinkMgr images
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.
That way you get all the available variables and their values.
Re: LinkMgr images
<img src="{$item.link_img}" title="{$item.link_name}" alt="{$item.link_name}" />
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: LinkMgr images
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.
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
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.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: SOLVED: LinkMgr images
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!
Again, much thanks!
Re: SOLVED: LinkMgr images
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"