i'm importing some content and i need to have control over the date folders. I have following code. I've looked at the source for autofolder and the date seems to be derived from CreateDateTIme. Here is the code that i'm using. My issue is that the date seems to always default to today date.
Basically, this is occurring because the CreateDateTime is the time that the new item is created, which would be today's date. You can't override this. What you need to do is to tell autofolders to use the value in a field (on Publish) rather than the CreateDateTime.
Autofolders, adding content programically
i'm importing some content and i need to have control over the date folders. I have following code. I've looked at the source for autofolder and the date seems to be derived from CreateDateTIme. Here is the code that i'm using. My issue is that the date seems to always default to today date.
Basically, this is occurring because the CreateDateTime is the time that the new item is created, which would be today's date. You can't override this. What you need to do is to tell autofolders to use the value in a field (on Publish) rather than the CreateDateTime.
Version 2.0 allows you to do what you are asking.
Great thanks Chad.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.