Copied to clipboard

Flag this post as spam?

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


  • Eran Meir 401 posts 543 karma points
    Dec 20, 2010 @ 20:49
    Eran Meir
    0

    Tags by popular pages

    hey, i want to create a list of tags by the most visited pages.

    i created a "visits" property to each page, and it's getting updated each visit.

    each page has tags property.

    i want to get the most visited pages and get the tags of these pages. 

    my problem is how i get rid of duplicate tags? any idea?

  • Eran 292 posts 436 karma points
    Dec 21, 2010 @ 02:54
    Eran
    0

    Hi,

    i dont have answer to your question, but i'm also umbraco developer from israel.
    if you are in the web development businesses, i think we have things to talk about.
    please write me to eran at thereturnvalue dot com.

  • Eran Meir 401 posts 543 karma points
    Dec 21, 2010 @ 21:26
    Eran Meir
    1

    i got it working. the main challenge was sorting the posts by the visits. here the answer how i did it 

    Array.Sort(
                    nodes,
                    delegate(Node node1, Node node2)
                    {
                        return Int32.Parse(node1.GetProperty("visits").Value).CompareTo(Int32.Parse(node2.GetProperty("visits").Value));
                    });

    after that it was piece of cake.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies