Category setup

Feb 8, 2011 at 7:05 PM

When gallery set up, we get modules and themes added to UI as tabs.

What if I need different configuration, for example plugins, widgets and themes? Does it have to be coded as new view/controller, configured somehow or requires changes on GalleryServer side?

Thanks!

Feb 8, 2011 at 7:48 PM

Answering my own question: modules and themes are package types and can be configured using Taxonomies in the dashboard.

Coordinator
Feb 8, 2011 at 8:45 PM

Glad you figured it out! Just to confirm, you are correct - the package types are defined using the Taxonomies module. The Orchard.Gallery module will create the PackageTypes taxonomy at the time the module is enabled. Then, the Module and Theme terms are created at the time the OrchardGallery theme is enabled. The GalleryServer doesn't know or care what package types you have defined in the gallery web site.

You can change the terms in the taxonomy however you want, as long as they exist in a taxonomy called "Package Types". Also, you can add child terms to the Package Type terms, and those will be treated as Categories.

Let me know if you have any other questions about how the taxonomy works.

Feb 11, 2011 at 6:54 PM

Kevin, can you explain me this one? I set up locally with very latest orchard/taxonomy/server/gallery/theme. I can publish package, see and edit it in "my submissions". So all these urls work fine:

http://localhost:30320/OrchardLocal/Contribute/MyPackages

http://localhost:30320/OrchardLocal/Packages/Themes/Details/elmah-1-1

http://localhost:30320/OrchardLocal/Package/Edit/elmah/1.1

But none of the search functions work, comes with 0 results always. And what confuses me even more, when I go to the feed itself (http://localhost/GalleryServer/FeedService.svc) I don't see that published "elmah" package in the XML.

Does it make any sense to you?

Coordinator
Feb 11, 2011 at 7:30 PM

When you try to view the feed, are you just going to GalleryServer/FeedService.svc or GalleryServer/FeedService.svc/Packages? You need to view the /Packages route to actually see the XML for the feed.

Assuming the packages are actually showing up in the feed, then they should be syncing into Orchard (the synchronizer runs once every minute). There is one manual step regarding indexing (I believe this is mentioned in the ReadMe). You need to go to the Content Types page on the dashboard, edit the Package content type, and check the "Index this content type for search" check box.

Let me know if you've done that and it still isn't working.

Feb 11, 2011 at 8:01 PM

Bingo - as soon as I added package type to indexing package showed up in the list. Thanks!