How to add buttons to boxes?

  • Betroffene Version
    WoltLab Suite 3.0

    How can we add buttons to boxes, like on the WoltLab homepage?

    Adding class="button buttonPrimary" to a link in a box will show the button in the editor when viewing rich text but it will not show in the actual box after you click submit.

  • I did it the following way:

    Create a new box and set it as a template box. Insert the following code:

    Zitat

    <div class="formSubmit">
    <a href="{link controller='BoardList' application='wbb'}{/link}" class="button buttonPrimary">Forums</a>
    </div>

    This will bring you the BoardList of your WSC: Forum. You could link to something else like:

    Zitat

    <div class="formSubmit">
    <a href="https://google.com/" class="button buttonPrimary">Big search engine</a>
    </div>

Jetzt mitmachen!

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