Show in Navigation not working
Hi Ivan,
I have downloaded new Sitefinity4.0 release , and installed on 3/18/11. But as I had informed you earlier that Show in Navigation is working as expected in Sitefinity4.0( Show in Navigation is unchecked but still that page is in navigation), and you replied that this a bug and you are going to resolve it in next release, but I found that the bug is still not resolve in latest release too. Please let me know when this will get fixed.
Thanks
Rashmi
Hello Rashmi,
I am not able to replicate the issue using the SP1 release and the latest internal build.
Regards,
Ivan Dimitrov
the Telerik team
Hi Ivan,
This isn't really a bug, but I've noticed when you view/edit the page in the backend, the navigation control ignores the Show In Navigation property. So as per your video, if you edited page2, hidden would be displayed in the navigation control on the screen.
Euan
Hi Ivan,
I followed all these steps:
I am not watching my page from backend. I am loading site through IIS.
Please find the attached image, I have circled the link in left hand side, these link navigate to the pages, I set “Show in Navigation” property of all these pages False, but still pages links are in visible in Navigation Link.
Please let me know if i am missing any thing.
Thanks
Rashmi.
Hello Euan,
oNodes = SiteMap.CurrentNode.ParentNode.ChildNodes SiteMap.CurrentNode.ParentNode.ChildNodes
Hi Ivan
I am using below line of code
return number of nodes (that contains url of pages), that should be visible in Navigation.
This is working fine with Sitefinity 3.7, i.e if any page's property "Show in Navigation" is false then that page is not get count, only those page get count whose "Show in Navigation" property set True.
But in Sitefintiy 4.0, even though "Show in Navigation" property is set false for any page, that page get counted.
In my case it counts almost all the page belongs to particular group.
I also tried by setting "Visible" Property False for the page that I don't want to show in navigation, but it's not worked.
Thanks
Rashmi
Hello,
Please use the code snippet that I gave you in my last response.
Greetings,
Ivan Dimitrov
the Telerik team
Hi Ivan
I am not able to understand any thing with this single line of code.
can you please send me complete code to get the count of page to show in navigation.
also my code is in vb.net.
Thanks
Rashmi
Hi Euan,
Please take a look at Pages API.
Best wishes,
Ivan Dimitrov
the Telerik team
Hi Ivan, App
I tried with code you provided me, but i am getting below error.
Telerik.Sitefinity.Pages.Model.PageNode, Telerik.Sitefinity.Model was not granted View in Pages for principals with IDs 00000000-0000-0000-0000-000000000000
I repalce my code with following line of code. Error is coming at this line only.
.WorkWith().Pages().Where(Function(p) p.ShowInNavigation = True).Get().ToList
Thanks
Rashmi
We just updated to 4.0 SP1 and now the navigation control (horizontal drop-down out of the box) is showing the pages that should be hidden (ones with the box un-checked "Show In Navigation") while in edit mode in the back-end only. The front end look is working as expected.
This was working correctly before adding the SP 1. What a step back... Why should I have to write code for a workaround now? Very frustrating. Did I miss something?
Hi Laura,
The issues has been fixed and you will not experience issues with Q1 release. Here is the PITS issue
www.telerik.com/.../pits.aspx
Kind regards,
Ivan Dimitrov
the Telerik team