Jump to content
Sign in to follow this  
disarci

[Solved] Help: How to open a ThickBox from a CSS page in 1.1?

Recommended Posts

in .php file:

$css_files = array(__PS_BASE_URI__.'css/thickbox.css' => 'all');
$js_files = array(__PS_BASE_URI__.'js/jquery/thickbox-modified.js');

/** BEFORE INCLUDE  HEADER!!!! **/
include(dirname(__FILE__).'/header.php');



in .tpl file:

{include file=$tpl_dir./thickbox.tpl}



Calling cms.php:

{l s='(read)'}

Share this post


Link to post
Share on other sites

The reason that I want to have the thickbox in cms is because I want a picture with thickbox popup when you click a text link. I do not know how I can do it correct.

Share this post


Link to post
Share on other sites

Ok,
it's different:

you have to put (like Vino said)
in .php file:

$css_files = array(__PS_BASE_URI__.'css/thickbox.css' => 'all');
$js_files = array(__PS_BASE_URI__.'js/jquery/thickbox-modified.js');

/** BEFORE INCLUDE HEADER!!!! **/
include(dirname(__FILE__).'/header.php');
in .tpl file:

{include file=$tpl_dir./thickbox.tpl}

But you can't do it from the CMS page (html) because it will be filtered, you have to enter directly in sql:

example:


  

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More