Page 1 of 1

Print icon but no text appearing

Posted: Wed Mar 05, 2008 10:29 am
by sonictrip
Hi, im trying to get the Print icon to appear with the text "Print this page" tot he right of it but for some reason only the print icon is showing without the text.

The tag im using is {print showbutton='true' text='Print this page' popup='true'} but no text appears? Anyone know how to overcome this?

Im using CMSMS v1.2.3, thanks!

Re: Print icon but no text appearing

Posted: Thu Mar 06, 2008 10:41 am
by nivekiam
You found the printing template earlier, check out the Link Template, you can make it look and behave pretty much anyway you want there.

Re: Print icon but no text appearing

Posted: Mon Mar 10, 2008 10:21 am
by sonictrip
Hey, thanks for the reply. Here's my link template:

Code: Select all

{if isset($imgsrc)}
{capture assign='image'}
  <img src='{$imgsrc}' alt='{$linktext}' {if isset($imgclass) && $imgclass!=''}class='{$imgclass}'{/if}/>
{/capture}
<a href='{$href}' class='{$class}' {$target} {if isset($more)}{$more}{/if}>{$image}</a>
{else}
<a href='{$href}' class='{$class}' {$target} {if isset($more)}{$more}{/if}>{$image}{$linktext}</a>
{/if}
How would i change that to make the print text and little print icon appear together?

Thanks.

Re: Print icon but no text appearing

Posted: Mon Mar 10, 2008 1:39 pm
by nivekiam
{if isset($imgsrc)}
{capture assign='image'}
 
{/capture}
{$image} {$linktext}
{else}
{$image}{$linktext}
{/if}

Re: Print icon but no text appearing

Posted: Mon Mar 10, 2008 4:42 pm
by sonictrip
Excellent, thank you and just one last thing that should make this look its best, the image is appearing on top of the text, how would i make it appear to the left so the image and text are on the same line and centred vertically?

Thanks.

Re: Print icon but no text appearing

Posted: Mon Mar 10, 2008 9:45 pm
by nivekiam
If it's forcing it to wrap, then it's how your page is laid out.  This is getting off topic as this is more design/layout/css now.

This is not guaranteed to work as I have no idea what your page looks like or how it's formatted.

{if isset($imgsrc)}
{capture assign='image'}
 
{/capture}
{$image} {$linktext}
{else}
{$image}{$linktext}
{/if}
If you need any further help along those lines, please start a new topic in Layout and Design (CSS & HTML)