neptuo / is4wfw

PHP based CMS with multi domain support, virtual file system, library for team-sport fixtures and statistics, and many other features.
http://is4wfw.neptuo.com
Apache License 2.0
1 stars 0 forks source link

Consider changing property name schema for list tags #305

Open maraf opened 3 years ago

maraf commented 3 years ago

When introduced Listing tag lib in #245, we used naming convention to access fields of list model item as {model}-{field}. Also, we found that it is confusing, or "not designed", to name properties on libraries, where not only list tag exists.

Good example is a new templated menu. We have web:menu and than web:menuItemDisplay, web:menuItemUrl etc.

What I'm suggesting is to change to web:menu with web:menu-display, web:menu-url etc.

Pros

Cons

List of changed tags and properties

Sub tasks

maraf commented 3 years ago

Lets leave it for now. Rethink it when property references will be a think. There is a problem properties in URL.