Sitefinity 4.0 Taxonomy Categorization

Posted by Community Admin on 05-Aug-2018 04:18

Sitefinity 4.0 Taxonomy Categorization

All Replies

Posted by Community Admin on 13-Dec-2010 00:00

Hi all,

I am wondering if anyone here has had any experience with the TaxonomyManager in sitefinity 4.0.

I have a requirement to be able to get "all" content, images, blogs, generic content etc that are associated with a particular category, Also, I am trying to understand the correct way to iterate (in a recursive way) the HierarchicalTaxon items that make up the Categories in Sitefinity 4.0.

Any example code on that would be great :)

Kind Regards

Haydn



Posted by Community Admin on 13-Dec-2010 00:00

Hi Haydn,

Below is  sample code that illustrates how to get all items associated with a given taxon

private TaxonomyPropertyDescriptor GetPropertyDescriptor(Type itemType, ITaxon taxon)
   
       return TaxonomyManager.GetPropertyDescriptor(itemType, taxon);
   
 
   private IEnumerable GetItems(ITaxon taxon, ContentDataProviderBase contentProvider, Type itemType)
   
       TaxonomyPropertyDescriptor prop = GetPropertyDescriptor(itemType, taxon);
       int? totalCount = 0;
       var items = contentProvider.GetItemsByTaxon(taxon.Id, prop.MetaField.IsSingleTaxon, prop.Name, itemType, string.Empty, string.Empty, 0, 100, ref totalCount);
       return items;
   
 
   void Button1_Click(object sender, EventArgs e)
   
        var taxonomyManager = TaxonomyManager.GetManager();
        var taxonGuidId = new Guid("e75879c5-7b60-4945-b853-d738df2d7229");
        ITaxon taxon = taxonomyManager.GetTaxon(taxonGuidId);
        string itemTypeName = "Telerik.Sitefinity.GenericContent.Model.ContentItem";
        Type itemType = TypeResolutionService.ResolveType(itemTypeName);
        var manager = ManagerBase.GetMappedManager(itemType, "");
        
        ContentDataProviderBase contentProvider = manager.Provider as ContentDataProviderBase;
        GetItems(taxon, contentProvider, itemType); 
    


Greetings,
Ivan Dimitrov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.

Posted by Community Admin on 14-Dec-2010 00:00

Hi Ivan,

Thanks again :) Such quick responses and helpful code as always.

Many Thanks

Haydn

Posted by Community Admin on 17-Jan-2011 00:00

Hi,

This worked for me to get a list of news items with the tag "one" that were live:

private TaxonomyPropertyDescriptor GetPropertyDescriptor(Type itemType, ITaxon taxon)
 
     return TaxonomyManager.GetPropertyDescriptor(itemType, taxon);
 
 
 private IEnumerable GetItems(ITaxon taxon, ContentDataProviderBase contentProvider, Type itemType)
 
     TaxonomyPropertyDescriptor prop = GetPropertyDescriptor(itemType, taxon);
     int? totalCount = 0;
     var items = contentProvider.GetItemsByTaxon(taxon.Id, prop.MetaField.IsSingleTaxon, prop.Name, itemType, string.Empty, string.Empty, 0, 100, ref totalCount);
     return items;
 
 
 public void Button1_Click(object sender, EventArgs e)
 
     List<NewsItem> niL = new List<NewsItem>();
     TaxonomyManager taxManager = TaxonomyManager.GetManager();
 
     //Get the tag called "One"
     var taxon = taxManager.GetTaxa<FlatTaxon>().Where(t => t.Name == "One").Single();
 
     //I want the news items
     string itemTypeName = "Telerik.Sitefinity.News.Model.NewsItem";
     Type itemType = TypeResolutionService.ResolveType(itemTypeName);
     var manager = ManagerBase.GetMappedManager(itemType, "");
     ContentDataProviderBase contentProvider = manager.Provider as ContentDataProviderBase;
      
     var v = GetItems(taxon, contentProvider, itemType);
     //Load into strongly typed list
     foreach (NewsItem n in v)
     
         niL.Add(n);
     
     Response.Write(niL.Where(a => a.Status == ContentLifecycleStatus.Live).First());
 

Joseph Anderson
President, JMA Web Technologies
http://www.jmawebtechnologies.com

Posted by Community Admin on 07-Mar-2011 00:00

Excellent.  This is exactly what I need.  Thanks!

Posted by Community Admin on 14-Mar-2011 00:00

I am trying to use this code in a custom widget, but not able to compile. I think I am missing a reference or using statement because I get two errors. First is the "GetItems" method on IEnumerable, "Using generic type 'System.Collection.Generic.IEnumerable<T>' requires 1 tpye arguments". And the second error is with TypeResolutionService, VS doesn't recognize that.

Posted by Community Admin on 15-Mar-2011 00:00

Hello ,

TypeResolutionService is part of Telerik.Sitefinity.Utilities.TypeConverters.  IEnumerable interface is part of System.Collections.

