When using articles, no horizontal menu is shown (thenews.css based theme)
- Status
- Closed
- Subject
- When using articles, no horizontal menu is shown (thenews.css based theme)
- Version
- 5.x
- Category
- Usability
- Less than 30-minutes fix
- Feature
- Article
Menu
WYSIWYCA (What You See is What You Can Access)
Community Currency - Submitted by
- Xavier de Pedro
- Lastmod by
- Mikael Franzen
- Rating
- Description
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
- Workaround
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.- Importance
- 6
- Easy to solve?
- 7
- Priority
- 42
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 3486
- Created
- Saturday 10 July, 2010 19:26:53 UTC
by Xavier de Pedro - LastModif
- Monday 21 January, 2013 22:25:02 UTC