display templates that inherit parent properties

4 views
Skip to first unread message

Kay Smoljak

unread,
Apr 3, 2006, 3:54:42 AM4/3/06
to farcr...@googlegroups.com
I dunno why we didn't notice this before... it must be something basic
that we're missing. It's a bit hard to explain too so please bear with
me...

I'm trying to create a displayPageStandard template for a custom
content type. But, when the page is a standalone
one-page-per-content-object type deal, that page doesn't inherit the
nav location, section titles, breadcrumbs etc from the previous page.

So if the breadcrumbs for the calling page (which uses a displayTeaser
template) looks like this:
home > section > my custom type listing

I want the displayPageStandard's breadcrumbs to look like this:
home > section > my custom type listing > one of my custom types

Instead it looks like this:
home > one of my custom types

How would I go about that? A different type of display template?

Thanks,
K.

--
Kay Smoljak
http://kay.zombiecoder.com/

Geoff Bowers

unread,
Apr 3, 2006, 4:20:41 AM4/3/06
to farcr...@googlegroups.com

Its a common issue -- you are dealing with a dynamic content type that
has no fixed position in the tree and could appear anywhere in the site
based on its categorisation.

There are a few approaches... all of which really boil down to setting
the environment variable: request.navid (or whatever your custom
template code is using to determine the root point of your navigational
structures).

For example...

You can fix a point in the tree... like a central news archive for
example.. by hardcoding the request.navid for a content type. We often
do this by fixing the page in the tree with a navigation alias, say
application.navid.newshome

You can pass the preceding pages navid on the url as part of the link to
the page.. eg
index.cfm?object=E360EA27-F1B8-D726-B9003D162315DAFB&navid=E360EA27-F1B8-D726-B9003D162315DAFW

Hope that helps,

-- geoff
http://www.daemon.com.au/
--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au/mg


Kay Smoljak

unread,
Apr 3, 2006, 8:08:29 PM4/3/06
to farcr...@googlegroups.com
On 4/3/06, Geoff Bowers <mod...@daemon.com.au> wrote:
> There are a few approaches... all of which really boil down to setting
> the environment variable: request.navid (or whatever your custom
> template code is using to determine the root point of your navigational
> structures).

Thanks Geoff, that's good to know.

I did have it working, but now when I pass the navid over with the
objectid, I get redirected to the login page (taking the navid out
fixes the problem). All the nav items and content objects are approved
and permissions for anonymous are "view" - any idea what else this
could be?

Cheers,

Kay Smoljak

unread,
Apr 3, 2006, 8:15:51 PM4/3/06
to farcr...@googlegroups.com
On 4/4/06, Kay Smoljak <kay.s...@gmail.com> wrote:
> I did have it working, but now when I pass the navid over with the
> objectid, I get redirected to the login page (taking the navid out
> fixes the problem). All the nav items and content objects are approved
> and permissions for anonymous are "view" - any idea what else this
> could be?

Scrub that - I was referring to a navid that had been removed. Fixed
now. Love talking to myself :)

Reply all
Reply to author
Forward
0 new messages