Add Image to News Printlink

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jimbabwe
Forum Members
Forum Members
Posts: 29
Joined: Sat Nov 18, 2006 8:09 pm

Add Image to News Printlink

Post by jimbabwe »

I just moved a dev site from Maui 1.0.2 to Maui 1.0.3

On the 1.0.2 dev site, I had coded the news detail pages to have a print link using a small graphic:

printlink}" target="_blank" class="printlink">Print Version

I must have edited something else on the backend for the 'printlink' code on the old 1.0.2 site, because this doesn't work on the new 1.0.3 site. If I did, I don't remember.

So basically, the question is: How can I use an image for the printlink function on news detail pages?

Sorry if this is already answered in the forum; I looked around and didn't find it.

Thanks.
jimbabwe
Forum Members
Forum Members
Posts: 29
Joined: Sat Nov 18, 2006 8:09 pm

Re: Add Image to News Printlink

Post by jimbabwe »

SOLVED.

I found the edit in my previous site.

1. Open  action.detail.php in the News module folder.

2. Find the line (somewhere around line 62): 

$onerow->printlink = $this->CreateLink($id,'print', $returnid, $this->Lang('print'), $sendtoprint);

3. Edit the line to read:

$onerow->printlink = $this->CreateLink($id, 'print', $returnid, $this->Lang('print'), $sendtoprint, '', true);

Save changes.

The printlink can now be used to surround images/words:

printlink}" target="_blank" class="printlink">Print Version
Post Reply

Return to “Layout and Design (CSS & HTML)”