Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • shinsuke nakayama 109 posts 250 karma points
    Sep 11, 2014 @ 03:40
    shinsuke nakayama
    0

    Tag query question

    Hi guys,

    I was just researching on how I can search for pages via tag, and i came across 2 methods:

    Umbraco.TagQuery.GetContentByTag(tag).ToList();
    

    and

    umbraco.cms.businesslogic.Tags.Tag.GetNodesWithTags(tag);
    

    What are the differences between this two? Do they perform the same?

    Thank you

    Shinsuke

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Sep 11, 2014 @ 12:08
    Jeavon Leopold
    100

    Hi Shinsuke,

    Anything that begins with Umbraco is using the current UmbracoHelper and should be use instead of anything beginning with umbraco which will be older and potentially legacy/obsolete.

    Jeavon

  • shinsuke nakayama 109 posts 250 karma points
    Sep 11, 2014 @ 15:58
    shinsuke nakayama
    0

    Hi Jeavon,

    Thank you for the info, that make sense now :)

    and i can see where Umbraco are going with this too.

    Cheers

    Shinsuke

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Sep 11, 2014 @ 16:33
    Jeavon Leopold
    0

    You're welcome :)

Please Sign in or register to post replies

Write your reply to:

Draft