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/
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
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,
Scrub that - I was referring to a navid that had been removed. Fixed
now. Love talking to myself :)