Jump to content

Topic on Skin talk:Chameleon

Use minified PageTools and PersonalTools outside NavbarHorizontal [Resolved]

5
Stefahn (talkcontribs)

Me again :)
I like the minified submenus of PageTools and PersonalTools. (How) Can I use them outside NavbarHorizontal?

I tried to wrap them in <component type="Container">...</component>, tried private $mFlat = true; in PageTools.php and uncomment $this->addClasses( 'list-inline text-center' );, but no luck so far.

F.trott (talkcontribs)

Not sure what you want to do. In which layout do you have the minified menus and where would you like to put them?

Stefahn (talkcontribs)

It's my own layout meanwhile.
I want to move the PageTools and PersonalTools here: http://awesomescreenshot.com/0df5zel1a4

If I use

<grid>
	<row>
		<cell span="2">
			<component type="Logo" position="head"></component>
		</cell>
		<cell span="9">
			<component type="Html"></component>
		</cell>
		<cell span="1">
			<component type="PageTools" position="right" hideSelectedNameSpace="yes"></component>				
			<component type="PersonalTools" position="right"></component>
		</cell>
	</row>
</grid>

this happens: http://awesomescreenshot.com/0d45zeldd0

F.trott (talkcontribs)

Don't know if this works, but you could try wrapping the tools in a second navbar.

Stefahn (talkcontribs)

Yeah, this worked :)

I copied the file NavbarHorizontal.php and made some changes to it:

  • To remove the navbar-background from the 4 symbols I removed the classes navbar navbar-default in line 114.
  • To remove the resizing in mobile browsers I removed collapse in line 468.
Reply to "Use minified PageTools and PersonalTools outside NavbarHorizontal [Resolved]"