The urlForDataItem
function can be used with DataItem
instances.
Determines the URL of a data item's details page.
The urlForDataItem
function can be used with DataItem
instances.
The origin of the generated URL can be configured using Scrivito.configure
. If, for example, the origin is set to “https://example.com”, the URL resulting from the above call would be “https://example.com/my-page”.
Params
dataItem
(Object) – A DataItem
instance.Returns
String
– The URL of the details page of the model instance concerned, or null
if no such details page exists.