Loading...
 
Features / Usability

Features / Usability


Replacing tiki menus with javascript navbars

posts: 37

Hi all,

I'm trying to develop a new page for a corporate site, hopefully to have the same look and feel. I'm using tiki because it takes care of some tricky bits like user registration and database storage.

Anyway, I'd like to duplicate the corporate sites navbar structure in my tiki web page, in the best case by including the link to the script somewhere, as in


document.write(+);


Where would I include this link? In some sort of plugin tool within the tiki web page? Or by editing tiki-index.php directly? Is there some documentation on this - I haven't been able to find any.

Thanks again,

JustKen

posts: 37
Sorry, the html code got filtered out. I was just giving an example of including javascript to implement the navbar. You probably don't need it.

posts: 37

Hi Rick,

Yes, thanks, I've been to those sections of the documentation. My question, though, was where do I actually include the code? I'm sorry that I need this to be spelled out for me.

JK.

posts: 3665 United States

You can include the plugin just about anywhere...

  • in a wiki page
  • in a module
  • etc.


It depends on what you're trying to accomplish.

If you're creating a different menu system that you want to display on all pages, you can create a module and assign it to the top or topbar area.

HTH,

- Rick | My Tiki Blog | My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.
posts: 37

Thanks, Rick!

I finally got it working. I created a custom module and posted my link to the javascript in the "data" box. Tiki said "be sure to preview before assigning". After giving up looking for a Preview button, I went ahead and assigned the module to the topbar. Then I was able to preview it and remove the stock menu bar.

It turned out to be a very simple procedure, once I'd finished exploring all the blind alleys.

JK


posts: 1630 Canada

I just updated JavaScript. If it doesn't answer all your questions, please follow-up here for clarification.

Best regards,

M ;-)


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting