When using articles on a tiki 5 site, using a thenews.css-based theme style, we don't see the horizontal menu at the top bar.
On all the other tiki features, that menu is shown as expected.
You can reproduce that here:
http://intercanvis.net
versus
In file "tiki-section_options.php" go to:
if ($prefs['layout_section'] == 'y') {
$section_elements = array('top_bar', 'bot_bar', 'left_column', 'right_column');
foreach ($section_elements as $element) {
if (isset($prefs[$section . '_' . $element])) {
$prefs['feature_' . $element] = $prefs[$section . '_' . $element];
}
}
}
CHANGE: ....if($prefs'layout_section' == 'true')
TO THE BOTTOM OF THE PAGE (after the last line of code) ADD:
if ($prefs'layout_section' == 'y') {
$section_elements = array('top_bar', 'bot_bar', 'left_column', 'right_column');
foreach($section_elements as $element) {
if $section . '_' . $element" class="wiki wikinew text-danger tips isset">$prefs$section . '_' . $element {
$prefs'feature_' . $element = $prefs$section . '_' . $element;
}
}
}
Hence you end up with:
if ($prefs['layout_section'] == 'true') {
$section_elements = array('top_bar', 'bot_bar', 'left_column', 'right_column');
foreach ($section_elements as $element) {
if (isset($prefs[$section . '_' . $element])) {
$prefs['feature_' . $element] = $prefs[$section . '_' . $element];
}
}
}
if ($prefs['layout_section'] == 'y') {
$section_elements = array('top_bar', 'bot_bar', 'left_column', 'right_column');
foreach($section_elements as $element) {
if (isset($prefs[$section . '_' . $element])) {
$prefs['feature_' . $element] = $prefs[$section . '_' . $element];
}
}
}
This will solve the problem of the horizontal menu at the top bar disappearing when displaying articles. I'm Not sure this is the best way to solve this problem though, so I'll leave it as just a workaround for now.
Testing the Workaround:
The workaround does not impair any other functionality of TikiWiki. Apart form a general quick test of all options etc that one is able to set in admin mode, I tried using the "Layout by Section" in the "Look and Feel" admin area and the "Control by Section" feature in the "Theme Control Center" adding a different theme to the blog section and wiki section: This worked as it should and all menus where in place. Now, changing the "Layout by Section" (ie taking away the top bar when viewing blogs) also worked --- when disabling "Layout by Section" all layout looked as it should (including articles) with all menus and columns in place as defined by theme and other options.
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.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |