Skip to content

artdevue/HitsPage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

HitsPage (MODX Revolution)

========= ** Pageviews for MODX Revolution**


Homepage

Donwload MODX extras

Displays results in resource

Example snippet call in resources:

[[!HitsPage]]

Example snippet call in resources and write Template Variable (TV) HitsPage:

[[!HitsPage? &saveTv=`true`]]

Output via expansion getPage or getResources

Fragment insert code in the chunk:

{%hp-[[+id]]%}
  • An example of a template for the gallery
<div class="blog_details">
	<div class="yearbl">[[+publishedon:verticalyear]]</div>
	<div class="day">[[+publishedon:strtotime:date=`%d`]]</div>
	<div class="month">[[+publishedon:strtotime:date=`%B`]]</div>
	<div class="comments">{%hp-[[+id]]%} view<i class="icon-eye-open"></i></div>
	<div class="author">[[+createdby:userinfo=`fullname`]]</div>
	<div class="clear"></div>
</div>
  • IMPORTANT! To activate the plugin in this resource, you need to insert the template output tape challenge Snippets [[HPCount]]. I did it, so that no plug for lack Pars each resource.

Authors

Valentin Rasulov
artdevue.com
http://artdevue.com

About

Pageviews for MODX Revolution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages