You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Title field will be used by default to view links in gridfields, for example in a report for broken or orphaned links. It is also used as the default field for displaying in other contexts.
If the user opts to not include an explicit title (such as is allowed by #20), there will be no title to distinguish what the link is.
Renaming the Title db field to something else, and renaming getDisplayTitle to getTitle will mean the default title will be displayed whenever users have opted not to include their own title.
Acceptance criteria
getDisplayTitle is renamed to getTitle
The "Display Title" is shown in the following place:
When a link is rendered in the front end.
When a link is displayed in the initial LinkField (Not the form)
Notes
In a future major release of framework, it might make sense to have a method on DataObject which gridfields and other contexts can call to get the title they should fall back on for displaying. This will mean it can be easily defined per model, without relying on specific db fields existing and having values.
GuySartorelli
changed the title
Consider using a different field name for Title and change getDisplayTitle to getTitle
Change getDisplayTitle to getTitleFeb 6, 2024
The
Title
field will be used by default to view links in gridfields, for example in a report for broken or orphaned links. It is also used as the default field for displaying in other contexts.If the user opts to not include an explicit title (such as is allowed by #20), there will be no title to distinguish what the link is.
Renaming the
Title
db field to something else, and renaminggetDisplayTitle
togetTitle
will mean the default title will be displayed whenever users have opted not to include their own title.Acceptance criteria
getDisplayTitle
is renamed togetTitle
Notes
DataObject
which gridfields and other contexts can call to get the title they should fall back on for displaying. This will mean it can be easily defined per model, without relying on specific db fields existing and having values.PR
The text was updated successfully, but these errors were encountered: