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 ).
So just import and install the package, last step of the installation will be this screen:
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
Final step would be to sort the content by name
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).
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 )
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.
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
@Warren, you’re right, I should take the time to add these to the repo.
Cheers,
Tim
Tim -
Nice! Great work and I’ll put this to use straight-away.
Thanks,
-Paul
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
@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
Hi,
What about url ?
Will url stay to original ‘dog’ or changed to ‘d/dog’ ?
Petr
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)
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
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)
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.
Hi Soeren,
Nope, you can only specify the documenttype at this point.
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!
p.s. in the db the new nodes do appear in umbracoNode, and in cmsDocument with published 0
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…
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
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
-
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
Good article, keep up the quality work.
Verу energеtic blog, I liked that a lot.
Will theгe be a part 2?
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)
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é.
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