Hide / Unhide plugins via admin-page

kuzco

Avatar: kuzco

2011-03-01 14:41

Hello,
have implemented QC4.0 with some plugins, like Randomproduct, LastProduct, SimpleCounter, etc.
In my admin page I have also created a new tab for these plugins with a yes/no option for each plugin.
The idea I have is to define with the yes/no option in my admin page which plugin will be shown on the homepage.

This means in templates\container.tpl (where $sRandomProduct, etc. are added) I have to find a way to check the yes/no option for each plugin in.
In case of yes RandomProduct is visible, in case of no RadmonProduct is not visible.

As far as I know, an "if .. then" question in a *.tpl is not possible.

Any hint is welcome.

thx

» Quick.Cart v4.x

boboo

Avatar: boboo

2011-03-01 15:23

put the if...then queries into default.php, where the random product is triggered.

http://it-service.kimla.de QC- & QCMS-plugins

kuzco

Avatar: kuzco

2011-03-08 11:46

Thanks, working fine.

In my container.tpl I have added also a Callback-Button and Weatherforecast.
Example:

<span>
<br></br>
<!--
<script type="text/javascript" language="javascript" src="http://www.donnerwetter.de/wetter/net/boxregio.mv?typ=1&plz=$config['donnerwetter_plz']&color_bg=& amp;color_hi=FFCC00&color_txt=&width=130"></script>
-->
$sWetter

<noscript>JavaScript ist deaktiviert - leider sehen Sie hier kein aktuelles Wetter. <a href="http://www.donnerwetter.de" target="_blank">www.Donnerwetter.de</a></noscript>
</span>

Any idea how to implement here also a yes/no visibility ?

thx again for the hint with default.php.

kuzco

Avatar: kuzco

2011-03-08 11:47

PLEASE IGNORE PREVIOUS MAIL !!!

-----------------------

Thanks, working fine.

In my container.tpl I have added also a Callback-Button and Weatherforecast.
Example:

<span>
<br></br>
<script type="text/javascript" language="javascript" src="http://www.donnerwetter.de/wetter/net/boxregio.mv?typ=1&plz=$config['donnerwetter_plz']&color_bg=& amp; amp;color_hi=FFCC00&color_txt=&width=130"></script>
<noscript>JavaScript ist deaktiviert - leider sehen Sie hier kein aktuelles Wetter. <a href="http://www.donnerwetter.de"; target="_blank">www.Donnerwetter.de</a></noscript>
</span>

Any idea how to implement here also a yes/no visibility ?

thx again for the hint with default.php.

Back to top
about us | contact