Since Tiki 19, a collapsible section (generated with a heading that starts with a minus or plus sign, as documented) effectively ends at the first heading of the same level or above in the pages it includes (with the INCLUDE plugin).
For example, if page Parent has!Section 1 Direct content !+Collapsed section Direct content {include page="Help"} ! Last section Direct content
...while page Help has
!For Support Please Contact support@company.com (555) 123-4567
...then the "For Support Please Contact" section always shows, regardless of the toggle control's state. Clicking on "+" only reveals "Direct content".
I am categorizing this ticket in Bug::Regression because this is a regression, but this is arguably not a bug.
This issue is a regression from r66644 and therefore affects Tiki 19. That commit essentially reverted r48937 (2013-12-03, on the Tiki 12 branch), so Tiki 11 and before also have the same issue.
Note that this is the second back-and-forth on this, after r29321 was reverted by r33993.
Tiki never had any code to deal with this issue. Versions 12 to 18 were not affected by chance. Relevant code is in parse_data_process_maketoc(),
$aclose = '<a id="flipper' . $thisid . '" class="link" href="#" onclick="flipWithSign(\'' . $thisid . '\');return false;">[' . ($divstate == '-' ? '+' : '-') . ']</a>'; $aclose2 = '<div id="' . $thisid . '" class="showhide_heading" style="display:' . ($divstate == '+' ? 'block' : 'none') . ';">'; $headerlib = TikiLib::lib('header'); $headerlib->add_jq_onready("setheadingstate('$thisid');"); array_unshift($divdepth, $hdrlevel);
// Close lower level divs if opened for (; current($divdepth) >= $hdrlevel; array_shift($divdepth)) { $data .= '</div>'; }
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.
Unable to connect to show.tikiwiki.org. Please let us know of the problem so that we can do something about it. Thanks.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |