How to customize the content set in text as part of tag cq:text property="text"/
We use the tag <cq:text property="text"/> to get the content, which is set in the jcr property "text". Text was set in Richtext component and it has hyper link.
Now, we have to customize the text.
Example:-
Actual Text in 'text' property:-
<p>Click <a data-action="Hyperlink" data-upc-tooltip-type="none" href="/content/www-abc-healthcare-ch/en/offer.html">here</a> for the link</p> <p></p>
After customization in 'text' property:-
<p>Click <a data-action="Hyperlink" data-upc-tooltip-type="none" href="/content/www-abc-healthcare-ch/en/offer">here</a> for the link</p> <p></p>
i.e .html has been removed.
I tried customizing and set back to text attribute using <c:set var="text" value="<CustomizedText>" /> but even after that tag <cq:text property="text"/> retrieves the old content i.e with .html
Please suggest how to override text content, so that the tag <cq:text property="text"/> will print customized text.
Which version of cq? Is Strict Extension Check enabled at http://<host>:<port>/system/console/configMgr/com.day.cq.rewriter.linkchecker.impl.LinkCheckerTra nsformerFactory
Thanks,
Sham
Similar Messages
-
How to list the contents of an OSX directory, and output to text file?
hello there any hints with any known program that does following
I have recorded my music directory to DVD and now i would like to make an .txt file what the dvd contains...cos its way of hand to write all 100xx files by hand...
How to list the contents of an OSX directory, and output to text file?
any prog that does that? any hints?
best regardsThis script makes a hierarchical file listing all files in a folder and subfolder:
Click here to launch Script Editor.
choose folder with prompt "Choose a folder to process..." returning theFolder
set theName to name of (info for theFolder)
set thepath to quoted form of POSIX path of theFolder
set currentIndex to theFolder as string
do shell script "ls -R " & thepath returning theDir
set theDirList to every paragraph of theDir
set newList to {"Contents of folder \"" & theName & "\"" & return & thepath & return & return}
set theFilePrefix to ""
repeat with i from 1 to count of theDirList
set theLine to item i of theDirList
set my text item delimiters to "/"
set theMarker to count of text items of thepath
set theCount to count of text items of theLine
set currentFolder to text item -1 of theLine
set theFolderPrefix to ""
if theCount is greater than theMarker then
set theNestIndex to theCount - theMarker
set theTally to -1
set theFilePrefix to ""
set theSuffix to ""
repeat theNestIndex times
set theFolderPrefix to theFolderPrefix & tab
set theFilePrefix to theFilePrefix & tab
if theTally is -1 then
set theSuffix to text item theTally of theLine & theSuffix
else
set theSuffix to text item theTally of theLine & ":" & theSuffix
end if
set currentIndex to "" & theFolder & theSuffix
set theTally to theTally - 1
end repeat
end if
set my text item delimiters to ""
if theLine is not "" then
if word 1 of theLine is "Volumes" then
set end of newList to theFolderPrefix & "Folder: > " & currentFolder & return
else
try
if not folder of (info for alias (currentIndex & theLine & ":")) then
set end of newList to theFilePrefix & tab & tab & tab & "> " & theLine & return
end if
end try
end if
end if
end repeat
open for access file ((path to desktop as string) & "Contents of folder- " & theName & ".txt") ¬
with write permission returning theFile
write (newList as string) to theFile
close access theFile -
How to read the content of a text file (by character)?
Guys,
Good day!
I'm back just need again your help. Is there anyone knows how to read the content of a text file not by line but by character.
Please help me. Thank you so much in advance.
Jojohttp://java.sun.com/javase/6/docs/api/index.html
package java.io
InputStream.read(): int
Reads the next byte of data from the input stream.
Implementation:
InputStreamReader
An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted. -
How to Customize the Web item " Text Elements"in WAD
Hi All,
Can any one let me know how to customize the web item TEXT ELEMENTS. When we place the web item Text element in the web template, it displays the query details and the info provider details.
I question is I do not want to list all the list that is displayed in the text elements. I want to see only part of the list....can any one whether this is possible or not..if possible how...?
Thanks in Advance,
Hashyes you need to specify the variable name
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TEXTELEMENTS_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="GENERATE_CAPTION" value="BORDER"/>
<param name="GENERATE_LINKS" value=""/>
<param name="SHOW_COMMON_ELEMENTS" value=""/>
<b> <param name="ELEMENT_TYPE_1" value="VARIABLE"/>
<param name="ELEMENT_NAME_1" value="0H_CCTR"/></b> ITEM: TEXTELEMENTS_1
</object>
Regards
Raja -
How to customize the section's content in left bar?
How to customize the section's content in left bar. I hope to change create job's content, recent job's content etc. Or it is impossible?
regards
renHI Renliyuan,
you can use custom web applets (Rss feeds, Html Code or URL) to display different content in action bar.
Feel free to ask more
Regards
Nisman -
When I get messages from Barnes and Noble, the text is blank. If I hit reply or forward, I can then see the content. This only happens with Barnes and Noble. Any suggestions on how to view the content?
I'm sorry, but your sister, unless she had already turned on the "Find my iPhone" feature and the person who took the phone has not disabled it, is out of luck. She should report the theft to local police authorities, including the serial number of her iPhone. While her experience is unfortunate, there are good reasons why Apple cannot do anything else about it.
I hope she gets her phone back.
Best of luck. -
on opening up toast to burn its telling me that the tv standard is set to ntsc but all of my content is in pal format. how to change the content to ntsc seeing i am using final cut 10.
Select the Project in the Browser. Go to the Info section of the Inspector. Click the Modify Settings button. For Video Properties, change the Format from PAL to NTSC. Export again, you'll be fine.
-
How to Customize the Message "No Row Returned" from a Report
Hi,
I've been trying to customize the Message "No Row Returned" from a Report.
First i followed the instructions in Note:183131.1 -
How to Customize the Message "No Row Returned" from a Report
But of course the OWA_UTIL.REDIRECT_URL in this solution did not work (in a portlet) and i found the metalink document 228620.1 which described how to fix it.
So i followed the "fix" in the document above and now my output is,..
"Portlet 38,70711 responded with content-type text/plain when the client was requesting content-type text/html"
So i search in Metalink for the above and come up with,...
Bug 3548276 PORTLET X,Y RESPONDED WITH CONTENT-TYPE TEXT/PLAIN INSTEAD OF TEXT/HTML
And i've read it and read it and read it and read it and can't make heads or tails of what it's saying.
Every "solution" seems to cause another problem that i have to fix. And all i want to do is customize the Message "No Row Returned" from a Report. Please,...does anyone know how to do this?My guess is that it only shows the number of rows it has retrieved. I believe the defailt is for it to only retrieve 50 rows and as you page through your report it retrieves more. So this would just tell you how many rows was retireved, but probably not how many rows the report would contain if you pages to the end. Oracle doesn't really have a notion of total number of rows until the whole result set has been materialized.
-
How to customize the JTable (fonts, colors)
Hi,
I wonder how to customize the font, font style and color of a JTable? Shell I make my own renderer for it, or even the Look&Feel? I hope there is an easier way to do it... Something like CSS for HTML.
I would appreciate some links to the sample code or tutorial as well.
Best regards,
MartinTry making your own cell renderer.
MyCellRenderer implements javax.swing.table.TableCellRenderer{
public MyCellRenderer() {
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable jTable, Object value, boolean isSelected, boolean hasFocus, int row, int col) {
//make a JLabel (you can use html just by setting it as text for the JLabel)
return JLabel;
then just call
myJTable.setDefaultCellRenderer(new MyCellRenderer()); -
How to Customize the Error Message when a user enters a wrong password
Hi Gurus
Pls Help out me that
How to Customize the Error Message when a user enters a wrong password ?
I need the Help to Customize the messege ?
How we can do
Pls Tell me indetailFirstly many appologies I have given you slightly duff information here, I had been editing the file above for email notification texts not logon / password texts.
The file you need is actually a portal .par file and can be found in the deployment/pcd directory. The file you need is called com.sap.portal.runtime.logon.par (with a .bak extension at this time).
You need to copy this file to a local machine and unzip the contents. The files you need to edit are contained in a further jar file which can be found in the \PORTAL-INF\lib directory - it is called umelogonbase.jar. It too needs to be extracted and the file you need to edit is logonMessages_xx.properties (where the xx is the language code you are using).
In this file you will find lines like:
NUMERIC_REQUIRED=Invalid new password (must contain digits)
You need to identify which texts you wish to modify and edit the text to the right of the equals sign. Once complete rezip the umelogonbase.jar file and then the com.sap.portal.runtime.logon.par (this time name it without the .bak extension. Then logon to the portal and upload the new par and you should see your new logon messages.
Haydn -
R12 - How to customize the seeded Purchase Order PDF report
Hi,
We need to customize the layout AND the data of the seeded Purchase Order pdf report that is generated in PO Summary form when user picks drop-down menu Inquire->View Document. I know how to set up the Document Type with a customized layout but I do not know how to update the XML data that feeds the layout.
Thanks, MikeMike,
Please review the following documents.
Note: 374165.1 - How To Customize The PDF Output For Printed Purchase Order Report (Portrait) ?
Note: 406094.1 - How To Diagnose Issues Within Oracle Purchasing PDF File Creation for Printing
Regards,
Hussein -
Hi community
how to transfer the contents of my smartphone to my new iphone, icloud accepts content from other smartphones?
ty for help
OlibIf you haven't set up your new iMac yet use Setup Assistant when you do. If you have, use Migration Assistant http://support.apple.com/kb/HT4889
-
How to extract the content of a mail message?
Friends,,,
How to extract the content of a mail message?
the message does not contain any attachments or images.
its just a plain text..
if i use message.getContent(), in addition of the content it returns headers information also...
but i need only the content of that message...
if i write code like this:
String content = (String) message.getContent();
it gives cast exception...
if the message contains only plain text, no multipart, then which method is useful to extract only the content?
please tell me friends..
thanks in advannce,
regards,
Venkata NaveenMessage.getContent() does not return headers for a simple text/plain
message. If you're getting headers, something else is wrong.
Also, casting the result to String should work.
Most likely the message really isn't a simple text/plain message.
Provide more details and we'll help you figure out what you're
doing wrong.
Also, please read the msgshow.java demo program included with JavaMail. -
How to get the content of a jTextArea?
hi everyone
can some body provide me with some help???
I want to know how to get the content of a jTextArea
it may be a String and i want to use that String to make some applications
I've use this :
String ch=jTextArea.getSelectedText()
but i'm not sure it will work and i'm not sure it will take the text writen inside the jTextArea ... please help
Thankshttp://forum.java.sun.com/thread.jspa?threadID=778988&tstart=0
-
Hi i am using oracle 10g how to view the content of the stored procedure or trigger ?
Hi i am using oracle 10g .How to edit the content of the stored procedure or trigger ?
jklopkjl wrote:
Hi i am using oracle 10g .How to view the content of the stored procedure or trigger ?
query ALL_SOURCE
SQL> desc all_source
Name Null? Type
OWNER VARCHAR2(30)
NAME VARCHAR2(30)
TYPE VARCHAR2(12)
LINE NUMBER
TEXT VARCHAR2(4000)
Maybe you are looking for
-
Some of my friends have 2 or 3 numbers.. My problem is, if they send me a text message, i dont know which number they used, is there any option to display contact number or message detail? im running 10.0.9.348
-
How can I add mp3 files to my audiobooks section on my ipod?
Hi guys, I'm new to itunes and very frustrated with how difficult the program makes it to move files around. What am I missing? I have a couple different books in mp3 format that I have on my ipod currently as a playlist but when I turn shuffle on it
-
Error installing OBIEE 11g on Linux 64 bits - Configuration Assistant fails
Hello, I am trying to install OBISE1 on Oracle Linux 5 - 64 bits. I've followed these steps: 1) Install Oracle DB 2) Install jdk Linux 64 bits (jdk1.7.0) 3) Install WebLogic 4) Install RCU 5) Install OBI 11g (Software only installation) Until here, a
-
WindowedApplication and StageScaleMode.SHOW_ALL issues in 4.5.1 SDK
Hello, hope someone can help me out. I am having an issue updating a project from 4.1 to 4.5.1 SDK and it can be demonstrated in the sample code below. In 4.1 when the window is maximized, it fills the entire screen and scales the content to fit. In
-
Cross tab in reverse? SQL query help
drop table t1; drop table t2; create table t1 (id1 number, id2 number); create table t2 (fk_id number, my_data varchar2(20)); insert into t1 values (1,6); insert into t1 values (2,7); insert into t1 values (3,8); insert into t1 values (4,9); insert i