This project is read-only.

How to determine page id in a control?

Topics: Controls
Jul 30, 2008 at 4:46 AM
Newbie question here :)

I want to amend the pagelist control so that it only displays child pages of the current page. I'm thinking that I can achieve this by adding a check in the BindPages function to check that the page.Parent is equal to the id of the current page but I'm having difficulty working out how to get to the id of the current page (that is the page being rendered).

Be grateful if someone could provide some pointers.

Aug 17, 2008 at 3:44 PM
Any ideas here?  I am trying to do the same thing.
Aug 21, 2008 at 4:50 PM

I believe page.Id in pagelist.cs should provide what you need.   It's part of BlogEngine.Core.Page.Id.