1
dconn6
calling a smarty function
  • 2008/5/5 12:25

  • dconn6

  • Just popping in

  • Posts: 3

  • Since: 2008/3/5 1


Hi, I need to call a smarty function and I am not sure on the syntax. For example, my function is called show_hide_blocks and I want to call it like this

Elementary

This syntax is wrong and I am not sure how to correct it. When my mouse is over the button it no longer behaves like a button. It is just text on the page. The smarty function is in /class/smarty/plugins but I haven't included it in the theme.html page where I am calling it from because I am assuming that plugin functions are always available and no need to include them. Adding an onclick to the above doesn't help in any way.

2
zyspec
Re: calling a smarty function
  • 2008/5/6 23:33

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


In XOOPS smarty functions are encapsulated by '<{' and '}>'. Therefore the code should look like:
<{show_hide_blocks}>>Elementary

Login

Who's Online

274 user(s) are online (234 user(s) are browsing Support Forums)


Members: 0


Guests: 274


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits