Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Reusing content from one web page in another

$
0
0

1. use PageUrls.ParseUrl(uri.LocalPath) to get a UrlData object which contais PageId

2. Page content are stores in instances of IPagePlaceholderContent which holds a reference to a PageId and PlaceHolderId. By using the PageId from step 1, you just need to query for the specific placeholders you need, and then extract content via the IPagePlaceholderContent.Content property.


Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>