Marty Walker
-
Posts
631 -
Joined
-
Last visited
-
Days Won
3
Community Answers
-
Marty Walker's post in how to get page viewed times? was marked as the answer
This is one way - I got this from someone in the forum (can't remember who, sorry).
Create an integer field called 'views' and add it to your template along with this code in your template file. You can then add that field to visible in your page list: under the Advanced tab in your template.
<?php if($user->isGuest()) { // Count page views only if guest $page->views += 1; $page->of(false); $page->save('views'); $page->of(true); } ?> -
Marty Walker's post in how to reinstall a module (CKeditor) was marked as the answer
Hello fellow Aussie,
I'd probably trash the directory on the server and reinstall it:
If you're running 2.4 install it through the Modules tab > New > enter InputfieldCKEditor where it says ModuleClassName
If you're sub-2.4 get hold of the ModulesManager (which needs JqueryDataTables installed first) and install it that way.
-
Marty Walker's post in Check within page pages was marked as the answer
I think Wanze showed me this a while back.
<? if ($page->allowedusers->has($user)) { //your stuff } ?>