Print icon but no text appearing

General project discussion. NOT for help questions.
Post Reply
sonictrip
Forum Members
Forum Members
Posts: 99
Joined: Thu Jan 24, 2008 4:11 pm

Print icon but no text appearing

Post 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!
nivekiam

Re: Print icon but no text appearing

Post 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.
sonictrip
Forum Members
Forum Members
Posts: 99
Joined: Thu Jan 24, 2008 4:11 pm

Re: Print icon but no text appearing

Post 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.
nivekiam

Re: Print icon but no text appearing

Post by nivekiam »

{if isset($imgsrc)}
{capture assign='image'}
 
{/capture}
{$image} {$linktext}
{else}
{$image}{$linktext}
{/if}
sonictrip
Forum Members
Forum Members
Posts: 99
Joined: Thu Jan 24, 2008 4:11 pm

Re: Print icon but no text appearing

Post 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.
nivekiam

Re: Print icon but no text appearing

Post 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)
Post Reply

Return to “General Discussion”