From 39916d46f026622407441e7e1e6363132477afc9 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Sun, 23 Nov 2008 14:51:47 +0100 Subject: [PATCH] Added the featured documentation pages on the homepage. --- src/IDF/Views/Project.php | 6 ++++++ src/IDF/templates/idf/project/home.html | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/src/IDF/Views/Project.php b/src/IDF/Views/Project.php index 81d372a..53f0c3e 100644 --- a/src/IDF/Views/Project.php +++ b/src/IDF/Views/Project.php @@ -46,11 +46,17 @@ class IDF_Views_Project // the first tag is the featured, the last is the deprecated. $downloads = $tags[0]->get_idf_upload_list(); } + $pages = array(); + if ($request->rights['hasWikiAccess']) { + $tags = IDF_Views_Wiki::getWikiTags($prj); + $pages = $tags[0]->get_idf_wikipage_list(); + } return Pluf_Shortcuts_RenderToResponse('idf/project/home.html', array( 'page_title' => $title, 'team' => $team, 'downloads' => $downloads, + 'pages' => $pages, ), $request); } diff --git a/src/IDF/templates/idf/project/home.html b/src/IDF/templates/idf/project/home.html index f6fad9b..101b0bc 100644 --- a/src/IDF/templates/idf/project/home.html +++ b/src/IDF/templates/idf/project/home.html @@ -17,6 +17,13 @@ {/foreach} {trans 'show more...'} {/if} +{if count($pages) > 0} +

{trans 'Featured Documentation'}
+{foreach $pages as $page} +{$page.title}
+{/foreach} + {trans 'show more...'} +{/if} {assign $ko = 'owners'} {assign $km = 'members'}

{trans 'Development Team'}