7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » FileDataObjectManager - question?
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | ||
| Author | Topic: | 3751 Views |
-
Re: FileDataObjectManager - question?

21 May 2009 at 2:34am
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?
-
Re: FileDataObjectManager - question?

21 May 2009 at 2:38am Last edited: 21 May 2009 2:44am
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.
-
Re: FileDataObjectManager - question?

21 May 2009 at 2:48am
Sweet. That is exactly what I needed. Can the displayed date be formatted?
-
Re: FileDataObjectManager - question?

21 May 2009 at 2:59am
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.
-
Re: FileDataObjectManager - question?

21 May 2009 at 3:04am
Brilliant. This is cool. Thanks UncleCheese.
| 3751 Views | ||
| Go to Top |

