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

I have a senario that I'd like some advice on, with regards to what is possible. The senario is as follows.

  1. I have a web page with a number of editable content blocks.
  2. I would like to resolve the URL of that web page (referenced from an external SQL database) into a PageId.
  3. I would like to use that PageId to query the C1 database for a specific content block from that web page.
  4. I would like to display the text from that content block on another web page.

I'm now quite comfortable with XSLT to do this sort of thing, but to build out this scenario I need to know:

  • How do I resolve the URL of a web page into a PageId?
  • How do I view the C1 database within the Functions perspective of C1, in order to select data from it to use in a new function?

Any help or advice will gratefully received.


Viewing all articles
Browse latest Browse all 2540

Trending Articles



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