Dashboard Boxes: Limit box to certain pages

  • App
    WoltLab Suite Core

    Currently it is not possible to limit a dashboard box to certain pages.

    If you happen to implement a box that only makes sense on certain pages, e.g. because it displays additional information (e.g. the "More Files" box in the Plugin-Store) you have to hard-code the box into the template, but that completely destroys a users ability to sort those boxes.

    There, I propose to add the ability to limit dashboard boxes to certain pages. It could look like this in the dashboardBox.xml:

    XML
    <dashboardbox name="com.hg-202.news.relatedNews">
                <classname><![CDATA[news\system\dashboard\box\RelatedNewsDashboardBox]]></classname>
                <boxtype>sidebar</boxtype>
                <scope>com.hg-202.news.ArticlePage</scope>
     </dashboardbox>

    Where the item inside <scope> ... </scope> has to be a proper com.woltlab.wcf.user.dashboardContainer object type. Additionally, wildcards (*) should be allowed, e.g. <scope>com.hg-202.news.*</scope>.

    "A life is like a garden. Perfect moments can be had, but not preserved, except in memory. LLAP" — Leonard Nimoy

    Einmal editiert, zuletzt von Netzwerg (7. Dezember 2014 um 14:32)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!