Page 1 of 2

{NAV_TABLE_COLUMN} image on right

Posted: Wed 19. Apr 2006, 11:39
by SNap
hi,

i want that image on the right side of the navigation instead of on the left side....

how would i have to do that?

Cheers
SNap

Posted: Wed 19. Apr 2006, 12:53
by flip-flop
Hi SNap,

i don´t know how you can manipulate the NAV_TABLE_COLUMN, but I would prefer for those things NAV_LIST or NAV_STRUCT http://www.phpwcms.de/forum/viewtopic.php?t=10369


Gruß Knut

Posted: Wed 19. Apr 2006, 14:40
by SNap
well NAV_LIST shows current level, only. and NAV_STRUCT i can't find a real example that could replace NAV_TABLE_COLUMN

Posted: Wed 19. Apr 2006, 15:35
by flip-flop
Hi, :oops:

oh sorry, I meant NAV_LIST_ALL: www . mz.ja-nek . de/test2_3_1.phtml
have a look (NAV_STRUCT): www . mz.ja-nek . de/test2_4.phtml

Gruß Knut

Posted: Wed 19. Apr 2006, 16:10
by SNap
hmm i don't get it .... i want in this site (construction) http://henters.area4711.de make the navi like in this screenshot: http://www.datensysteme-lenk.de/henters2.gif

Posted: Wed 19. Apr 2006, 17:26
by flip-flop
Hi SNap,

Thats very easy.
I hope there is a push into the right direction: www . mz.ja-nek . de/de_test2_3_2.phtml

Gruß Knut

Posted: Wed 19. Apr 2006, 18:44
by Klappstuhl28
edited: Hat sich ja schon erledigt.

Posted: Thu 20. Apr 2006, 08:31
by SNap
flip-flop wrote:Hi SNap,

Thats very easy.
I hope there is a push into the right direction: www . mz.ja-nek . de/de_test2_3_2.phtml

Gruß Knut
is that NAV_LIST_ALL or NAV_LIST_STRUCT?

Posted: Thu 20. Apr 2006, 08:50
by flip-flop
Hi SNap,

it´s NAV_LIST_ALL. Have a look a second time: www .mz.ja-nek. de/de_test2_3_2.phtml

Gruß Knut

Posted: Thu 20. Apr 2006, 10:25
by SNap
but what do i do with that php file? how do i integrate it in phpwcms?

Posted: Thu 20. Apr 2006, 11:01
by flip-flop
It´s a RT like many other.

1. Copy the unpacked file to /phpwcms_template/inc_script/frontend_render/
2. Please adjust your conf.inc.php file

Code: Select all

$phpwcms["allow_ext_init"] = 1; //allow including of custom external scripts at frontend initialization
$phpwcms["allow_ext_render"] = 1; //allow including of custom external scripts at frontend rendering
Gruß Knut

Posted: Thu 20. Apr 2006, 12:57
by SNap
i did... but i don't get it....

http://henters.area4711.de

Posted: Thu 20. Apr 2006, 14:06
by flip-flop
You did not understand the function yet.
It´s easy.
The css-snippet you are using is made for level 4.
But your site at the first level uses level 1.
Plaese have a look at the generated code of your site.

--------------------------
<td valign="top" width="166"><table><tbody><tr><td with="166">
<div style="background-image: url(picture/bg/grey_grey.gif);" navlist="">
<div class="MenuItem_1"><a href="index.php?index" target="" title="Home">Home</a></div>
<div class="MenuItem_1" id="activeSection"><a href="index.php?team" title="Wir über uns">Wir über uns</a></div>
<div class="MenuItem_1"><a href="index.php?produkte" title="Produkte">Produkte</a></div>
<div class="MenuItem_1"><a href="index.php?impressum" title="impressum">impressum</a></div>
</div>
<div><img src="img/leer.gif" alt="" border="0" height="10" width="166"></div>
</td></tr></tbody></table></td>
-------------------------
Please try this instead of the blue entry: <div style="background-image: url(picture/bg/grey_grey.gif);">

Every Level has it´s own css block!!! You can do what you wan with this block.
Please change at the css code the entries MenuItem_4 -> MenuItem_1.

Have a look at my nav_list_right.css.

The right way: Moving the table 40px to the right.
The rest should be simple now. (range of background gif and so on)
---------------------------
<td valign="top" width="138">
<div style="padding: 0 0 0 40px;">
<table><tbody><tr><td>
<div style="background-image: url(picture/bg/grey_grey.gif);">
<div class="navList">
<div class="MenuItem_1"><a href="index.php?index" target="" title="Home">Home</a></div>
<div class="MenuItem_1" id="activeSection"><a href="index.php?team" title="Wir über uns">Wir über uns</a></div>
<div class="MenuItem_1"><a href="index.php?produkte" title="Produkte">Produkte</a></div>
<div class="MenuItem_1"><a href="index.php?impressum" title="impressum">impressum</a></div>
</div>
</div>
<img src="img/leer.gif" alt="" border="0" height="10" width="138">
</td></tr></tbody></table>
</div>
</td>
-------------------------

Gruß Knut

Posted: Thu 20. Apr 2006, 16:00
by SNap
ok, i almost got it, but i want the active menuitem to keep the right red block...

can't figure out why it is grey

Posted: Thu 20. Apr 2006, 16:37
by flip-flop
oh Lord,
-----------------------------------------
.MenuItem_1#activeSection A:active, .MenuItem_4#activeSection A:link, .MenuItem_4#activeSection A:visited
-----------------------------------------
Please, a little bit more effort. :wink:

Gruß Knut