Try our conversational search powered by Generative AI!

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


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?

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

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

IEnumerable<ContentData> result = tagEngine.GetContentsByTag(tagToSearch);
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.