How to change print anchor in News from text to image
Posted: Wed Oct 24, 2007 9:51 am
Hi,
I recently managed to change text "Print" to image in News detail and think, this might be useful for someone, who doesn't know CMSMS API.
Firstly, you can see here what I mean:

The steps:
Change:
to:
in your News (detail) template file.
Next, change in your action.detail.php file:
to:
Then it should work. If there will be any problems, let me know. I also would like to know solution, which doesn't require modification of News...
Milhaus
I recently managed to change text "Print" to image in News detail and think, this might be useful for someone, who doesn't know CMSMS API.
Firstly, you can see here what I mean:

The steps:
Change:
Code: Select all
<div id="NewsPostDetailPrintLink">
{$entry->printlink}
</div>
Code: Select all
<div id="NewsPostDetailPrintLink">
<a href="{$entry->printlink}"><img src="images/cms/printbutton.gif"></img></a>
</div>
Next, change in your action.detail.php file:
Code: Select all
$onerow->printlink = $this->CreateLink($id, 'print', $returnid, $this->Lang('print'), $sendtoprint);
Code: Select all
$onerow->printlink = $this->CreateLink($id, 'print', $returnid, $this->Lang('print'), $sendtoprint,'',true);
Milhaus