Custom Layout-alias
Currently, my antville copies the alias of the baselayout and appends an incrementing number (the new layout based on "test-layout" becomes "test-layout1" and so on).
Is it possible to set a custom layout-alias on creating a new layout based on another one or edit the alias of an already existing layout?
ichichich
Just download the layout. In the root of the resulting ZIP-archive you find the file "preferences.xml". In this file you can change the alias. Then re-upload the layout.
phoque
But sometimes antville generates corrupted ZIP-archives (duplicate skins in some directories). Besides that, antville won't link the new layout's skins to the old one if I upload the ZIP-archive as a new layout.
ichichich
Strange. I tested it for me and it worked fine.
(And of course there are no 'links' between the old and the new layout. The uploaded file is an all new layout and works for itself.)
phoque
But when I created a layout based on another one and then changed the base-layout, the new one changed too...
phoque
Gibt es da wirklich keine Lösung oder Möglichkeit?
Ich hab schonmal ein wenig im Sourcecode gewühlt (auch um den prefix-suffix-Bug zu fixen), bin aber noch nicht recht fündig geworden.
phoque
"antville/code/LayoutMgr/objectFunctions.js" Zeile 16 ersetzen gegen:
if (!param.alias)
newLayout.alias = buildAlias(newLayout.title, this);
else
newLayout.alias = buildAlias(param.alias, this);
und in den Skin LayoutMgr.new ein
<input name="alias"... />
hinzufügen. Wenn das Inputfeld nicht gesetzt ist (leer gelassen oder nicht vorhanden) wird der Alias des Basislayouts verwendet und angepasst, anderenfalls wird das benutzerdefinierte Alias genommen.