Loading...
 
Skip to main content

LISTPAGES with showNameOnly="y" on TW15.5

Status
Open
Subject
LISTPAGES with showNameOnly="y" on TW15.5
Version
15.x
Category
  • Bug
Feature
Wiki Plugin (extends basic syntax)
Resolution status
New
Submitted by
EmmArrBee
Lastmod by
EmmArrBee
Rating
(0)
Description

Plugin {listpages find="FAQ"} and also {listpages find="FAQ" showNameOnly="n"} produce expected output

But {listpages find="FAQ" showNameOnly="y"} produces no output

However {listpages find="FAQ" showNameOnly="n"} followed by {listpages find="FAQ" showNameOnly="y"} does produce expected output from both commands. but it is correctly only by co-incidence.

Further testing shows the output from running a pair of {listpages } in succession is erroneous. Create a test page

For page == Test_XListPages_4
Copy to clipboard
!!! Test 4 {listpages initial="test_p" showNameOnly="n"} {listpages initial="test_x" showNameOnly="y"}

The output from the second command ignores its selection criteria initial="test_x" and simply repeats the output of the first command, all be it in the requested showNameOnly="y" format.

Not being able to produce simple list of pages is hampering our migration from TW6.7 to TW15.5

See Test_Page_1, Test_Page_2 and Test_Page_3 for demo of this issue in the show system.
I've updated the original test pages from find=tes" to initial="test_p" to more clearly demonstrate the erroneous behaviour and allow the contrast with test_p -v- test_x pages.

For page == Test_Page_1
Copy to clipboard
!!! Test 1 {listpages initial="test_p" showNameOnly="n"}

For page == Test_Page_2
Copy to clipboard
!!! Test 2 {listpages initial="test_p" showNameOnly="y"}

For page == Test_Page_3
Copy to clipboard
!!! Test 3 {listpages initial="test_p" showNameOnly="n"} {listpages initial="test_p" showNameOnly="y"}}

Workaround
Copy /wiki-plugins/wikiplugin_listpages.php from version 17.1
Importance
9
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6562
Created
Thursday 01 February, 2018 18:23:59 UTC
by EmmArrBee
LastModif
Saturday 10 February, 2018 16:17:27 UTC


Show PHP error messages