function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vishalsvishals 

Very Urgent and Important question regarding data categories......

Hello every1,

 

I am working on knowledge base  articles. i am using data categories assigning to my articles. i have a problem regarding serach of articles which are based on datacategories. i tried map, list, set, etc,etc.

but still the issue is same..

 

I also used knowledge:articlelist on vf but of no use.

 

So can any body please help me for this..

my exact prob is--

 

i have 10 categories in a category group.

i want to access only 9 in the search like

 

Categorygroup--> Tutorial

---> RCA

-->Bucket1

-->Admin

--->Bucket2

--->Test

-->Bucket3

Now i want to access only 2 not ol 3.. so can any body help me to solve this issue...

 

Thanks

Vishal

kritinkritin

Could you please write here some code that you have written and elaborate more using code...line that what exactly you want it.

kanukanu

thanks for the reply..

 

on vf page 1stly i used

 

 <knowledge:articleList articleVar="a"
                            sortBy="lastUpdated"
                            pageNumber="{!pageNum}"
                            keyword="{!$CurrentPage.parameters.searchText}"
                            hasMoreVar="hasMore"
                            pageSize="10"
                         categories = "Articles:Rca"
                            rendered="{!searchType='Knowledge'}">

 

with this it will show me the articles under Rca only   but i dont want Rca Articles i want other Artciles which are in Other two categories.

 


I also create a map to get the ids of articles under the RCA category but dont know how to access it on VF page 

public class test{
public Map<Id,Id> TutorialMap {get;set;}
public test(){
TutorialList = [select sort_Order__c,Title,Tutorial_Article_Text__c,UrlName,Video_ID__c, id, PublishStatus, (select DataCategoryGroupName, DataCategoryName From DataCategorySelections) from Tutorial__kav where PublishStatus='online' with data category Articles__c Below RCA__c];
TutorialMap = new Map<Id,Id>();
for (Tutorial__kav tut: getRecords()) {
TutorialMap.put(tut.id, tut.id);
System.debug('TutorialMap-------->'+TutorialMap);
}
}
public List<Tutorial__kav> getRecords(){
return TutorialList ;
}

Now i dnt know how to access the keys on VF page. 

 

So can you now help me for this..