1
cRuNcHiE
How can i make a block with links+sublinks, ive had a go but sublinks always show
  • 2004/1/27 0:03

  • cRuNcHiE

  • Just popping in

  • Posts: 18

  • Since: 2004/1/12


What id like to do is have a custom block that links to some html pages that i have wrapped with xoops.

Id like to make a menu system that has for example, just a link called Index

When people click that link id like it to expand in the block and show sublinks like this

Index
-Page1
-Page2
-Page3

etc etc


ive had a go by using the following code, but the sublinks are always shown in the block, i only want them to appear when the index link is clicked so that it doesnt clutter the page with links.

heres the code i tried






with that it displays the following all the time.

+Tutor Web
+Main Index
+page1
+page2
+page3


whereas id like it to initially only show
+Tutor Web
+Main Index

and not show the page1,page2 etc till Main Index is clicked. any ideas ?

cheers

cRuNcHiE



2
Mithrandir
Re: How can i make a block with links+sublinks, ive had a go but sublinks always show

You need to put in some kind of logic saying that it should only show the sublinks when you are on the Main Index page

some kind of
<{if $SCRIPT_NAME == $X_SITEURL."/main.php}>
     <{/if}>

3
cRuNcHiE
Re: How can i make a block with links+sublinks, ive had a go but sublinks always show
  • 2004/1/27 11:19

  • cRuNcHiE

  • Just popping in

  • Posts: 18

  • Since: 2004/1/12


cheers, tried this, but it just seems to show the sublinks no matter what still.







Any other ideas on what im doing wrong?

cheers

4
svaha
Re: How can i make a block with links+sublinks, ive had a go but sublinks always show
  • 2004/1/27 12:02

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Maybe this is something for you (It's from Jackj)
Submenu guru?
Aloha

5
cRuNcHiE
Re: How can i make a block with links+sublinks, ive had a go but sublinks always show
  • 2004/1/27 13:28

  • cRuNcHiE

  • Just popping in

  • Posts: 18

  • Since: 2004/1/12


I think that only works for modules? I guess i have to figure out a way to turn my set of wrapped html pages into a module?

Login

Who's Online

882 user(s) are online (81 user(s) are browsing Support Forums)


Members: 0


Guests: 882


more...

Donat-O-Meter

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

Latest GitHub Commits