Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tabs like 'show' or 'jobs' #195

Open
tarvos21 opened this issue Mar 15, 2021 · 1 comment
Open

Add tabs like 'show' or 'jobs' #195

tarvos21 opened this issue Mar 15, 2021 · 1 comment

Comments

@tarvos21
Copy link

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!

@kennethrapp
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants