Is it possible to use another date, the eventDate, instead of the createDate.. if I create an event it will be sortet under August.. but I would like that it will be sortet under the month for the event date, e.g. September?
I have tried to use that, but I can't get it to work with creating auto folders. With the simple datefolder provider it works, but the more advanced I'm not sure how to it working.
Use another date than createDate
Hi..
I'm using Autofolders to create folders below news and event sections ..
E.g. I have Events > 2011 > August > Event
In my autofolders.config file I have:
<autoFolder docType="Event"
folderProviderAlias="DateFolderProvider_Simple"
folderDocType="DateFolder"
/>
Is it possible to use another date, the eventDate, instead of the createDate.. if I create an event it will be sortet under August.. but I would like that it will be sortet under the month for the event date, e.g. September?
Or do I afterwards have to move the event?
Bjarne
Hi Bjarne,
I think you can set the alias in the config:
/Chriztian
Hi Chriztian
I have tried to use that, but I can't get it to work with creating auto folders.
With the simple datefolder provider it works, but the more advanced I'm not sure how to it working.
I have this in the config:
<folderProvider alias="DateFolderProvider_Full"
assembly="/bin/AutoFolders"
type="AutoFolders.Providers.DateFolderProvider">
<property alias="DayFormat">dd</property>
<property alias="MonthFormat">MM</property>
<property alias="YearFormat">yyyy</property>
<property alias="DateField">eventStartDateTime</property>
</folderProvider>
and
<autoFolder docType="Event"
folderProviderAlias="DateFolderProvider_Full"
rootFolders="//node[@level=2]"
folderDocType="DateFolder"
truncatedFolderUrl="folder-1/folder-2/events"
/>
but it doesn't create any folders this way.
When I'm using the simple datefolder provider I get this and I have written the event dates (eventStartDateTime):
Bjarne
is working on a reply...