Internal Links using PageID
Hi Admin,
Sometimes, I reorganized wiki pages (moving to another sub-page, rename wiki) and it will break the links from another pages.
Can we use wiki PageId to create links because PageId never be changed.
Thanks and Regards,
Show Files (1 file)
Comments
Log in or create an account to post a comment.
Re: Internal Links using PageID
and then call it in wikipage
Re: Internal Links using PageID
action/plink.php
action/template/plink.tpl
To the topic itself more later, I just improved your action. I renamed the action to plink to distinguage it from similar actions/functions.
Re: Internal Links using PageID
I got error
Re: Internal Links using PageID
I tested it on my local XAMPP, and copied it. Main is declared, you may compare it with a similar template - right now I can't spot an error.
Re: Internal Links using PageID
I am using Wackowiki version: 6.0.25
Re: Internal Links using PageID
file:plink_action.zip
Please try the sample files in the zip file. The problem with copy code around is, that the template requirers the correct line feed to work.
Re: Internal Links using PageID
I have uploaded the files. there's no error but the page didn't show anything.
Re: Internal Links using PageID
true
the query gets cached. I have a 6.0 testing instance, but didn't used it - what could go wrong.An empty result indicates, that it throw the return, so it has no results. You can add there also a message.
Re: Internal Links using PageID
I changed this line
to
Thanks WikiAdmin..
Re: Internal Links using PageID
If you don't do this in templates, the templating engine will throw an error:
templatest: no main template found in action_or_handler/template/path.tpl