How to change CQ component(text) width?


hi,

 

i want create page using cq text component.

 

------what want ------------------------------------------------------------------------------

summary:    summary content

------------------------------------------------------------------------------------------ --------

 

but when put include text component, automatically move next line below image.

1.jpg

 

 

do know how change width of text component,  or put next text without moving next line?

this actual code page.

 

summary:  <cq:include path="text" resourcetype="advance/components/text"/>

hi again apark,

 

could example move "summary" jsp of text component , try code like:

 

<% string summary=properties.get("summary",string.class); %>

 

summary: <%=summary%>

 

or more advanced code text component can this:

 

<%@ page import="com.day.cq.wcm.api.wcmmode"%>

<% string summary=properties.get("summary",string.class); %>

 

<% if  (wcmmode.fromrequest(request) == wcmmode.edit && summary == null)  {%>

     please define summary

<%} else { %>

    summary: <%=summary%>

<%}%>

 

in case "summary" visible in case when define summary property in dialog component.

 

regards,

kasq



More discussions in Archived Spaces


adobe

Comments

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

uppercase letters in url - Joomla! Forum - community, help and support

Joomla! Update is not offering Joomla 3 - Joomla! Forum - community, help and support