getCollectionParentID and getCurrentPage question
Permalink
Hi there,
I have a short question regarding the use of getCollectionParentID and getCurrentPage. In short what I want to achieve is a brief overview of the structure of the website. Graphically it should looks something like this:
You are here: Homepage --> News --> December 2011
My code so far only get's me the name of the current page.
I guess I need to put a getCollectionParentID handle somewhere first and then use the getCurrentPage. I hope someone is able to help me out. I think the solution is rather simple but I just can't seem to figure it out.
Thanks in advance.
I have a short question regarding the use of getCollectionParentID and getCurrentPage. In short what I want to achieve is a brief overview of the structure of the website. Graphically it should looks something like this:
You are here: Homepage --> News --> December 2011
My code so far only get's me the name of the current page.
<p>You are here:</p> <a href=""> <?php $page = Page::getCurrentPage(); echo $page->getCollectionName(); ?> </a>
I guess I need to put a getCollectionParentID handle somewhere first and then use the getCurrentPage. I hope someone is able to help me out. I think the solution is rather simple but I just can't seem to figure it out.
Thanks in advance.
EDIT: Oops typos should work now.