class selected for subpageslist ?

MAC60

Avatar: MAC60

2011-08-09 18:54

Hi to all

I moved $sSubpagesList from pages_default.tpl to container.tpl and after applying this fix here (http://opensolution.org/Quick.Cms/forum/?p=readTopic&nr=735) everything works nicely, subpages of menu2 are displayed on the left hand side in DIV column.

Just one problem remaining:
I would like the selected SubpagesList item to be underlined or whatever, just like the other menu items, when they are opened. How can I define the class .selected for subpagesList ?

Thanks for any advice !

» Quick.Cms v3.x

boboo

Avatar: boboo

2011-08-09 19:59

just look at the function throwMenu in pages.php
and redesign the throwSubPages function similar to it.

it-service.kimla.de

MAC60

Avatar: MAC60

2011-08-09 20:17

thanks boboo

I did try that already by inserting $aData['sSelected'] = ( $aData['iPage'] == $iPageCurrent ) ? $oTpl->tbHtml( $sFile, 'SELECTED' ) : null; in fuction listSubpages.

In Addition I inserted the variable $aData[sSelected] in pages_default.tpl. Somehow it simply doesn't work, I feel like fighting against windmills . . . . .

boboo

Avatar: boboo

2011-08-09 21:57

wrong way.
1. did you see the variable $iPageCurrent within the listSubpages function?
2. as $sFile normally is set the pages_default.tpl. did you see the 'SELECTED' block within this template?

write me an email (kontakt@kimla.de), i will give you the solution.

it-service.kimla.de

MAC60

Avatar: MAC60

2011-08-10 12:20

as for no.2, of course I had inserted the 'SELECTED' block in pages_default.tpl so the issue was with /core/pages.php only.

as for no. 1, I learned the polish language between nightfall and daybreak ;-) and used the solution as you proposed in thread http://opensolution.org/Quick.Cms/forum/?p=readTopic&nr=507&page=2

Now everything works perfectly nice!

Thanks boboo

Back to top
about us | contact