Znote / ZnoteAAC

Developement repository for the Znote AAC project. A website portal to represent and manage your Open Tibia server.
MIT License
146 stars 127 forks source link

Proper way of adding new menu item #22

Closed TheMegafuji closed 10 years ago

TheMegafuji commented 10 years ago

I was wondering what is the best and right way to add a new menu in ZnoteAAC, lets say VIP or whatever, which files should I look at?

Znote commented 10 years ago

In Znote AAC you got a file called "blank.php"

If you visit YourWebSite.com/blank.php you can access that file. Same goes with any other file in that directory, example highscores.php or houses.php

How to add this to the website depends on which layout you use on the default layout simply edit /layout/menu.php And you simply make a new link with a name to YourWebsite.com, replacing "YourWebSite" with your actually website.

Bit drunk atm but hope this solves your question? Basically, anyting layout/template/design related stuff happens somewhere inside the layout folder.