Extent Taxomony module

Topics: Customizing Orchard
Feb 7, 2012 at 6:32 AM

Hi,

I want list taxomony with content item. I want list each term and content items for perticular temitem

Eg,  I have News module, I want list Term and news belongs to that term together.

 

How can i do that?

Do i want extent taxonomy module?

 

lakmal

 

 

Feb 7, 2012 at 1:57 PM

I am trying to extent taxonomy module now. I am going to create New widget called  Taxanomy_TermContent

 

I have created following things inside taxonomy module

TaxonomyContentWidgetPartDriver.cs

TaxonomyContentWidgetPartHandler.cs

Model

TaxonomyContentWidgetPart.cs

TaxonomyContentWidgetPartRecord.cs

View/Part

Taxonomies.TermsContentWidget.cshtml

 

I can see my widget inwidget list and i can create widget.

 

But when i check with shape tracing my shape is  Parts_Taxonomies_TermsWidget, but it should be   Parts_Taxonomies_TermsContentWidget

 

I have debug code, I have found this location in  DifaultContentDsiplay.cs  method    BindPlacement

 

ShapeDescriptor descriptor;       

if (shapeTable.Descriptors.TryGetValue(partShapeType, out descriptor)) {

 

This condition always false for my shape(Parts_Taxonomies_TermsContentWidget). For other shape its return true

I have check shapetables values

[124] {[parts_taxonomies_termscontentwidget, Orchard.DisplayManagement.Descriptors.ShapeBinding]} System.Collections.Generic.KeyValuePair<string,Orchard.DisplayManagement.Descriptors.ShapeBinding>

My shape is there. But why its return false?

 

My placement file is

 

 <Place Parts_Taxonomies_TermsContentWidget="Content"/> 

<Place Parts_Taxonomies_TermsWidget="Content"/>

 

Where is the error

 

lakmal