How to implement a simple paragraph system in CQ
hi,
i have problems in implementing paragraph system in cq.
i have implement in cq 4.2.
does 1 explain me in simple words?
thanks lot in advance, seboeh
i found solution.
i implement paragraph system now.
i shortly describe important things.
1. spooler script should not have carriage return
2. component spooling works following link.
<img src='<% cc.getpage().gethandle() + ".spool." + cc.getqualident() + ".jsp" %>' width=200px>
further on, in "component definitions" script "spool" should written globbing. not "*spool" or "spool*".
this reason, why have cc.getqualident() after spool in img-tag.
3. further on important paragraph system include following initialization.
<%
style actstyle = null;
%>
<cfc:initcomponent cellid="body" componentid="/libs/components/body">
<% actstyle = componentcontext.getstyle(); %>
</cfc:initcomponent>
<cfc:includecomponent cellid="body" componentid="/libs/components/body" />
<cfc:includecomponent cellid="parsys"
componentid="/apps/emb/components/parsys" />
4. in side spooler script, atom by:
string[] selectors = cqreq.getselectors();
string qualident = selectors[1] + "." + selectors[2];
container local = (container) actpage.getelement(qualident);
atom atom = local.getatom("myimagesrc");
where "myimagesrc" atom.xml content definition.
the selcorts[2] either "single" or somthing "parsys.0001".
5. in simple components, need kind of code initialize edit bar.
<%
componentcontext cc = (componentcontext) request.getattribute("componentcontext");
componentinfo ci = cc.getcomponentinfo();
%>
<cfc:editbar
parname="<%= cc.getcontainerlist() %>"
parnum="<%= cc.getcontainerlabel() %>"
storagepre="<%= cc.getstoragepre() %>"
dialogany="<%= ci.getcontentdialog() %>"
/>
i hope creating paragraph system.
kind regards, seboeh@web.de
More discussions in Archived Spaces
adobe
Comments
Post a Comment