How to import content maintained in a one page as a paragraph in another page
 |
To access the content of another page the current user must have access rights to read that page. |
The attached <paragraph>.jsp does the following:
- get the handle for the page containing the column of interest (as provided by the edit dialog)
- get the column identifier (as defined by the edit dialog)
- load the page from the HierarchyManager and get the child representing the column
- iterate through the children of the column
- for each child extract the paragraph template
- assemble the URL for the paragraph
- set the necessary Attributes
- get the RequestDispatcher from the ServletContext for that URl
- include the request in the RequestDispatcher
Done.
Be aware not to create circular inclusions!
Attached are the jsp file for the paragraph and the exported dialog tree.
What you must edit:
- edit the column identifier in the dialog "tabColImport/contentColumn/options/*/values"
- create a paragraph entry mapping and identifying the dialog and jsp
In its previous incarnation on JspWiki, this page was last edited on Feb 9, 2007 10:13:32 AM by BorisKraft
Other known authors include :