Hi,
I want to split the wiki homepage in 3 sections,
1. Brief introductory text
2. Top ten articles
3. Top ten recent changes
Can any one guide me?
Thanks
Moved to HowTo by Moderator
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
June 15, 2009 10:26am
Subscribe [1]#1 / Jun 15, 2009 10:26am
Hi,
I want to split the wiki homepage in 3 sections,
1. Brief introductory text
2. Top ten articles
3. Top ten recent changes
Can any one guide me?
Thanks
Moved to HowTo by Moderator
#2 / Jun 15, 2009 10:34am
How are you determining what the top ten articles would be?
The stock wiki code comes with Recent Changes
#3 / Jun 15, 2009 12:11pm
Thanks Sue,
For displaying recent changes on wiki home page, where should I add {wiki:recent_changes} tag in themes/wiki_themes/default/default.php
#4 / Jun 15, 2009 12:32pm
It’s already there using the stock template. Look at the left nav of the wiki.
#5 / Jun 15, 2009 12:39pm
Hi, Asite, I just wanted to let you know that I deleted your duplicate post so that we don’t end up crossing conversations. In the future, please note one post is enough.
Thanks! =)
#6 / Jun 17, 2009 6:26am
Sue,
I want recent changes list to be displayed on wiki home. Not a link of recent changes which is available on left hand nav.
So for that where should I add {wiki:recent_changes} tag in themes/wiki_themes/default/default.php
#7 / Jun 17, 2009 11:32am
Asite, there are several ways you could do this, but at this point, you’re in HowTo mode. I’m moving this post to the HowTo area.
One way is to use the query module:
{exp:query sql="select page_name, last_updated from exp_wiki_page
where
wiki_id = '1' and page_namespace !='category'
order by last_updated desc"}
.. the rest would be code to remove either the - or _ you use as a separator.
{/exp:query}#8 / Jun 18, 2009 7:51am
Thanks Sue,
But My question is about, in themes/wiki_themes/default/default.php where should I change to display recent changes list on wiki home
For more clarification.
In defaul.php, there many functions like wiki_page,wiki_article,etc….
So in which function should I add {wiki:recent_changes} tag or the code given by you to display the recent changes list on wiki home page.