Page Tree

kalanta

No avatar

2008-11-18 11:17

I'd like to see my page tree always. For example, when I choose Company (by demo) i need see that. Now page tree shows from first subcategory only.

» Quick.Cart v3.x

beholder

Avatar: beholder

2008-11-18 12:08

you actually do see it, in the page name just under the main menu (the menu under logo).
Tell you what, in templates/container.tpl insert
<div style='text-align:left;padding-left:5px;'>$sPagesTree</div>
under the <div id="content">

It will be much clearer where you are in the page structure that way.

kalanta

No avatar

2008-11-18 21:23

go here: http://web.asmeninis.com - no page tree (I'd like to see Hello)
but here http://web.asmeninis.com/?high-mountain,16 it is

beholder

Avatar: beholder

2008-11-18 23:49

Yes I know, but the inherent philosophy of navipath feature is that when it's unnecessary (you're in top-level page and the page name is displayed in big, thumb-sized letters) it just doesn't display. Why should it anyway...

BTW I was looking into the sources and I couldn't figure out how a page's parents generating works.

kalanta

No avatar

2008-11-19 08:57

I intend to use navipath instead of page title (in pages_default.tpl), so I need it.

beholder

Avatar: beholder

2008-11-20 00:19

hmm... you only need to transfer navipath into the page template rendering, it shouldn't be too difficult IMO.

Then perhaps you could use CSS and make it look like this using custom template for root categories and another custom template for other categories.
It would look like this (imagine this in blue letters and identical font and size):

(for root categories)
[category name]

(for subcategories)
[navipath root category] >> [navipath subcategory] >> [category name]

Of course, category name doesn't need to be clickable, since the user already is there. But it can have the same color & size as navipath.

beholder

Avatar: beholder

2008-11-20 01:00

oh, actually, I just realized you don't need to transfer navipath anywhere. You just need to hack the pages_xxx.tpl and container.tpl templates in almost such a way, as I described previously (at 2008-11-18 12:08:28 and 2008-11-20 00:19:03). This is DAMN too easy. Problem solved.

kalanta

No avatar

2008-11-20 09:12

Ok, I'm trying to say what I need:

I moved <div id="navipath">$sPagesTree</div> from container.tpl to pages_default.tpl istead of <h3>$aData[sName]</h3> and it's almost ok. In this solution there's a problem: I can't see the pages tree when I'm on top level. I wanna see my navipath always: when I press Company, when...

Well, I'm talking about like this <h3>$aData[sName] - $sPagesTree</h3>

beholder

Avatar: beholder

2008-11-20 14:31

Yes, you need to make the last step, try it like this:
<div id="navipath"> $sPagesTree &#187; $aData[sName]</div>

Back to top
about us | contact