• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Change navigation group for page in XF

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Results 1 to 2 of 2

    Thread: Change navigation group for page in XF

    • Thread Tools
      • Show Printable Version
    1. April 21, 2021 #1
      unfairest
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      unfairest is offline
      Junior Member
      Join Date
      March 31, 2021
      Posts
      6
      Rep Power
      0

      Change navigation group for page in XF

      I want to display some pages under a different navigation group at the top of the page instead of "Wiki."

      I found this topic on the subject: https://xenforo.com/community/thread...3/post-1487809
      Should I do a conditional in the templates for this, or is there an easier way?

      Thanks!
      Last edited by unfairest; April 21, 2021 at 6:31 PM.
      Reply With Quote Reply With Quote

    2. April 22, 2021 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      This is a planned feature for VaultWiki 4.2.x which will not be out until later this year.

      In XF2, you cannot do this with template modifications. In the AdminCP, you would use Setup > Navigation > Public navigation to set up your custom navigation group. Then, you would have to do some sort of Class Extension, where you extend the class \vw\vw\Pub\Controller\Wiki\Wiki and its method vwSetCustomStyle. If you look at the existing method, you can see how it does this for styles. For navigation, you would test the wiki context similarly based on your own rules and do something like:
      Code:
      public function vwSetCustomStyle($ctrl = null)
      {
      	parent::vwSetCustomStyle($ctrl);
      	$this->setSectionContext($custom_nav_id);
      }
      Although it should still work, this approach will be moot in 4.2.x, where you can choose from your existing navigation groups from within the Edit view. The above approach is basically how we have it implemented in 4.2.x, although the changes are directly in the class without needing an extension.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. vBulletin 4.2.1 - navigation changes
      By ricktas in forum General Discussion
      Replies: 2
      Last Post: September 9, 2012, 9:14 PM
    2. Social group pages question - show more than just start page in social group?
      By Morrus in forum VaultWiki Questions
      Replies: 8
      Last Post: April 12, 2012, 12:30 PM
    3. Change the background picture on main index page
      By IchibanAccord in forum Pre-Sales Questions
      Replies: 3
      Last Post: December 7, 2011, 10:32 PM
    4. Navigation options
      By erintat in forum General Discussion
      Replies: 1
      Last Post: May 31, 2010, 9:13 AM
    5. Older version wiki, need to change vaultwiki links on special version page
      By Jella in forum VaultWiki Questions
      Replies: 2
      Last Post: May 23, 2010, 3:09 PM

    Tags for this Thread

    group, navigation, page

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 6:54 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.