This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Developer » Breadcrumbs, need different view mode

Breadcrumbs, need different view mode

Breadcrumbs, need different view mode

Tuesday 01 April 2003 7:20:14 pm - 3 replies

I've got my breadcrumbs template snippet working, but for some nodes, I don't want the breadcrumb links to use the "full" view mode.

How can I specify A different view mode in a way that won't be a total pain in the butt? FYI, I've made some of my own view-modes.

Modified on Tuesday 01 April 2003 7:29:11 pm by Peter Bailey

Thursday 03 April 2003 1:08:35 pm

How are the links built now? Manually or trough other templates?

If it's manually then only have check for those special nodes and specify another view, like:

{section name=Child loop=$children}
{section show=eq($:item.node_id,42)}

If it's trough other templates you can add the same check there or use override templates.

Thursday 03 April 2003 4:38:23 pm

Ideally, I would like something like that, but I don't know how to go about doing that using the data from $Path, as each item only seems to have the url and text.

I wanted to create a new template in /design/(mydesign)/override/templates/node/view/ and name it breadcrumb_link.tpl.

Now, when making the breadcrumbs, I wanted to just usd it like this

{section name=Path loop=$module_result.path offset=2 max=-1}
/ {node_view_gui view=breadcrumb_link content_node=$Path:item}

Following me? Is there another way to create these breadcrumbs without using $module_result.path? Or does $module_result.path contain more data than I think it does? I looked at the output from this


And there doesn't seem to be anything else I can use.

Wednesday 02 July 2003 12:28:03 am

Sorry for being off topic but...

Can someone please explain to me where $module_result is documented? What class is it, what are its attributes and what other "global" objects are available to templates? What is $children? Where does it come from in the example above or is the example a snipit? My magic documanation decoder ring must be held up in the mail.

Another question on view modes: why do I not have a /design/standard/templates/node/view/embed.tpl file? I'm using 3.1 but it aint there as the documentation "suggests". I say that because it doesn't say much especially what I would use them for or what they might output.

I've spent 4 days so far farting with ezp3 and so far I'm yet to get a single page to display. The documentation takes me as far as an admin login page and whatever else I've found is either unclear, incomplete or an unanswered forum post.

Excuse my noobie rant but this trial and error approach has become trying. Is there any documentation that will take me from the admin login page to a visible and workable basic site? Anything at all that might help a site admin to get this thing working in any fashion at all or must I continue to search for easter eggs?


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from