anarki
anarki copied to clipboard
Add tabs like 'show' or 'jobs'
Any way to add some more tabs on the navigation menu? Not very clear how to do it. Is there any examples or tutorials? Thanks!
You can create new pages through the admin panel now but you can't run any Arc code in them.
Best way to do it for now would probably be to add a toplink here in the longpage template:
(tag (span "id" "navmain")
(w/bars
(toplink "new" "newest" ,gl)
(toplink "comments" "newcomments" ,gl)
(toplink "ask" "ask" ,gl)
(link "submit")))
and then a newsop to handle the url (ex: this would handle /newest)
(newsop newest () (newestpage user))
unfortunately there's no smooth workflow for this or documentation but I'll put it on the todo list