-
Notifications
You must be signed in to change notification settings - Fork 10
TreeNode.ToPageIdentity() Extension
Trevor Fayas edited this page Jan 2, 2022
·
1 revision
As we seek in the Baseline to not reference any Kentico APIs, including the TreeNode, we instead have the PageIdentity
class, which contains the basic identifiers of a page.
To facilitate easily going from a TreeNode
to a PageIdentity
, we have an Extension method treeNode.ToPageIdentity()
(in namespace Generic.Libraries.Extensions
). This converts a TreeNode to the PageIdentity.
When going from a Page Template to a View Component, you can easily pass this PageIdentity model to your view component and have all the context you should need to pull in related pages (either child items by path, or Related Pages by NodeID, etc).
See this in work on the Tab Parent Page Template and it's View Component.
- Solution architecture
- Feature Folders
- Page Template View Component
- Interface Model Implementation Map
- Cache Dependency Building and Async
- Post Redirect Get
- Front End Asset (CSS/JS Parsing
- Navigation
- Page Builder Header/Footer
- SEO Meta Data
- Navigation Redirection
- Page Types
- Partial Widget Page / ShareableContent
- Widgets
- Account Management
- External Authentication/Two Factor Authentication
- Ecommerce Ready
- Error Pages
- Sitemap
- Robots.txt
- Form Bootstrapification
- Bundling css/javascript + Gzip
- Bootstrap and Containers