Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

How to filter pages based on Tags by using Geta.Tags

Vote:
 

Hi All,

I am trying to retrieve pages of particular tag type.I am using Geta.Tags.Can you guide me how to achieve this?

#151631
Aug 01, 2016 15:15
Vote:
 
string tagToSearch = "mytag";

var tagEngine = EPiServer.ServiceLocation.ServiceLocator.Current.GetInstance<Geta.Tags.Interfaces.ITagEngine>();

IEnumerable<ContentData> result = tagEngine.GetContentsByTag(tagToSearch);
#152018
Aug 12, 2016 12:48
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.