Disable page versioning in permalink
Hi Admin,
How can I disable page versioning in WackoWiki so that the permalink does not appear to change when a page is updated?
Thank you.
Comments
Log in or create an account to post a comment.
Hi Admin,
How can I disable page versioning in WackoWiki so that the permalink does not appear to change when a page is updated?
Thank you.
Re: Disable page versioning in WackoWiki
if (!isset($version)) $version = 1;
to:
if (!isset($version)) $version = 0;
ChatGPT helped me find this solution :D.
Re: Disable page versioning in permalink
Re: Disable page versioning in WackoWiki
I’m using WackoWiki mainly for personal notes. I update pages quite often, and sometimes I also rename them.
Because of that, I need a permalink that stays the same even after the page is updated or renamed. Otherwise, I have to keep updating the links manually in my other notes or external references whenever the generated permalink changes.
regards,
Re: Disable page versioning in permalink
version=0. The permalink uses thehashidaction.Description: Creates a permalink to the current version of the page or simply to the page itself. Usage: {{hashid}} Options: [version=0|1] 0 - link to the page 1 - link to the current page version (default)[1] Theme footer
In your theme footer you can set the
versionparameter to0.theme/default/appearance/footer.php
// permalink $tpl->perma_link = $this->action('hashid', ['version' => 0]);[2] Action
When using the action in a page:
action/hashid.php
{{hashid version=0}}Re: Disable page versioning in permalink
Re: Disable page versioning in permalink
version=0.Good to hear that 6.0.37 works, it was a blind back-port – my testing environment for PHP 7.4 was already gone.
WackoWiki 6.1.0
WackoWiki 6.2.0
WackoWiki 6.3.0