Copied to clipboard

Flag this post as spam?

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


  • sperr0w 48 posts 81 karma points
    Dec 21, 2009 @ 15:06
    sperr0w
    0

    DateFolder pack Extending

    Hi! I think, is question for Tim Geyssens ....

    I find your project DateFolder. Can u give sources of this project? I dont know, what parameter uses this pack to delimit content by date?

    I need to chante it to use Publich date as parameter.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Dec 21, 2009 @ 15:33
    Dirk De Grave
    1

    sperr0w,

    Please do NOT double post! Have deleted your other post.

     

    An alternative solution is to use the AutoFolder project, which has similar (and extended) functionality.

    Cheers,

    /Dirk

  • sperr0w 48 posts 81 karma points
    Dec 22, 2009 @ 04:53
    sperr0w
    0

    Dirk, Sorry. I find right Forum category only when write first post.

    About AutoFolder: It is work not alll time. Now I change platform for existing site. So, I import all news to umbraco platform.

    I have this dest struct:

    NewsList

    ----NewsCategory

    ---------NewsItem

    I use

    d = umbraco.cms.businesslogic.web.Document.MakeNew

    to import news items and after all I make

    d.Save();
    d
    .Publish(new umbraco.BusinessLogic.User(0));
    umbraco
    .library.UpdateDocumentCache(d.Id);

    If I make it in debug mode in VisualStudio, all work.

    But When I make release and put it to work server and try to import news from old site, packet dont want to work. ( Date folders didnt created).

    Republich entire site also dont help me.

    may be I make some mistakes while import news? May be I forgot something?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Dec 22, 2009 @ 08:49
    Dirk De Grave
    0

    sperr0w,

    how's the AutoFolders configured: there's a config file for this project which you need to tweak a bit to meet your goals.

     

    Cheers,

    /Dirk

     

     

  • sperr0w 48 posts 81 karma points
    Dec 27, 2009 @ 21:49
    sperr0w
    0
    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
    <folderProviders>
    <folderProvider alias="DateFolderProvider_Simple"
    assembly="/bin/AutoFolders"
    type="AutoFolders.Providers.DateFolderProvider">
    <property alias="MonthFormat">MM</property>
    <property alias="YearFormat">yyyy</property>
    </folderProvider>

    <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">Date</property>
    </folderProvider>

    <folderProvider alias="AlphaFolder"
    assembly="/bin/AutoFolders"
    type="AutoFolders.Providers.AlphaFolderProvider" >
    <property alias="UseUppercase">true</property>
    </folderProvider>
    </folderProviders>

    <autoFolders>
    <autoFolder docType="Standard"
    folderProviderAlias="DateFolderProvider_Simple"
    folderDocType="DateFolder"
    />

    <autoFolder docType="ContentItem"
    folderProviderAlias="DateFolderProvider_Full"
    folderDocType="ContentCategory"
    />

    </autoFolders>

    </settings>

    here is it.

     

    Main problem is sometimes it is work but sometimes - not. (without any changes in config file). for example: it work on my local computer, but dont work on web server ( all the same) may be I need some additional rights for autofolders.dll?

  • sperr0w 48 posts 81 karma points
    Dec 27, 2009 @ 22:02
    sperr0w
    0

    may be some IIS preferences?

  • sperr0w 48 posts 81 karma points
    Dec 28, 2009 @ 06:37
    sperr0w
    0

    is it critical - version of ASP.NEt for autofolders?

  • sperr0w 48 posts 81 karma points
    Dec 28, 2009 @ 06:45
    sperr0w
    0

    yes? problem is in the version of ASP.NET. Somewhy author of Autofolders include using Linq in all project files. So, underASP.NET 2.0 pack cant work.

    Also on this site bin pack compilled in debug mode instead release

  • sperr0w 48 posts 81 karma points
    Dec 28, 2009 @ 07:47
    sperr0w
    0

    and still autofolders work not perfectly. After I publish news content again some contentItems become grouped bu Date with autofolders, but some items is stull not grouper. Republish didnt help.

Please Sign in or register to post replies

Write your reply to:

Draft