Closed zonky2 closed 7 years ago
Sounds reansonable, yet we should default it to id-
to stay "compatible" with Contao
e.g. from xtra
$strAlias = standardize(strip_tags($replaceEvent->getBuffer()));
if ('' !== $this->get('prefix')) {
$strAlias = $this->get('prefix') . substr($strAlias, 3);
}
Remember to check for existence of 'id-' first!
implemented in https://github.com/MetaModels/attribute_alias/pull/19
add static field at first to use as fixed "prefix" e.g. wie work with integer values like year or id...
in this time the alias add "id" if we use year 2017 to "id-2017-...." - after this we can use "year-2017-...."