【问题标题】:How to use the hits addon in Expression engine如何在 Expression 引擎中使用 hits 插件
【发布时间】:2015-10-07 23:20:48
【问题描述】:

我从http://www.devdemon.com/documentation/tag/count-hits-tags/ 购买了 hits 插件,但它没有在管理面板中显示任何数据。

插件安装成功,我是这样应用的:

    {exp:channel:entries channel="news" limit="1" disable="categories|category_fields|pagination|member_data" cache="yes" refresh="1" track_views="one" dynamic="no" status="open|featured"}

    {exp:hits:count_hits}          

{/exp:channel:entries}

【问题讨论】:

    标签: php codeigniter expressionengine


    【解决方案1】:

    按照您提供的链接,说明状态:

    重要提示:您必须使用上述参数之一。

    所以把你的标签改成这样:

    {exp:channel:entries channel="news" limit="1" disable="categories|category_fields|pagination|member_data" cache="yes" refresh="1" track_views="one" dynamic="no" status="open|featured"}
    
        {exp:hits:count_hits entry_id="{entry_id}"}          
    
    {/exp:channel:entries}
    

    应该开始跟踪点击。

    【讨论】:

    • 点击未显示图表,如其插件文档中所示。
    猜你喜欢
    • 1970-01-01
    • 2016-05-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-15
    • 1970-01-01
    • 1970-01-01
    • 2010-11-12
    相关资源
    最近更新 更多