dynamic/silverstripe-elemental-pull-quote

QUESTION Fields and template mapping

Opened this issue · 0 comments

I wonder if we'd consider rethinking the CMS fields and how we map to the template. For example, Title (ShowTitle) map to the person credited with the quote. Almost all of the other blocks have the Title map to an h2 element, where the ShowTitle value makes sense.

For master, we could add a Name field, and update the template to use the value for the name.

Migration-wise - we could add an onBeforeWrite() and if Name is blank, it would fill the value from Title.

For $JobTitle - what if the field label was instead Title and/or Company?

Then, we'd change the at in the template to ,

If we did the above, the template line {$Name}, $JobTitle would read George Constanza, Sales at Vandelay Industries