Navipath

vince1971

No avatar

2009-07-30 17:11

Navipath does not display.
In container.tpl I have <div id="navipath">$sPagesTree</div> . Reference is correct in the css, but still it does not show in the frontend. I don't see any admin option to enable this function. What did I miss?

Thanks!

ps= I am in evaluation phase... good product:-)

» Quick.Cms v2.x

...

Makaron

Avatar: Makaron

2009-07-31 08:43

Send address of site.

cgan

Avatar: cgan

2009-07-31 10:49

Perhaps you have to change color or position of your navipath to be able to see it.

cgan

vince1971

No avatar

2009-07-31 15:10

I am running the lite version locally.
In the container.tpl:
<div id="head2">

<div id="logo">

<h1><a href="?" tabindex="1"></a></h1>

<h2>$config[slogan]</h2>

</div>
$sMenu2

<div id="navipath">$sPagesTree</div>
</div>
In the css:
/* NAVIGATION PATH - TREE */

#navipath{position:absolute;top:200px;padding:0 0 0 5px;}

#navipath a{background-color:inherit;color:#454545;text-decoration:none;}

#navipath a:hover{text-decoration:underline;}

When looking at the page source in the browser:
<div id="head2">
<div id="logo">
<h1><a href="?" tabindex="1"></a></h1>

<h2>My subtitle blablablablablabla</h2>
</div>
<ul id="menu2"><li class="l1"><a href="?en_company,1" class="selected">company</a></li><li class="l2"><a href="?en_our-offer,3" >our offer</a></li><li class="l3"><a href="?en_rules-and-policies,4" >rules and policies</a></li><li class="lL"><a href="?en_contact-us,2" >contact us</a></li></ul>
<div id="navipath"></div>
</div>

Maybe I am simply wrong but I though this block was supposed to display the "navigation path", like "home -> Company" ? Or is it meant for something else?
Thanks

mikouaj

No avatar

2009-08-04 09:40

i have the problem with navipath too. The current page is not displayed in navipath.

E.g. there is parent page PRODUCTS and subpage called REPORTS. When I'm on REPORTS page in navipath there's only PRODUCTS.

I tried to do something like this <div id="navipath"> $sPagesTree > $aData[sName] </div> but then it displayed on every subpage only the same name of other site (in my case it was CONTACT)

&#187; Quick.Cms.Lite v2.x

Makaron

Avatar: Makaron

2009-08-05 14:34

Navipath doesn't display current page. You can change it but it isn't so simple. You can try to edit file core/pages.php find function throwPagesTree() and change code:

return implode'&nbsp;&raquo;&nbsp;'$aReturn );


to:

return implode'&nbsp;&raquo;&nbsp;'$aReturn ).'&nbsp;&raquo;&nbsp;<a href="'.$this->aPages[$iPageCurrent]['sLinkName'].'">'.$this->aPages[$iPageCurrent][' sName'].'</a>';

mikouaj

No avatar

2009-08-05 15:43

Makaron! Thank you, it works great

grabek

Avatar: grabek

2011-07-13 16:05

Hello!

Does anybody know how to change this code "return implode" and make this effect in Quick.Cms 3.1? I will be greatfull for help in this, because I also want to have navipath always display, but in Quick.Cms 3.1 :-)

Best regards!

grabek

Back to top
about us | contact