Hi KK,
I’m trying out some features of Couch that I’ve not used before for an upcoming project and I’ve run into a couple of issues with Nested Pages (AKA Menu Maker) that I’m hoping are easily solvable.
To give a little bit more background I’m testing all of this locally on my dev url which follows the structure ‘http://machine-name.home:5757' and using it on a clonable index.php as per the docs.
The first issue I have is to do with masquerading. Whenever I try to choose masquerade, I get the error ‘This page points to the following location: Cannot masquerade an external link’. This occurs when using a URL with or without Pretty URLs, e.g. http://machine-name/machine-name.home:5757/search1/ or http://machine-name/machine-name.home:5757/search1.php. As far as I can see, this is how the docs explains it should work.
The second issue is to do with the current and active links. Either using Pretty URLs or not, I can’t get the variables k_is_active and k_is_current to be anything other than 0 and so whether I use <cms:menu /> or <cms:nested_pages /> to write out the menu, the active and current classes aren’t applied. The URLs i'm using are as per above
Finally, this is more of an ‘is it possible’ question. Let’s say I had a navigation structure that went something like this:
- Homepage
- Blog (clonable template - redirected to using Menu Maker)
- - Blog post 1 (cloned page)
- - Blog post 2 (cloned page)
- - Blog post 3 (cloned page)
- - Blog post X (cloned page)
When I write out the menu, is it possible for all of the blog posts to be listed as a sub navigation of the blog link? So in HTML, would look something like:
As far as I can see in the docs, you can only write out the children of the nested_pages and not the children of the cloned pages that it can point to.
I can send you the codebase if you need to see it.
Thanks
Daz
I’m trying out some features of Couch that I’ve not used before for an upcoming project and I’ve run into a couple of issues with Nested Pages (AKA Menu Maker) that I’m hoping are easily solvable.
To give a little bit more background I’m testing all of this locally on my dev url which follows the structure ‘http://machine-name.home:5757' and using it on a clonable index.php as per the docs.
The first issue I have is to do with masquerading. Whenever I try to choose masquerade, I get the error ‘This page points to the following location: Cannot masquerade an external link’. This occurs when using a URL with or without Pretty URLs, e.g. http://machine-name/machine-name.home:5757/search1/ or http://machine-name/machine-name.home:5757/search1.php. As far as I can see, this is how the docs explains it should work.
The second issue is to do with the current and active links. Either using Pretty URLs or not, I can’t get the variables k_is_active and k_is_current to be anything other than 0 and so whether I use <cms:menu /> or <cms:nested_pages /> to write out the menu, the active and current classes aren’t applied. The URLs i'm using are as per above
Finally, this is more of an ‘is it possible’ question. Let’s say I had a navigation structure that went something like this:
- Homepage
- Blog (clonable template - redirected to using Menu Maker)
- - Blog post 1 (cloned page)
- - Blog post 2 (cloned page)
- - Blog post 3 (cloned page)
- - Blog post X (cloned page)
When I write out the menu, is it possible for all of the blog posts to be listed as a sub navigation of the blog link? So in HTML, would look something like:
- Code: Select all
<ul>
<li><a href=“#”>Home</a></li>
<li>
<a href=“#”>Blog</a>
<ul>
<li><a href=“#”>Blog post 1</a></li>
<li><a href=“#”>Blog post 2</a></li>
<li><a href=“#”>Blog post 3</a></li>
<li><a href=“#”>Blog post X</a></li>
</ul>
</li>
</ul>
As far as I can see in the docs, you can only write out the children of the nested_pages and not the children of the cloned pages that it can point to.
I can send you the codebase if you need to see it.
Thanks
Daz