msdn.microsoft.com/.../system.collections.ienumerable.aspx

Best wishes,
Ivan Dimitrov
the Telerik team

Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!

Posted by Community Admin on 10-May-2011 00:00

Using your examples, I am trying to get event items associated with category and bind to a radtreeview.

 



protected
void RadTreeView_NodeDataBound(object o, RadTreeNodeEventArgs e)

 

 

 

 

TaxonomyManager taxManager = TaxonomyManager.GetManager();

 

 

//Get the category called "events"

var taxon = taxManager.GetTaxonomies<HierarchicalTaxonomy>().Where(t => t.Name == "events"

).SingleOrDefault();

 

 

string itemTypeName = "Telerik.Sitefinity.Events.Model.Event";

 

 

 

Type itemType = TypeResolutionService.ResolveType(itemTypeName);

 

 

 

var manager = ManagerBase.GetMappedManager(itemType, "");

 

EventsDataProvider eventProvider = manager.Provider as EventsDataProvider;

 

 

var v = GetItems(taxon, eventProvider, itemType);

 

 

//Load into radtree
foreach (Event t in v)

 

var radTreeNode = new RadTreeNode

(t.Title) NavigateUrl = t.UrlName ;

RadTreeView.Nodes.Add(radTreeNode);

 

 

 

 

 

 

 

private TaxonomyPropertyDescriptor GetPropertyDescriptor(Type itemType, ITaxon taxon)

 

 

 

 

return TaxonomyManager

.GetPropertyDescriptor(itemType, taxon);

 

 

private IEnumerable GetItems(ITaxon taxon, EventsDataProvider eventProvider, Type

itemType)

 

 

TaxonomyPropertyDescriptor prop = GetPropertyDescriptor(itemType, taxon);

 

int? totalCount = 0;

var items = eventProvider.GetItemsByTaxon(taxon.Id, prop.MetaField.IsSingleTaxon, prop.Name, itemType, string.Empty, string.Empty, 0, 100, ref

totalCount);

 

 

 

return items;

 

 

 

 

 

 

 



What am I doing wrong.
Error :Getitems is overloaded

 

 

Posted by Community Admin on 12-May-2011 00:00

Hello nana,

Could you send the stack of the error and entire error message.

Greetings,
Ivan Dimitrov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Posted by Community Admin on 12-May-2011 00:00

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1502: The best overloaded method match for 'TBprogramsMaster.GetItems(Telerik.Sitefinity.Taxonomies.Model.ITaxon, Telerik.Sitefinity.Modules.Events.EventsDataProvider, System.Type)' has some invalid arguments

Source Error:

 
Line 86:  
Line 87: 
Line 88: var v = GetItems(taxon, eventProvider, itemType); Line 89: //Load into strongly typed list Line 90: foreach (Event t in v)

            

Source File: d:\inetpub\FD_CMS\ODSTB\App_Data\Sitefinity\WebsiteTemplates\ODSTB_Templates\App_Master\TBprogramsMaster.Master.cs Line: 88

Show Detailed Compiler Output:

