• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Change sectionMain to primaryContent

    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.

    Issue: Change sectionMain to primaryContent

    • Issue Tools
      • View Changes
    1. issueid=3746 May 23, 2014 1:44 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Change sectionMain to primaryContent

      A comment from Russ from www.PixelExit.com :

      Regarding vw-block...

      .vw-block {
      @property "sectionMain";

      Maybe my own opinion but sectionMain isn't used to style individual multiple blocks on the single page. sectionMain is typically used as a wrapper for all the content.

      I'd suggest he maybe change it to calling primaryContent as opposed to sectionMain.
    Issue Details
    Issue Number 3746
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Styling / CSS
    Status Not a Bug
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.0 Gamma 5
    Fixed Version (none)
    Milestone VaultWiki 4 Gamma X
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. May 25, 2014 3:13 AM
      pegasus pegasus is offline
      VaultWiki Team
      primaryContent does not have a border in default XenForo. VaultWiki used to use a style similar to primaryContent for the blocks you are referring to, but many users complained that it didn't look like it was part of XenForo without the borders provided by sectionMain.

      So sectionMain was chosen because it has the closest default CSS to that intended for VaultWiki blocks, and is pretty semantic with how it is used in XenForo:
      According to XenForo's description of sectionMain, it is simply "A specially emphasized version of 'Section'." And Section: "Wraps around most content."
      Now Section on its own is used quite generously throughout single pages, so the "most" does not necessarily refer to containing a bunch of content in one container, just that most content appears as a descendant of any Section container.
      Furthermore this definition does not designate that sectionMain MUST be used to contain all content in one element, but just suggests that the class is used to "emphasize" certain otherwise-Section containers.

      Now in general, yes, it is true that most pages only contain one SectionMain element. However, the definition of SectionMain does not explicitly dictate that.

      Now there are actually no suitable replacements for how sectionMain is used in VaultWiki. If we were to change it (again), it would be back to a custom class that is a clone of sectionMain, which would be another thing to look out for when styling, and would be another way that VaultWiki DOESN'T integrate with XenForo automatically.

      VaultWiki should work fine with the default style of XenForo and many custom styles, if they follow existing naming conventions (like not reversing the meaning of "light" and "dark"), and don't impose restrictions on classes that don't have them by default. However, if you are using a custom style that DOES do this, then it's a simple task to modify the vw.css in that style to work around the conflict, or to use an additional.css -like template to achieve if you don't like modifying the main .css templates (I would recommend the alt template option). Most wiki elements have added class identifiers, like the current example ".vw-block", which can be used as a selector to help resolve conflicts.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 10:43 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.