Copyright footer with link

GK User
Sat Jan 14, 2012 3:09 pm
Hi, i am inserting in the templates properties, in the copyright section, a copyright text with link inside it, something like the following © <a href="http://www.website.gr/" title="Something"></a> but when apply/save it is stripping the html code.

any ideas?
User avatar
Junior Boarder

GK User
Sun Jan 15, 2012 12:26 pm
Hi,

html tags are striped by Joomla itself. You can add your hard footer text with html format in: \templates\gk_musicity\layouts\blocks\footer.php
Replace this code:
Code: Select all
<?php echo $this->getParam('copyrights', ''); ?>
User avatar
Platinum Boarder

GK User
Sun Jan 15, 2012 5:07 pm
thanks that did the trick
User avatar
Junior Boarder

GK User
Sun Jan 15, 2012 6:49 pm
There is an alternative you can stop joomla stripping the html from the text field. To do that you would need to edit the joomlaroot/templates/yourtemplate/templateDetails.xml file.

You need to find the following line and add filter="raw".
Original
Code: Select all
<field name="copyrights" type="textarea" rows="3" cols="40" label="TPL_GK_LANG_COPYRIGHTS" description="TPL_GK_LANG_COPYRIGHTS_DESC" />

Changed Line
Code: Select all
<field name="copyrights" type="textarea" rows="3" cols="40" filter="raw" label="TPL_GK_LANG_COPYRIGHTS" description="TPL_GK_LANG_COPYRIGHTS_DESC" />
User avatar
Expert Boarder


cron