Nibble

New Package - Alphabet Folder

After the Date Folder package comes the Alphabet Folder package(couldn’t think of a better name).

Just a handy little actionhandler wich will automaticly place your content (of defined documenttypes) in Alphabet Folders (a bit like you have in the member section). This comes in handy when you have loads of childnodes.

Say that you have this:

A Parent document ( TempFolder documenttype ) with loads of child documents ( TempDoc documenttype ).

image

 

So just import and install the package, last step of the installation will be this screen:

image

It will display all documenttypes you have in your umbraco site. You can choose 1 or multiple, and you can choose to move the existing content over to alphabet folders.

So when I do this with my example( select TempDoc and Move existing content) I will have this situation after it is installed

image

 

Final step would be to sort the content by name

image

So when I create a new TempDoc it will be automaticly placed in an Alphabet Folder ( if the folder of that letter doesn’t exist it will create one).

image

Alphabet Folder: download

This package installs:

- /bin/Nibble.AlphabetFolder.dll (assembly)
- /config/Nibble.AlphabetFolder/AlphabetFolder.config ( config file containing documenttypes which will be placed in alphabetfolders )
- /usercontrols/AlphabetFolderInstall.ascx ( usercontrol that is displayed during install )

23 Comments so far

  1. Petr Snobelt on June 13th, 2008

    Hi,
    It will be great if umbraco uses this for members, now it automatically generate all directories, which is in most cases empty. Creating dirs only when needed is much better. Try to send this improvement to core team.

  2. Warren Buckley on June 13th, 2008

    Hi Tim,
    Yet AGAIN you amaze me with the packages you keep creating - great work.

    I think the next step is to make sure all packages you have created are in the repository so everyone can find them easily.

    //Warren

  3. Tim Geyssens on June 13th, 2008

    @Warren, you’re right, I should take the time to add these to the repo.

    Cheers,
    Tim

  4. Paul on June 13th, 2008

    Tim -

    Nice! Great work and I’ll put this to use straight-away.

    Thanks,
    -Paul

  5. Dirk on June 16th, 2008

    Hi Tim,

    Just had some extra ideas for this great package I might throw in here:

    - Delete parent folder if all child nodes have been deleted
    - New doc types created after AlphabetFolder would not be listed in config. You’ll need to make modifs to the config directly?

    Greetz,
    /Dirk

  6. Tim Geyssens on June 16th, 2008

    @Dirk, thanks for the ideas. Indeed of you want to change the doc types after install you would need to manually alter the config file.

    Great idea to include a alter usercontrol in the next version.

    Cheers,
    Tim

  7. Petr Snobelt on July 9th, 2008

    Hi,
    What about url ?
    Will url stay to original ‘dog’ or changed to ‘d/dog’ ?

    Petr

  8. Tim Geyssens on July 9th, 2008

    Hi Petr,

    Url will change to d/dog, but you can use umbracoUrlAlias to still have the ‘dog’ url. (http://www.mortenbock.dk/codegarden-08-hidden-gems-84.htm)

  9. Petr Snobelt on July 10th, 2008

    Hi Tim,
    I know about this gem, but is there any chance do not change url’s of original posts ? Something likes creating virtual folders only – without url.
    I thinking about similar solution sorted by data (for news) - something like new version of outlook doe’s (Today, yesterday, last week etc.). I know I can use Date Folder, but from SEO point is better to have http://www.example.com/news/news1.aspx rather then http://www.example.com/news/2008/07/10/news1.aspx
    What do you think? Is something like virtual folders possible?
    Thank you

  10. Petr Snobelt on July 10th, 2008

    When I add comment to your site submit button and textbox for text stay disabled after comment is added, you can improve this. (But appear effect is really fine)

  11. Soeren Sprogoe on July 11th, 2008

    Can I specify a parent folder, for which DateFolder/AlphaFolder should work under?

    Fx. I only want it to work under nodes in /news on my site, and nowhere else.

  12. Tim Geyssens on July 11th, 2008

    Hi Soeren,

    Nope, you can only specify the documenttype at this point.

  13. bfi on February 11th, 2010

    Hi,

    I’m using this package and everything was working fine until recently. There are about 20K nodes and now new nodes don’t get published anymore. I tried to create a new node manually and from a user control (Document.MakeNew etc) and it just gives a server error. It’s a live environment and logging is off, so I don’t know where to start looking for the problem. Can this be caused by the Alphabetfolder package?

    Thank you!

  14. bfi on February 11th, 2010

    p.s. in the db the new nodes do appear in umbracoNode, and in cmsDocument with published 0

  15. bfi on February 11th, 2010

    I know the error now, but for some reason I cannot seem to be able to add a comment here with it :) After Submit Comment nothing happens…

  16. bfi on February 11th, 2010

    part of the error:

    Error loading actionhandler ‘Nibble.AlphabetFolder’: umbraco.DataLayer.SqlHelperException: Umbraco Exception (DataLayer): SQL helper exception in ExecuteReader —> System.Threading.ThreadAbortException: Thread was being aborted. at

  17. Sean on July 20th, 2010

    Just installed this and it worked ok. however, i cannot see what has changed but the url that is created for the items within each alphabet folder have the letter name (/service-directory/a/ace.aspx) and that url fails. At first the letter was not included. Any idea what i can look at to correct this?

    thanks
    Sean
    -

  18. Nigel Wilson on November 10th, 2010

    Hey Tim

    Just a query.

    I have a photographic site that has members and member image galleries. When a member registers within the site I was wanting a gallery node be created. This is easy per se, but if I install this package and configure an image gallery document type to be an “alphabet folder” would the action handler be triggered when creating and saving a node via a user control ? I assume so.
    Look forward to your reply.
    Thanks
    Nigel

  19. Scott on November 25th, 2011

    Good article, keep up the quality work.

  20. automatic usb backup key on August 17th, 2012

    Verу energеtic blog, I liked that a lot.

    Will theгe be a part 2?

  21. Eduardo on May 2nd, 2014

    Wow that was unusual. I just wrote an really long comment but after I clicked submit
    my comment didn’t appear. Grrrr… well I’m not writing all that over again.

    Anyway, just wanted to say wonderful blog!

    Look at my page … Gt Racing 2 Hack Download (Eduardo)

  22. impression de banderole on December 21st, 2019

    la société franprint. fr est la principale référence en matière d’impression numérique.
    Vous pouvez ainsi avoir confiance à ces techniciens pour vous approvisionner en supports de qualité.

  23. garde meuble vevey on January 6th, 2020

    Besoin de place ? garde-meuble-sion met à disposition nombreux box individualisés en toute confiance pour la maison ou les agences.

    une estimation du prix gratuit est à votre disposition dans le site

Leave a Reply