anarki icon indicating copy to clipboard operation
anarki copied to clipboard

Add tabs like 'show' or 'jobs'

Open tarvos21 opened this issue 3 years ago • 1 comments

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!

tarvos21 avatar Mar 15 '21 01:03 tarvos21

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

kennethrapp avatar Mar 15 '21 20:03 kennethrapp