• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Move theme's navigation

Scheduled Pinned Locked Moved NodeBB Development
6 Posts 2 Posters 403 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Ray
    wrote on last edited by
    #1

    I need to put the navigation to the sidebar.I found the navigation code block is in node_modules/nodebb-theme-persona/templates/partials/menu.tpl and I want to move the navigation to sidebar .How could I do this or even if I have some sample截圖 2022-04-06 下午10.50.27.png

    julianJ 1 Reply Last reply
    0
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    replied to Ray on last edited by
    #2

    @田恩睿 Thanks for posting.

    If you search the Persona theme templates/ for menu.tpl, you'll see that it is IMPORTed into the header: https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/header.tpl#L35

    The easiest way to move this somewhere else would be to move that <!-- IMPORT line somewhere else.

    1 Reply Last reply
    1
  • R Offline
    R Offline
    Ray
    wrote on last edited by
    #3

    @julian said in Move theme's navigation:

    https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/header.tpl#L35

    Thanks for reply. But I pasted the menu.tpl import to the categories.tpl .But the navigtion could not show in the left-side bar. Did I need to set the categories in somewhere?

    https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/partials/menu.tpl#L229

    julianJ 1 Reply Last reply
    0
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    replied to Ray on last edited by
    #4

    @田恩睿 No, you cannot just move that partial to a different place and expect it to work, because the underlying data is not there.

    For the menu, it is contained within the header files, so you can only really move it within header.tpl.

    Is there a reason you want the menu only in categories.tpl? It would mean that other places would not have a menu at all.

    R 1 Reply Last reply
    0
  • R Offline
    R Offline
    Ray
    replied to julian on last edited by
    #5

    @julian got it.I need to move the menu to the left-side bar. Where could I find the underlying data.

    julianJ 1 Reply Last reply
    0
  • julianJ Online
    julianJ Online
    julian GNU/Linux
    replied to Ray on last edited by
    #6

    @田恩睿 It's probably better to keep the menu where it is, or at least in that file, but play around with the structure and CSS to have a left-side menu.

    Right now it is pinned to the top using .navbar-fixed-top

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development