ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Entry views

March 20, 2011 6:53pm

Subscribe [2]
  • #1 / Mar 20, 2011 6:53pm

    Ryan Downie

    170 posts

    Hello Gang,

    I am stuck of finding a way where I can show how many times a template is viewed. I have multiple instances of “Viewed x amount of times on top level pages”.

    I know there are “Track Views” but I need this to show up on all pages and top level not just the single-entry pages.

  • #2 / Mar 20, 2011 6:56pm

    Ryan Downie

    170 posts

    explains a little more.http://cloud.ryandownie.com/5Mkb

  • #3 / Mar 20, 2011 8:41pm

    Cheif

    626 posts

    I assume you’re pulling in these items via the {exp:channel:entries} tag so, here’s something I’ve worked for a current install

    {exp:channel:entries
        channel="XXXX"
        disable="member_data|trackbacks|category_fields|pagination|categories"
        limit="3"
        dynamic="no"
        orderby="view_count_one" //Order by amount viewed
        }
            <a href="http://{title_permalink=">{title} | {view_count_one}//Show View Count</a></li>
        {/exp:channel:entries}
  • #4 / Mar 21, 2011 4:12pm

    Brandon Jones

    5500 posts

    Moving this to the CodeShare Corner as it’s a how-to question.

    Thanks, Cheif. Does that help, Ryan?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases