この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
What will be the sightly code for <CQ:TEXT> . what will the sightly code for below code
<
cq:text
property
=
"image/jcr:description"
placeholder
=
""
tagName
=
"small"
/>
表示
返信
いいね!の合計
This is an example for the placeholder: <section class="cq-placeholder" data-emptytext="Enter Title"/>
For the component you could use this <sly> ${properties.image.jcr:description @ content = 'text'} </sly> even if the default context is 'text'
表示
返信
いいね!の合計
Actually there is a table component in jsp with below code
Table component
Draws a HTML table
--%><%@include file="/libs/foundation/global.jsp"%><%
String classicPlaceholder = "<img src=\"/libs/cq/ui/resources/0.gif\" class=\"cq-table-placeholder\" alt=\"\">";
String placeholder = Placeholder.getDefaultPlaceholder(slingRequest, component, classicPlaceholder);
%><cq:text property="tableData"
escapeXml="false"
placeholder="<%= placeholder %>"
/>
Need to convert in sightly so what will be the sightly code for above
表示
返信
いいね!の合計
you can use the below options depending on your need.
${richtext.text@ context='html'}
${richtext.text @ context='text'}
${richtext.text@ context='js'}
${richtext.text@ context='css'}
${richtext.text@ context='unsafe'} // allows everything
表示
返信
いいね!の合計
Draws a HTML table
--%><%@include file="/libs/foundation/global.jsp"%><%
String classicPlaceholder = "<img src=\"/libs/cq/ui/resources/0.gif\" class=\"cq-table-placeholder\" alt=\"\">";
String placeholder = Placeholder.getDefaultPlaceholder(slingRequest, component, classicPlaceholder);
%><cq:text property="tableData"
escapeXml="false"
placeholder="<%= placeholder %>"
/>
Need to convert in sightly so what will be the sightly code for above
表示
返信
いいね!の合計
Use Sightly helper class to construct a java object and use it to render the table. Below is one simple reference to build from.
http://adobeaemclub.com/access-osgi-ser%C2%ADvice-from-the-wcmuse-class-in-sightly
表示
返信
いいね!の合計