Loading...
 
Skip to main content

Features / Usability


Re: How to link to FAQs or articles from wiki pages?

I wrote a wiki-plugin to make an easy FAQ link...

{FAQ(id=>1)}{FAQ} -> Adds a link to FAQ with faqId=1, the link itself is the FAQ's title.
{FAQ(id=>1)}Some Text{FAQ} -> Adds a link to same FAQ, the link is 'Some Text'

Add the following to /lib/faqs/faqlib.php:

function get_faq_info($faqId)
{
$query = "select * from `tiki_faqs` where `faqId`=?";
$result = $this->query($query,array($faqId));
$res = $result->fetchRow();

return $res;
}

Save the attached file in /lib/wiki-plugins