Hi, The idea is simple, 1. Create a version repository and declare a data type as CLOB. 2. Once published, write an "RQLQueryForEach" droplet to render the content. "https://docs.oracle.com/cd/E26180_01/Platform.94/PageDevGuide/html/s1345rqlqueryforeach01.html" ~regards, Kavimani Gunasekaran
Thank you Kavimani for helping.
Actually no need to create new versioned repository. ATG having OOTB repository called ContentManagement Repository which helps to do the page static content publishment.
but concern is, once we publish the content from BCC from contentmanagement repository, how do we render this data in page.
do we need to use custom tags or any other OOTB droplets.
For displaying the static content from content repository you can follow the below logic-
1) Write a request scoped component which has -
a map data-type property (it will contain the static text key-value)
a set data-type property to hold the page id
And then generate the getters-setters of above properties
2) Write a droplet and in the service method of it write the below logic-
Get a local parameter of String type -'pageName' from the request.
Get an object parameter- 'requestComponent' from the request and save it in a variable of type component which we have created above in step 1.
Now Check if map contains page name then no need to call repository, assign the request scope value in map.
Handle if request is coming from included page from jsp then need to also add keys for page in which page in included.
Set the output parameter if staticTexts map is not empty
3) Write a jsp where invoke the droplet we have written in step 2 and-
Pass the input parameter pageName.
Assign the value of previous page in request component for avoid of overriding the keys in including page.
And fetch the Map of static texts of respective pageName.
Do the above steps and let me know if you need any help.
Hi, can't you use RQLQueryForEach droplet ? ~regards, Kavimani Gunasekaran