In this screencast, I will demonstrate how to use the Taxonomies module in Orchard to create a simple news site.
Thanks for the video - very useful!
Is it possible to add the Taxonomy Widget such that it is visible "only" when viewing the Blog (i.e. it is not visible when viewing the Home Tab)?
@Martin: yes, for that you need to put the widget on a layer that is only shown when viewing the blog. This can be done with a simple url rule, something like 'url("~/blog/*")' if "blog" is the relative url of your blog.
Oh man, the timing of this video could not be better. Great stuff, Bertrand - thank you!
I was playing with this a bit, and was wondering if it possible to have the taxonomy info appear in the route when displaying a content item? Using your news example, instead of www.mysite.com/content-item-slug, I would like www.mysite.com/.../content-item-slug.
Is this possible?
@Adam, you would need to define your own Handler for TermPart so that it overrides the default item url in the metadata event. Also it would require a setting to select which field needs to be used as the route provider. It's not trivial ... And it's not something I will do, as there are features with higher priority than that.
A simple solution would be for you to define the exact route you want by hand, on the content item, something you can do with everything out of the box in Orchard right now.
Thanks for the reply Sebastien. That does sound pretty complicated. Defining the route by hand would work, but misspellings, renaming of vocab, etc. would wreck havoc on our URLs and site structure.
If my understanding is correct, the Taxonomies module is the recommended way of implementing categories/sections/etc. It seems like this type of URL scheme (category/subcategory/item) would be common in many separate scenarios (e-commerce, classified/auction site, newspaper sections/pages, etc.) I work for a newspaper publisher, and we have been trying to figure out if Orchard would work out of the box as a back-end for our sites. We can't really trust users to come up with a valid/logical url for each item on their own, but http://domain.com/story-slug is way to generic.
I've also read in various places that the Blog module will get a rewrite, and Routing will be getting a makeover as well. Is this accurate?
I will take a look at the current Blog implementation and will try to hack something up. Please let me know if there are any resources out there, other than the wiki, that could help me get started.
Thanks for your help and all of your hard work.
Well... I am thoroughly stuck. This is kind of a deal breaker for us, and I am unable to get my head around Orchard's method of routing, overriding default url's, etc. - so I shall be back when this feature is implemented. Is there somewhere that I can make a feature request that is track-able?
Please file a bug in orchardtaxonomies.codeplex.com
I follow the same steps , and every thing was fine , every post have section shown , but when click the Section Link on the right widget, [Sport for example ] no blog Post Shown , its empty , seems no connection between the widgets and the post , any help
@Omar: can you please ask on the discussions forum on CodePlex and specify version numbers of both Orchard and the Taxonomies module?
after i install [search] and [indexing] modules, every thing goes fine.
orchard ver is [1.2.41] , tamonomies module is [.9]
thanks for your reply.