How to add text to the carousel images ?
<%--
Copyright 1997-2010 Day Management AG
Barfuesserplatz 6, 4001 Basel, Switzerland
All Rights Reserved.
This software is the confidential and proprietary information of
Day Management AG, ("Confidential Information"). You shall not
disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement you entered into
with Day.
==============================================================================
Carousel component
--%><%@include file="/libs/foundation/global.jsp"%><%
%><%@ page import="java.util.Iterator,
java.util.LinkedHashMap,
java.util.Map,
com.day.cq.commons.Doctype,
com.day.cq.wcm.api.WCMMode,
com.day.cq.wcm.api.components.DropTarget,
com.day.cq.wcm.foundation.Image,
com.day.cq.wcm.foundation.List,
com.day.text.Text"
%><%@include file="/libs/foundation/global.jsp"%><%
%><cq:includeClientLib js="cq.jquery"/><%
String xs = Doctype.isXHTML(request) ? "/" : "";
if (WCMMode.fromRequest(request) == WCMMode.EDIT) {
//drop target css class = dd prefix + name of the drop target in the edit config
String ddClassName = DropTarget.CSS_CLASS_PREFIX + "pages";
%><div class="<%= ddClassName %>"><%
// initialize the list
%><cq:include script="init.jsp"/><%
List list = (List)request.getAttribute("list");
if (!list.isEmpty()) {
// config options
int playDelay = properties.get("playSpeed", 6000);
int transTime = properties.get("transTime", 1000);
// todo: make default designeable
String controlsType = properties.get("controlsType", "bc");
boolean showControls = "pn".equals(controlsType);
if (showControls) {
controlsType = "";
} else {
controlsType = "-" + controlsType;
// first shove all slides into a map in order to calculate distinct ids
Map<String, Slide> slides = new LinkedHashMap<String, Slide>();
Iterator<Page> items = list.getPages();
String pfx = "cqc-" + Text.getName(resource.getPath()) + "-";
while (items.hasNext()) {
Slide slide = new Slide(items.next());
String name = pfx + slide.name;
int idx = 0;
while (slides.containsKey(name)) {
name = pfx + slide.name + (idx++);
slide.name = name;
// prepend context path to img
slide.img = request.getContextPath() + slide.img;
slides.put(name, slide);
%><div class="cq-carousel">
<var title="play-delay"><%= playDelay %></var>
<var title="transition-time"><%= transTime %></var>
<%-- write the actual slides --%>
<div class="cq-carousel-banners" >
<c:forEach var="slide" varStatus="loop" items="<%= slides.values() %>">
<div style="${loop.first ? "left: 0px; opacity: 1;" : "left: -1000px; opacity: 0;"}" id="${slide.name}" class="cq-carousel-banner-item">
<c:if test="${!empty slide.img}">
<a href="${slide.path}.html" title="${slide.title}">
<img src="/etc/designs/default/0.gif" style="background-image:url(${slide.img})" alt="${slide.title}"<%= xs %>>
</a>
</c:if>
<h3>${slide.title}</h3>
<p>${slide.desc}<br<%= xs %>>
<a href="${slide.path}.html">Read More</a>
</p>
</div>
</c:forEach>
</div>
<%-- defines the controls --%>
<c:if test="<%= showControls %>">
<div class="cq-carousel-controls">
<a class="cq-carousel-control-prev" href="#" style="display:none"></a>
<a class="cq-carousel-control-next" href="#" style="display:none"></a>
</div>
</c:if>
<%-- write the switches, also needed when disabled --%>
<div class="cq-carousel-banner-switches<%= controlsType %>">
<ul class="cq-carousel-banner-switch">
<c:forEach var="slide" varStatus="loop" items="<%= slides.values() %>">
<li><a class="${loop.first ? "cq-carousel-active" : ""}" title="${slide.title}" href="#${slide.name}"><img src="/etc/designs/default/0.gif" alt="0"<%= xs %>></a></li>
</c:forEach>
</ul>
</div>
</div><%
} else {
if (WCMMode.fromRequest(request) == WCMMode.EDIT){
%><img src="/libs/cq/ui/resources/0.gif" class="cq-carousel-placeholder" alt=""><%
if (WCMMode.fromRequest(request) == WCMMode.EDIT) {
%></div><%
%><%!
* Container class for slides
public static final class Slide {
private final Page page;
private String img = "";
private String title = "";
private String name = "";
private String desc = "";
private String path = "";
private Slide(Page page) {
this.page = page;
title = page.getTitle();
desc = page.getDescription();
if (desc == null) {
desc = "";
path = page.getPath();
// currently we just check if "image" resource is present
Resource r = page.getContentResource("image");
if (r != null) {
Image image = new Image(r);
img = page.getPath() + ".img.png" + image.getSuffix();
name = page.getName();
public Page getPage() {
return page;
public String getImg() {
return img;
public String getTitle() {
return title;
public String getName() {
return name;
public String getDesc() {
return desc;
public String getPath() {
return path;
%>
check example BCALV_GRID_08 if still with doubts , come back and i will try help you.
Similar Messages
-
How to add text to the summary
I wanted to add a text to my summ total on my report.
The forum told me to add a boiler plate text item. However this item displays on every page.. I want it to only display where the summary is. I tried using anchors but it will not attach to the summary item.. Help
howardHi Howard,
I guess you are referring to this post:
How do i add text to the summary
First make sure that you place the boilerplate exactly where you had (or currently have) the summary column, ie, in the SAME frame or repeating frame.
Second, open the property inspector for your summary column. Find the properties "Print Object On" and "Base Printing on", and make sure that both of these are the same for your boilerpate as for your summary column.
Navneet. -
How to add text to the block diagram
How do you add plain text to the block diagram for documentation and can I change the background color to yelllow or something else that may be helpful? see image below
Windows is a 64 bit extension to a 32 bit graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company that can't stand 1 bit of competition. Byte that Microsoft!
Solved!
Go to Solution.Just double-click in an emtpy area and start typing. Use the coloring tool to color the text background.
(there is also a "free label" in the decorations palette, but that seems like a detour )
LabVIEW Champion . Do more with less code and in less time . -
How to add texts to the Header Text in the PO header
Hi
In our system, some already added remarks are appearing in the PO header text field when i open a PO. I wanted to edit the remarks appearing in the PO header as a default. I wanted to know where these predefined texts are filled in. Appriciate if you can help me findout the same.
Thanks
Venkat.Hi
In the above said configuraiton path, they have mentioned "Purchase order" in the source object and the "Header Text" in the source text.
But i wanted to konw where the below mentioned genereic Notes/Remarks will be entered. For all the purchase orders, this text is autmatically get copied into the header text. i wanted to know from where it is originating and where we are maintaining.
"Notes / Remarks :
Vendor's signature on the attached PO terms and conditions is an integral part of this PO
All documents should have a PO number
Invoices should be submitted to the attention of the Finance department
Please attach a PO copy with all claims to avoid delay in receiving payment.?" -
How to add text to the standard iPad wallpaper
We have thousands of iPads in our business, all controlled by MobileIron. We would like to put a message on all the iPads pertains to password policy.
The way we propose is to take a copy of the standard wallpaper, add the message to that using a Paint like program, then use that as the wallpaper for the lock screen.
However, we can't find a way to add a wallpaper to those which are stored on the iPad.
Does anyone know how we can achieve this - or have any other ideas for how to put a message on the lock screen, which can easily be rolled out to many devices.
ThanksYou can't add to the wallpapers that are stored on the phone but you can use any picture stored on the device as the lock screen wallpaper. Can't think of any to automate the process, though.
-
How to add text to the start of the subject for email sent to wiki mail
When an email is sent to the group wiki email address (groupname-wiki@serverurl), I would like for the subject of the email to have \[groupname-wiki\] added to the beginning of the text. Can anyone suggest to me how to do this? What configuration file do I need to be looking at?
Thank you.
Message was edited by: Ixitar
Message was edited by: IxitarThis sort of thing can be done with procmail which is included with the SLS. However, the section for these aliases in /etc/aliases is auto-generated, and it gets reset if you mess with it. I think it's not possible to change it directly.
What you could do, though, is leave the auto-generated stuff alone, and ignore the main address of the mailing list, and put your own alias in first, that rewrites the subject line before forwarding to the main wiki alias. Then tell people to use the list that you want to have them use.
For example, two lines in /etc/aliases that you'd use:
================
acmegroup: "| /usr/bin/procmail -m /opt/postfix/procmail-tag.rc {acmegroup} acmegroup-wiki"
### DO NOT MANUALLY EDIT THIS SECTION ###
# This section is automatically generated
acmegroup-wiki: , teamsserver@localhost, [email protected]
================
You need to learn how to write procmail code, but for this example, the tag.rc file you'd save in /opt/postfix looks like:
http://assets.cogley.info/procmail-tag.rc -
Hello, i'm a beginner in photoshop.
I want to add text to my gif in animation frame, but somehow the text look transparent even though i already use black color for the text.
Could someone give me tutorial to how to add text to the gif and then make some kind of a subtitle?
Thanks..So, if i want to make the text appear in layer 1-10 only, i only have to put the text layer above layer 10 right?
Do you mean 'Frame 1 - 10'? If you want the text to appear in Frames 1 - 10, you have to add the text to all frames from 1 - 10 above your image layer.
But what if then i want to make a new text for layer 11-20? Wouldn't the text appear in layer 1-10 as well? How to separate the text then?
If you want new text for Frame 11-20, you have to create a text layer in Frames 11 - 20 and change the text that you want to show in 11-20 frames. -
How To Add Text Outside Of The Spread Sheet Grid?
The data in the SS has been entered and saved. I want to add text below the grid as there is room to do so.
Hello
You may open the Tools palette (with the red suitcase) then select the "huge A" icon to create a text frame in which you will be able to enter text.
An other soluce would be to create a WP or a Draw document, create a SS frame on it, then copy paste your existing SS into the SS frame.
At last, enter text in the free space.
Yvan KOENIG (from FRANCE vendredi 25 août 2006 21:55:19) -
Hi there,
As a new user of an Macbook, and iMovie, I cannot figure out how to add texts to my movies. I do understand that I can add titles, but that doesn't allow me to change positions nor allows me to edit the font in the extent that I want to.
Naturally I browsed the web, and the only conclusion I can draw is that it is not possible (yet) to add plain texts to your movie. Is this correct?
If this is the case, do you use some other programs to circumvent this limitation in iMovie?
Thanks for your help!in imovie 10, look at the bottom left hand corner there should be:
Content and Backgrounds
Titles
Tranistions
This is also known as the content libary
Click on titles and they should appear, it works for me. -
How to add Video on the OAF page like youtube ?
Any one know how to add Video on the page?
If you are getting HTML code from one of these slideshow.com places, you can add this code to your iWeb pages with a little bit of work. Two things to keep in mind...1. No way to do this via iWeb directly, so it involves editing the published html files, and 2. Because iWeb republishes the html files whenever you update the your webpage, you will lose your changes and have to redo them to add your slideshows back.
The general directions are as follows...
1. Decide where you want your slideshow and know exactly what dimensions you need.
2. Insert a text box onto your page and adjust its size to exactly your dimensions.
3. Type in some uniquely identifiable text like, "SLIDESHOWHERE" without changing the font or anything else...just type it in.
4. Publish your page with iWeb.
5. Find the html file associated with your published page (either on your iDisk or in a folder depending on how you published) and open it in any text editor (like Microsoft Word, or Textedit, or anything). You may need to set your text editor to "ignore rich text" or to "show HTML source".
6. Scroll through the html file and locate your placeholder text, e.g. "SLIDESHOWHERE".
7. Replace the placeholder text with your html code and save your page.
That's it. You should see your slideshow element show up in Safari where you placed the text box in iWeb! -
Reg:How to add fields to the scripts in detail
How to add fields to the scripts in detail.
Plz give me one example help me out.Hi
add fields to the scripts by sending that field between two &s.
for example if u want to add lifnr of lfa1 table then pass field like this.
&wa_lfa1-lifnr&.here wa_lfa1 is work area for internal table it_lfa1.
if name1 then &wa_lfa1-name1&
in this way you can add fields to the script under any window.
i am sending one example program for scripts.
&--structure declaration--
TYPES:BEGIN OF ST_LFA1,
LIFNR TYPE LFA1-LIFNR,
NAME1 TYPE LFA1-NAME1,
LAND1 TYPE LFA1-LAND1,
ORT01 TYPE ORT01,
REGIO TYPE REGIO,
END OF ST_LFA1.
TYPES:BEGIN OF ST_EKKO,
EBELN TYPE EKKO-EBELN,
BUKRS TYPE EKKO-BUKRS,
AEDAT TYPE EKKO-AEDAT,
ERNAM TYPE EKKO-ERNAM,
BSTYP TYPE EKKO-BSTYP,
LIFNR TYPE EKKO-LIFNR,
END OF ST_EKKO.
TYPES:BEGIN OF ST_EKPO,
EBELN TYPE EKPO-EBELN,
EBELP TYPE EKPO-EBELP,
LOEKZ TYPE EKPO-LOEKZ,
AEDAT TYPE EKPO-AEDAT,
MATNR TYPE EKPO-MATNR,
NETWR TYPE EKPO-NETWR,
END OF ST_EKPO.
&--internal table,work area declaration--
DATA:WA_LFA1 TYPE ST_LFA1,
IT_LFA1 TYPE STANDARD TABLE OF ST_LFA1,
WA_EKKO TYPE ST_EKKO,
IT_EKKO TYPE STANDARD TABLE OF ST_EKKO,
WA_EKPO TYPE ST_EKPO,
IT_EKPO TYPE STANDARD TABLE OF ST_EKPO.
&--data declaration--
DATA:TOTAL TYPE EKPO-NETWR,
V_EBELN TYPE EKKO-EBELN.
data: v_item(20) type c.
&--parameter for purchase document number--
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS P_PURDOC LIKE V_EBELN.
SELECTION-SCREEN END OF BLOCK B1.
START-OF-SELECTION.
PERFORM GET_DATA_FROM_EKKO.
PERFORM GET_DATA_FROM_LFA1.
PERFORM GET_DATA_FROM_EKPO.
&--grand total--
LOOP AT IT_EKPO INTO WA_EKPO.
TOTAL = TOTAL + WA_EKPO-NETWR.
CLEAR WA_EKPO.
ENDLOOP.
&--open form--
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DEVICE = 'PRINTER'
FORM = 'Z_50886_VENDOR'
LANGUAGE = SY-LANGU
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
MAIL_OPTIONS = 6
ARCHIVE_ERROR = 7
INVALID_FAX_NUMBER = 8
MORE_PARAMS_NEEDED_IN_BATCH = 9
SPOOL_ERROR = 10
CODEPAGE = 11
OTHERS = 12
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
&--write form for header details--
READ TABLE IT_EKKO INTO WA_EKKO INDEX 1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'HEAD'
WINDOW = 'HEADER'
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
&--write form for item details--
LOOP AT IT_EKPO INTO WA_EKPO.
concatenate wa_ekko-ebeln wa_ekpo-ebelp into v_item.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ITEM'
WINDOW = 'MAIN'
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
&--write form for vendor details--
READ TABLE IT_LFA1 INTO WA_LFA1 INDEX 1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'VENDOR'
WINDOW = 'ADDRESS'
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
&--write form for grand total--
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'TOTAL'
EXCEPTIONS
ELEMENT = 1
FUNCTION = 2
TYPE = 3
UNOPENED = 4
UNSTARTED = 5
WINDOW = 6
BAD_PAGEFORMAT_FOR_PRINT = 7
SPOOL_ERROR = 8
CODEPAGE = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
&--close form--
CALL FUNCTION 'CLOSE_FORM'
EXCEPTIONS
UNOPENED = 1
BAD_PAGEFORMAT_FOR_PRINT = 2
SEND_ERROR = 3
SPOOL_ERROR = 4
CODEPAGE = 5
OTHERS = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form get_data_from_ekko
FORM GET_DATA_FROM_EKKO .
SELECT EBELN
BUKRS
AEDAT
ERNAM
BSTYP
LIFNR
FROM EKKO INTO TABLE IT_EKKO WHERE EBELN = P_PURDOC.
ENDFORM. " get_data_from_ekko
*& Form get_data_from_lfa1
FORM GET_DATA_FROM_LFA1 .
IF NOT IT_EKKO[] IS INITIAL.
SELECT LIFNR
NAME1
LAND1
ORT01
REGIO
FROM LFA1 INTO TABLE IT_LFA1 FOR ALL ENTRIES IN IT_EKKO WHERE
LIFNR = IT_EKKO-LIFNR.
ENDIF.
ENDFORM. " get_data_from_lfa1
*& Form get_data_from_ekpo
FORM GET_DATA_FROM_EKPO .
IF NOT IT_EKKO[] IS INITIAL.
SELECT EBELN
EBELP
LOEKZ
AEDAT
MATNR
NETWR
FROM EKPO INTO TABLE IT_EKPO
WHERE EBELN = P_PURDOC.
ENDIF.
ENDFORM. " get_data_from_ekpo -
Highlight the text within the raster Image
Hi,
How to highlight the text within the raster Image?.
Thanks, -RajYou can use a square highlight, but not a text highlight.
-
How can i text over the top of photos
how can i text over the top of photos
I do not understand you question. Do you want to add text to a photo?
-
How to add spaces at the end of record
Hi Friends,
i am creating a file which contains more than 100 records.
In ABAP i have internal table with on field(135) type c.
some time record have length 120, somtime 130 its vary on each record.
but i would like to add space at the end of each record till 135 length.
Can you please help me how to add speace at the end of record.
regards
MalikSo why did you said that in your first posting? My glass sphere is out for cleaning...
Instead of type c use strings and add spaces until they have the appropriate length.
loop at outtab assigning <pout>.
while strlen( <pout>-val ) < 135.
concatenate <pout>-val `` into <pout>-val.
endwhile.
endloop. -
Why can't I add text in the signature panel in firefox?
why can't I add text in the signature panel in firefox? I have adobe acrobat pro XI. I can open a pdf in acrobat pro and am able to add text to a pdf, but when I open a pdf in firefox, the "add text" option is not available.
When you install Acrobat XI you are also installing Reader for use in the browser. Reader is "sandboxed", or as it says in the Preferences, it is in "Protected Mode". Acrobat does not understand the concept of running in sandboxed memory (sandbox is a security feature to prevent the bad guy from exploiting a memory error and getting into a memory address where they can do damage to your computer) so to help protect Acrobat users the same way Reader users are protected we just install Reader along with Acrobat, but it is only used in the browser (part of this is because the bad guys use web sites as their primary method of distributing corrupted PDF files that can cause problems).
That said, because you are in Reader the file needs to be Reader Enabled prior to being posted to the web site (or opened in the browser). Once the file is Reader Enabled you should be able to add the text annotations.
Steve
Maybe you are looking for
-
When I try to open a PDF document from the Internet, it opens, with sharp resolution; however, within a few seconds, it blurs and seems to have multiple copies being shown on top of each other (ever so slightly mis-aligned). Yet, when I use any other
-
I want a count of distinct rows in a table
I want a count of distinct rows in a table through a single query -- is it possible? eg. table- create table ch1 (a int, b int, c int, d int) insert ch1 values (1,1,1,1) insert ch1 values (2,2,2,2) insert ch1 values (1,1,1,1) insert ch1 values (2,2,2
-
Maximum file size using htmlb:fileUpload
Hello Gurus, in a bsp application we are using htmlb:fileUpload. It was possible to upload a 43 MB file without problem. But our maximum file size is about 220 MB. We made a test with a 190 MB file. After we hit the post button, the browser disconnec
-
Create a Panel skin (Spark) with a background fill color I can pass as a parameter
Hi, I'm trying to create a Panel skin (Spark) with a background fill color I can pass as a parameter. (See in bold:) <?xml version="1.0" encoding="utf-8"?> <s:SparkSkin name="CustomPanelSkin" xmlns:fx="http://ns.adobe.c
-
How do I get rid of the phantom screen so the real screen is visible?
I am getting a phantom screen during playback and when published/ How do I get rid of the phantom screen so the real screen is visible?