Hi Jay,
I just did something similar. Basically I just created an "include"
paragraph, the dialog for this paragraph has 4 parameters: link,
collectionName, beginIndex, endIndex.
link: the page u want to grab content from
collectionName: in Magnolia's example, it's mainColumnParagraphs.
u may have more than one collectionName in one page, depends on your
template.
beginIndex, endIndex: 0 based index. u can choose which
paragraph(s) to be included.
The following is some code from my jsp file. Hope it will give u some idea.
Cheers,
Richard
([EMAIL PROTECTED])
<jsp:scriptlet>
<![CDATA[
// get parameter from dialog
String link =
Resource.getLocalContentNode(request).getNodeData("link").getString();
String collectionName =
Resource.getLocalContentNode(request).getNodeData("collectionName").getString();
HierarchyManager hm=SessionAccessControl.getHierarchyManager(request);
Content content = hm.getContent(link).getContent(collectionName);
Collection list = content.getChildren(ItemType.CONTENTNODE,
ContentHandler.SORT_BY_SEQUENCE);
Iterator it = list.iterator();
Resource.setLocalContentNodeCollectionName(request, collectionName);
while(it.hasNext()) {
Content cc = (Content) it.next();
Resource.setLocalContentNode(request, cc);
]]>
</jsp:scriptlet>
<!-- include this paragraph -->
<cms:includeTemplate />
<jsp:scriptlet>
<![CDATA[
} // end of while
]]>
</jsp:scriptlet>
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------