bx:plugin

Mit dem Tag plugin kann man sicherstellen, daß Pluginseiten genauso aussehen wie normale Verwaltungsseiten.

plugin.css

<bx:plugin.css/>

Es werden die nötigen Styles in den Head geschrieben, die der Pluginseite ihr Aussehen geben. und zwar:

plugin:headline

<bx:plugin.headline name="{titel1}" sub="{titel2"/>

<bx:plugin.headline name="{titel1}" sub="{titel2}">
  Inhalt
</bx:plugin.headline>

Die Überschrift der Seite wird generiert.

name Text, der in der oberen Zeile stehen soll
sub Text, der darunter stehen soll
als offenes Tag Inhalt, der oben rechts angezeigt werden soll (z.B. Link oder Drop-Down)

plugin.toolarea

<bx:plugin.toolarea>
  <bx:plugin.toolblock id="{id}" title="{text}" icon="{pfad}">
    Inhalt
  </bx:plugin.toolblock>
  ... evtl. weiterer toolblock
</bx:plugin.toolarea>

id frei wählbare id für die Box, muß auf der Seite eindeutig sein
title Titel der Box
icon Pfad:/verwaltung/control/imgnav/bildname.gif
open beim Aufruf der Seite geöffnet

Beispiele

Containerfilter-Aufruf im Quelltext

<html>
  <head>
  <title><bx:pagedata.navname/></title>
  <bx:plugin.css/>
  </head>
  
  <body>
    <bx:plugin.headline name="Umfragetool" sub="Frage erstellen/bearbeiten">
      <a href="liste.htm">zurück zur Liste</a>
    </bx:plugin.headline>

    <bx:plugin.toolarea>
      <bx:plugin.toolblock id="tools" title="Tools" icon="/verwaltung/control/imgnav/tools.gif">
        <a href="umfragedetail.htm?umfrageid=<bx:pagedata.request name="umfrageid"/>">zurück zur Umfrage</a>        
        <a href="detail.htmumfrageid=<bx:pagedata.request name="umfrageid"/>">NEU</a>
      </bx:plugin.toolblock>
      <bx:plugin.toolblock id="info" title="Information" open icon="/verwaltung/control/imgnav/information.gif">
        Datum: <bx:tools.datum/><br>
        Zeit: <bx:tools.datum pattern="HH.mm 'Uhr' zzz"/>
      </bx:plugin.toolblock>
    </bx:plugin.toolarea>
    <div class="content">
      ...
    </div>
  </body>
</html>


Revision #4
Created 28 May 2026 09:30:43 by Batix
Updated 28 May 2026 14:53:38 by Batix