Loading...
 
Skip to main content

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
(0)
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.netQuestion

versus


http://intercanvis.net/articlesQuestion

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+
Demonstrate Bug (older Tiki versions)
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


Show PHP error messages