C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\75f9cd72\8c531ae4_b5bccb01\ActiveUp.Net.Smtp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\db2e59e5\b6c82fe4_b5bccb01\Telerik.Sitefinity.Analytics.Server.DependencyResolution.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\bd8c5dce\5c662de4_b5bccb01\Telerik.OpenAccess.MySql.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\ef6f18cc\0039c83c_fe55cb01\Telerik.Cms.Web.UI.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\2e52ea26\b6c82fe4_b5bccb01\Telerik.Sitefinity.Analytics.Server.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\541f2676\0039c83c_fe55cb01\Telerik.Cms.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\b92783cb\8c531ae4_b5bccb01\ActiveUp.Net.Dns.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\756673d7\5c662de4_b5bccb01\Telerik.OpenAccess.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\65998149\a8a128e4_b5bccb01\Facebook.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\93291157\64155de4_b5bccb01\Twitterizer2.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\3af00158\a8a128e4_b5bccb01\Interop.DexterLib.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\53990ac2\e6b51ce4_b5bccb01\DirectShowLib-2005.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\577f895b\0039c83c_fe55cb01\Telerik.Cms.Engine.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\96a9be12\a8a128e4_b5bccb01\Facebook.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\2157a5fd\a8a128e4_b5bccb01\Microsoft.Practices.ServiceLocation.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\319d629c\c2afbe5e_99e8cb01\SitefinityWebApp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\db521ac3\0039c83c_fe55cb01\Telerik.Security.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\b6ecacef\02042be4_b5bccb01\Telerik.OpenAccess.Adonet2.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\bc4ccf69\0039c83c_fe55cb01\Telerik.Framework.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\794b6790\8c531ae4_b5bccb01\ActiveUp.Net.Common.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\9415bd40\00773745_c556cb01\Nolics.Engine.v4.2.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\3c31c85e\40181fe4_b5bccb01\DocumentFormat.OpenXml.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\f51e900a\5c662de4_b5bccb01\Telerik.OpenAccess.Runtime.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\7bf0a340\00c9360f_da28c901\Interop.ISYS.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\4a6ba300\e6b51ce4_b5bccb01\AjaxControlToolkit.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\cc6d6056\0039c83c_fe55cb01\Telerik.Personalization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\ceab6a35\0039c83c_fe55cb01\Telerik.Versioning.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\7be2693a\0039c83c_fe55cb01\Telerik.Cms.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\c3f8d552\0039c83c_fe55cb01\Telerik.Lists.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\a4d7a097\0059a6a4_11b4cb01\Telerik.Sitefinity.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\aaa18582\02042be4_b5bccb01\System.Windows.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\217a30b1\0039c83c_fe55cb01\Telerik.DataAccess.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\d27bf56d\02042be4_b5bccb01\Telerik.OpenAccess.Config.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\93e7ab39\78b43be4_b5bccb01\Telerik.Sitefinity.Resources.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\1250f89b\a8a128e4_b5bccb01\MySql.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\2c7d1ca9\b6c82fe4_b5bccb01\Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Telerik.Web.Design\v4.0_2010.3.1109.40__121fae78165ba3d4\Telerik.Web.Design.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\6f3c217d\b6c82fe4_b5bccb01\Telerik.Sitefinity.Analytics.Server.Infrastructure.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\75488a21\00b9807e_11b4cb01\Telerik.Sitefinity.Utilities.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\6cbb1f6f\a8a128e4_b5bccb01\Newtonsoft.Json.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\5fe7f985\0039c83c_fe55cb01\Telerik.Rss.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\a0733b9a\0039c83c_fe55cb01\Telerik.FileManager.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\App_Code.s3gdho_s.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\10fccfd7\1e5239e4_b5bccb01\Telerik.Sitefinity.Model.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\f952817e\0039c83c_fe55cb01\Telerik.Localization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\42fb8582\0ab35ae4_b5bccb01\Telerik.Windows.RadUploadHandler.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\4ff8c31c\0039c83c_fe55cb01\Telerik.Cms.Engine.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\d436b680\0039c83c_fe55cb01\Telerik.Workflow.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\3660743b\00ae1563_11b4cb01\Telerik.Web.UI.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData.Design\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.Design.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\0aa4dac7\02042be4_b5bccb01\Telerik.OpenAccess.35.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\assembly\dl3\2683f65d\5c662de4_b5bccb01\Telerik.OpenAccess.Web.dll" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\App_Web_tbprogramsmaster.master.bcedfa94.ra0ltk7a.dll" /debug- /optimize+ /win32res:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\ayipcffl.res" /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\App_Web_tbprogramsmaster.master.bcedfa94.ra0ltk7a.0.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\App_Web_tbprogramsmaster.master.bcedfa94.ra0ltk7a.1.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\0f5f712b\adab2fed\App_Web_tbprogramsmaster.master.bcedfa94.ra0ltk7a.2.cs"


Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.

d:\inetpub\FD_CMS\ODSTB\App_Data\Sitefinity\WebsiteTemplates\ODSTB_Templates\App_Master\TBprogramsMaster.Master.cs(88,14): error CS1502: The best overloaded method match for 'TBprogramsMaster.GetItems(Telerik.Sitefinity.Taxonomies.Model.ITaxon, Telerik.Sitefinity.Modules.Events.EventsDataProvider, System.Type)' has some invalid arguments
d:\inetpub\FD_CMS\ODSTB\App_Data\Sitefinity\WebsiteTemplates\ODSTB_Templates\App_Master\TBprogramsMaster.Master.cs(88,23): error CS1503: Argument 1: cannot convert from 'Telerik.Sitefinity.Taxonomies.Model.HierarchicalTaxonomy' to 'Telerik.Sitefinity.Taxonomies.Model.ITaxon'


Posted by Community Admin on 12-May-2011 00:00

Hello nana,

The error says that you are passing not proper parameters to the custom method. Please check whether you use the proper types.

All the best,
Ivan Dimitrov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Posted by Community Admin on 08-Mar-2012 00:00

( sitefinity.com is throwing errors when i'm trying to submit a reply, causing reposts... )

Posted by Community Admin on 08-Mar-2012 00:00

( sitefinity.com is throwing errors when i'm trying to submit a reply, causing reposts... ) 

Posted by Community Admin on 08-Mar-2012 00:00

Hi,

Is there an API documented for the taxonomy classes other than this:

http://www.sitefinity.com/documentation/documentationarticles/developers-guide/sitefinity-essentials/taxonomies/hierarchical-taxonomies/hierarchical-taxonomy-api 

That's a nice how to on how to create taxonomies, but it has nothing about how to search and traverse them.

thanks,
-trevor

Posted by Community Admin on 09-Mar-2012 00:00

Hello Trevor,

The API reference can be found in our SDK. Please check the attached screenshot.

All the best,
Victor Velev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

This thread is closed