Copied to clipboard

Flag this post as spam?

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


  • Alec Colebrook-Clark 134 posts 258 karma points
    Jun 25, 2009 @ 10:09
    Alec Colebrook-Clark
    0

    Datefolders

    Hi Again,

    Feels like all I do is sit here and ask questions!

    So heres the problem. I've tried implementing Tim's datefolder package and it works a charm for one document type. The problem is im trying to use it to archive news and events items, these are 2 different doctypes, and the package doesnt seem to like this. Is there away around it or will i have to write my own control?

    I'm open to other suggestions.

    thanks

    Alec

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 25, 2009 @ 11:46
    Jan Skovgaard
    1

    As far as I remember you are able to choose, which document types you want to use the datefolders on during installation of the package.

    But I think that part was a bit buggy and I had to try it a couple of times before I succeeded.

    Try and go to the config foldeder -> TG.Umb.Datefolder and open the Datefolder.config and see what is in here.

    It could look something like this:

    <?xml version="1.0"?>
    <DateFolder>
    <DocumentTypeAlias>Nyhed</DocumentTypeAlias>
    <DocumentTypeAlias>Artikel</DocumentTypeAlias>
    </DateFolder>

    The document types you want to auto-archive in datefolder should be listed in here. After you have done that it should be working.

    Hope this helps.

     

  • Alec Colebrook-Clark 134 posts 258 karma points
    Jun 25, 2009 @ 11:57
    Alec Colebrook-Clark
    0

    Thats what I thought, however when I attempt to insert multiple documenttypes into a datefolder (I'm still unsure wether or not they will both be put into just one, but thats workable) it just sits there and does nothing. I even tried to manually edit the XML but, alas, no avail.

    This is why I thinking I will have to create my own control.

    Ill get it another few goes, could just be the bugs.

  • Alec Colebrook-Clark 134 posts 258 karma points
    Jun 25, 2009 @ 12:51
    Alec Colebrook-Clark
    0

    It is possible to do it with Tim's datefolder. I had to install it twice and select the two doctypes I wanted on seperate occasions (i.e news on first install and events on second) but i got it to work.

    And for those wondering, it uses the same folders through two installs, you only have one set of folders for the date.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 25, 2009 @ 13:12
    Jan Skovgaard
    0

    Glad to hear you got it solved. No reason to invent the wheel twice :) - But as mentioned I also had some trouble getting it to work properly. I think I installed it 3-4 times before it was working as intended.

    But it was worth the trouble :)

  • Alec Colebrook-Clark 134 posts 258 karma points
    Jun 25, 2009 @ 13:15
    Alec Colebrook-Clark
    0

    im actually running two installations of it, I'm sure thats not possible without Umbraco throwing a fit but hey, its working!

    one installation for each doctype!

Please Sign in or register to post replies

Write your reply to:

Draft