question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: Add important information to `Pages` data source

See original GitHub issue

I’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.).

  • Disabled
  • Target
  • Hidden (Perhaps this is supposed to be handled via Visible but not only is the naming confusing, but it also does not seem to match. See the following sample data from dnndave.com where Visible shows false but the page is clearly visible to All Users on 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

  1. Build a visual query using Source > Pages.
  2. Run query.
  3. 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
iJungleboycommented, Jan 30, 2023

I also added the following properties

  1. Parent
  2. Children

These are also IEntity lists, so you can navigate the object tree 🚀

2reactions
iJungleboycommented, Jan 31, 2023

Just added LinkTarget which will be "" or "_blank" 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Source Page - Tableau
Tableau Desktop and Web Authoring Help · Add a Calculated Column to a View · Calculate Z-scores · Visualize Key Progress Indicators ·...
Read more >
Understand data sources for canvas apps - Power Apps
In Power Apps, most canvas apps use external information stored in cloud services called Data Sources. A common example is a table in...
Read more >
Feature engineering in Workspace Feature Store
Learn how to create and work with feature tables in the Workspace Feature Store in Databricks including how to update, control access, ...
Read more >
Data source management (preview) - Power Platform
Select a data source and then select Settings from the top menu bar to see the data source properties. You can view and...
Read more >
Add data—ArcGIS Insights - Esri Documentation
You can add data to your workbook page from various data sources, allowing you to quickly find the data you need for your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found