Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Aug 10, 2011 @ 15:46
    Bjarne Fyrstenborg
    0

    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

     

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Aug 10, 2011 @ 16:35
    Chriztian Steinmeier
    0

    Hi Bjarne,

    I think you can set the alias in the config:

    <property alias="DateField">eventDate</property>

    /Chriztian

  • Bjarne Fyrstenborg 1285 posts 4039 karma points MVP 8x c-trib
    Aug 10, 2011 @ 17:17
    Bjarne Fyrstenborg
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft