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'}