Loading...
 
Skip to main content

Features / Usability


How to link to FAQs or articles from wiki pages?

I can link to other wiki pages with the wiki link syntax easily. I can't do this for articles and FAQs. Of course, I can use a normal URL link. But, is there also a way to use "easy links" to these? F.i. something like ((FAQ::Name of FAQ)) ?
Also, can somebody explain me the difference between articles and wiki pages? There are differences like they can't be referenced by name, but there doesn't seem to be much beyond that. So I wonder why there are these distinct types of pages and not just one type of page?

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


I just can't get it right.

{FAQ(id=>1)}{FAQ} is the first line

{FAQ(id=>1}Some Text{FAQ} is the second.

All the attachments are the same 😕