Showing {{NUMBEROFARTICLES}}

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
tut
Rank 3
Rank 3
Posts: 18
Joined: November 22nd, 2011, 4:29 pm

Showing {{NUMBEROFARTICLES}}

Post by tut »

How to show/place {{NUMBEROFARTICLES}} fucntion externally? Mean out of "wiki processing area" (that is out of area where you type text in wiki).

Please advise.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Showing {{NUMBEROFARTICLES}}

Post by Paul »

The syntax won't work outside wiki text area, I guess you can manually code it to query database?
User avatar
tut
Rank 3
Rank 3
Posts: 18
Joined: November 22nd, 2011, 4:29 pm

Re: Showing {{NUMBEROFARTICLES}}

Post by tut »

I found following extension. However it seems it dont counts.

Is there any other way wo to do it? Pls advise.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Showing {{NUMBEROFARTICLES}}

Post by Paul »

Install that extension first , then try to add code below to somewhere in GuMax.php and see what happens:

Code: Select all

<?php wfRunHooks('count'); ?>
Post Reply