1
zzzzsg
Smarty Template in Custom Block for Collapsible Menu
  • 2006/2/17 0:13

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


Hi Everybody

I am trying to have collapsible menu items in my custom blocks - like those in XOOPS Main Menu and other system blocks where clicking on a module item will cause it to collapse into its submodule items. For example, clicking on News will cause Submit News and Archives to appear.

However, in my custom blocks are links to XOOPS Content module pages and not modules. For example, I have a custom block called Office and there are 3 links in it, namely, Admin, Finance and IT. When user clicks on Admin, the Admin sublinks (Vacation Leave, Sick Leave) will apear below Admin in the custom block, and the Admin main page will also appear in XOOPS center column - just like clicking on News in the XOOPS Main Menu block.

I tried to use Smarty in the Options of my Custom block but it didn't work.I also tried Javascript but it does not work for internal links - the collapsed menu closes once the href link is followed through.

Can anybody help?

Thank you very much in anticipation.

Gui

okay, I've found a way - smarty & javascript do not work. have to use php.

2
davidl2
Re: Smarty Template in Custom Block for Collapsible Menu
  • 2006/2/17 0:26

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Duplicate post removed.

Login

Who's Online

320 user(s) are online (223 user(s) are browsing Support Forums)


Members: 0


Guests: 320


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