Feature: Add important information to `Pages` data source
See original GitHub issueI’m submitting a … [x] feature request
…about
[x] .NET API (ToSic.Sxc.DataSources > Pages)
Current behavior Currently, the following page information is available: https://github.com/2sic/2sxc/blob/21d3f020d68b2bd609bd243fd07148a8e39e9000/Src/Sxc/ToSic.Sxc/DataSources/CmsBases/PagesBase.cs#L55-L67
Desired behavior There are key pieces of information missing in order to utilize this API effectively for certain use cases (e.g., building footer nav/menu, showing site map, etc.).
DisabledTargetHidden(Perhaps this is supposed to be handled viaVisiblebut not only is the naming confusing, but it also does not seem to match. See the following sample data from dnndave.com whereVisibleshowsfalsebut the page is clearly visible toAll Userson the site.)
{
"Title": "DNN Dave Videos",
"Name": "Videos",
"ParentId": -1,
"Visible": false,
"Path": "//Videos",
"Url": "https://dnndave.com/Videos",
"Id": 21,
"Guid": "daa1517c-2a1e-4a1f-b42d-2463c05ece46",
"Modified": "2021-12-27T15:33:40.05Z",
"Created": "2021-05-21T14:15:58.593Z"
}
Furthermore, it is not clear if page permissions are respected. For instance, if a user does not have permission to view the page, will it show in returned page data?
Instructions to Reproduce the Problem
- Build a visual query using
Source > Pages. - Run query.
- View results.
Why change the behavior? One of the use cases for using the Pages source would be to build navigation menus or site maps. Currently, it is impossible to do it fully “right” (like you can using DDR Menu.
Your environment n/a
- 2sxc version(s): 14.07.04
- Browser: [all]
- DNN: [all]
- Language: [any/all]
Anything you would like to add I realize this is a completely different context, but it would be ideal to follow the same data model as provided currently in DDRMenu: https://docs.dnncommunity.org/content/tutorials/themes/theme-objects/ddrmenu/ddrmenu-razor-templates-overview/index.html#data-model
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:13 (6 by maintainers)

Top Related StackOverflow Question
I also added the following properties
These are also IEntity lists, so you can navigate the object tree 🚀
Just added
LinkTargetwhich will be""or"_blank"😃