Jump to content

TM Banner


Recommended Posts

hello

 

i just uploaded my picture and set the link in the modules tab in prestashop back office.

it all works but i want it to open up the link in a new tab or window.

in the code i see it says "_blank" which i have been reading should do what i want but it dont.

i wanted to link it a my facebook page for biz.

 

Thanks

 

w1dg3t

Edited by w1dg3t (see edit history)
Link to comment
Share on other sites

I looked at at native tmbannerblock.tpl file

 

it does not have the _blank

 

Here is the code with the _blank (not tested as I don't use it)

 

modules/tmbannerblock/tmbannerblock.tpl

 

{if $page_name == 'index'}
<!-- tmbannerblock -->
<div id="tmbannerblock">
{counter name=banner_count start=0 skip=1 print=false}
		{foreach from=$xml->link item=home_link name=links}
				<a href='{$home_link->url}' target="_blank" class="banner{counter name=banner_count}"><img src='{$this_path}{$home_link->img}'alt="" border="0" title="{$home_link->desc}" /></a>
		{/foreach}
</div>
<div class="clearblock"></div>
<!-- /tmbannerblock -->
{/if}

 

please note: you will need to set force compile to see any changes to a .tpl file.

Edited by elpatron (see edit history)
Link to comment
Share on other sites

<form action="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'" method="post" enctype="multipart/form-data">

<fieldset><legend>'.$this->l('Advertising block configuration').'</legend>

<a href="'.$this->adv_link.'" target="_blank" title="'.$this->adv_title.'">';

if ($this->adv_img)

 

This code is in the tmbanner2.

 

you see it says _blank

 

this in the tmbanner2.php

 

what do you think i should do.

 

I couldnt find a .tpl

 

Thanks

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
×
×
  • Create New...