Sektionen
Benutzerspezifische Werkzeuge
Sie sind hier: Startseite Support Dokumentation docs Archetypes Schema Felder sortieren

Archetypes Schema Felder sortieren

Die Felder eines Archetypes schemas per moveField sortieren

mit der Methode moveField können Felder innerhalb eines Schemas verschoben werden.
z.B. kann wie folgt das Feld descriotion über das Feld titel geschoben werden:

MySchema.moveField('description',before='title')

Hier ein Auszug aus ISchema:

def moveField(name, direction=None, pos=None, after=None, before=None):
"""Move a field     
  name:
name of the field
     direction:
       Move a field inside its schemata to the left (-1)
or to the right (+1)
     pos:
       Moves a field to a position in the whole schema.
pos is either a number or 'top' or 'bottom'
     after:
       Moves the field 'name' after the field 'after'
     before:
       Moves the field 'name' before the field 'before'
        """