Access Content as a Service | HCL Digital Experience
To access your Content as a Service pages, you can write links to your content that specifies the CaaS page as target.
When you construct the URLs for your links to web content, you can use the urile URL parameter to identify the content item. To access the content item by using the CaaS page, use one of the following methods:
- Include the friendly name of the CaaS page
in the URL and add the URL parameter
current=true
to the URL. - Specify the unique name of the CaaS page
(
ibm.portal.caas.page
) in the URL by using the "page" URL parameter.
Generic URLs
- Addressing the CaaS page from a virtual portal by using the page friendly name:
http://hostname/context_root/virtual_portal_context/caas?current=true&urile=wcm:path:library/site_area_path/content&mime-type=mime_type&pagedesign=library/folder/presentation_template
- Addressing the CaaS page from a virtual portal by using the page parameter:
http://hostname/context_root_poc/virtual_portal_context?page=ibm.portal.caas.page&urile=wcm:path:library/site_area_path/content&mime-type=mime_type&pagedesign=library/folder/presentation_template
Example URLs
A URL to render the content item Item1 that is stored in the site area SiteArea1 of Library1 by applying a JSON presentation template that is named Presentation1 from the library that is named Library2 looks like the following examples:
- Addressing the CaaS page from a virtual portal by using the page friendly name:
http://example.com/wps/myportal/vp1/caas?current=true&urile=wcm:path:Library1/SiteArea1/Item1&mime-type=application/json&pagedesign=Library2/Presentation1
- Addressing the CaaS page from a virtual portal by using the page parameter:
http://example.com/mypoc/vp1?page=ibm.portal.caas.page&urile=wcm:path:Library1/SiteArea1/Item1&mime-type=application/json&pagedesign=Library2/Presentation1
http://example.com/wps/mypoc?urile=wcm:path:/Web+Content/News/News1&page=ibm.portal.caas.page
http://example.com/wps/mypoc?urile=wcm:path:/Web+Content/News/News1&page=ibm.portal.caas.page&mime-type=application/json