$Attachment.Created will work, too.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
DataObjectManager Module /
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
FileDataObjectManager - question?
- Previous 10 entries
- 1
- 2
- 3
- Page 44(current)
To display the Date, I had to add it in. For Created, do you need to have the extra date field or will it be automatically displayed if you have the $Attachment.Created variable for display?
For every resource I add, there appears to be a blank line above the record display on the front end page.
Any idea why?
Update: I had the Layout div repeated inside another Layout div. All sorted.
Sweet. That is exactly what I needed. Can the displayed date be formatted?
No, the Created property is built into every object.
<% control Attachement %>$Created.Nice<% end_control %>
<% control Attachement %>$Created.Format(m-d-y)<% end_control %>
etc...
More in the SS docs on date formatting.
Brilliant. This is cool. Thanks UncleCheese.
- Previous 10 entries
- 1
- 2
- 3
- Page 44(current)