On Tiki25 I can set on a page a List plugin filtering "this" object title - the page title.
Then the results can be used in a wiki template (with other wikiplugins) and if I use {{page}} inside the template (or other wikiplugins).
The code will know what page (title) I'm talking about.
On Tiki26 this is not enough and the page (title) is "unkown" or picked randomly based on last list result of all the wiki pages even if there is only ONE results (obviously you can have only one page with a title - duplication is not allowed).
See my solutions.
It is on a customized Tiki with a List => Smarty template => Wikiplugin Include AND it work in multilingual.
This to allow a user without page editing permission (test typing only) to edit/translate content of blocks in the page without modifying it.
So I set the importance to low however it may be something we have to look at in the future and other cases.
I added on the top of the page the following code to "validate" the content of the variable that can be then used properly by the templates.
{DIV(class="d-none")}{{page}}{DIV}
It fixed the issue for some pages
Even if there can be only one wiki page with a title the plugin List keep rolling list of pages (similar title ?)
{pagination max="1"}
I fixed the other pages where the issue still persisted.
To be ultra-squared with the code I also set the filter for the page to "exact".
{filter field="title" exact=""}
And as this pages has several plugin list I set each template to use a different prefix for the variables.
IE:
{foreach from=$results item=homeBloc1} {foreach from=$results item=homeBloc2} {foreach from=$results item=homeBloc3} ...
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |