DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Pages Counter¶
Author: | Christopher |
---|---|
Created: | 2010-12-18T19:57:23 |
Changed by: | Stefan Szymanski |
Changed: | 2013-07-25T09:32:07.940000000 |
Classification: | form4_pages_counter |
Keywords: | forAdmins, page counter, hits |
Author: | form4 GmbH & Co.KG |
Copyright: | 2013 |
Email: | typo3@form4.de |
Language: | en |
Pages Counter¶
Extension Key: form4_pages_counter
Language: en
Keywords: forAdmins, page counter, hits
Copyright 2013, form4 GmbH & Co.KG, <typo3@form4.de>
This document is published under the Open Content License
available from http://www.opencontent.org/opl.shtml
The content of this document is related to TYPO3
- a GNU/GPL CMS/Framework available from www.typo3.org
Table of Contents¶
`EXT: Pages Counter 1 <#__RefHeading__5708_1738894311>`_
`Introduction 3 <#__RefHeading__5710_1738894311>`_
`Installation 4 <#__RefHeading__1337_1932766273>`_
`Known problems 6 <#__RefHeading__1595_1932766273>`_
`ChangeLog 7 <#__RefHeading__31623_818911409>`_
Installation¶
Install the static template in your root template record. Then in constant template set your own values for rootpage for the top 5 teaser (enter the id of your rootpage )and the comma seperated list of doktypes
Then you can add the counter on each page with the following typoscript code:
(Attention: make sure that you have added jquery in the latest version for this example, feel free to code your own variant without jquery)
lib.page_counter = TEXT
lib.page_counter {
data = TSFE:id
wrap(<script type="text/javascript">$(document).ready(function(){$.ajaxSetup ({cache: false});var loadUrl = "/";$.get(loadUrl,{eID: "form4counter",controller: "Pages",action: "count",pageId: "|"},function(data){});
});
</script>
)
}
After this you can add lib.page_counter into your own setup.This typoscript setup is needed to count the access to your page.
Attention: In the extension setup is already one lib.page_counter typoscript object included but this one can just be called with lib.page_counter.10 , because of some historical reasons.
To add the top 5 counter just add the plugin at the page and column you want to.
As you can see, you can overwrite the setup Configuration with the flexforms provided by the plugin.
Known problems¶
None so far