Need to remove additional markup around components in preview/ publish

Hi all,
I have a quick question concerning the cq:noDecoration property on a
component that - if set to "true" - removes the <div> markup from a
component.
I need this behaviour because the markup produces invalid HTML. But
sadly when removing the wrap the component can not be selected any
more?
How can i create a component that has no additional markup wrapped
around it but can still be edited/selected?
It would be ok to have additional markup in edit mode but not in
preview mode.
Regards,
Shelly

how does the markup produce invalid HTML? i am interested to see the validator results for your specific case.
nevertheless, the WCM Editables (hover frames for opening the edit dialog) require a block element to wrap themselves around per paragraph or component, otherwise they don't know where to attach. this is usually done with the auto-generated div. disabling the decoration effectively disables the editables.
would it help if you could set your own HTML decoration? using a component's cq:htmlTag node (with e.g. a property cq:tagName = "myhtmlelement" [e.g. h1] and "id" or "class" to set desired style reference) you can maybe produce HTML that conforms to your needs, while at the same time serving as the required surrounding block level element for the editables.
the ultima ratio is to manually call the CQ.WCM.edit widget function to create an editable within your component's JSP within a block level element:
<div class="blah">
    ... my magic ....
<script type="text/javascript">
CQ.WCM.edit({"path":"/content/geometrixx/en/jcr:content/par/image","dialog":"/libs/foundat ion/components/image/dialog","type":"foundation/components/image","csp":"homepage|page/par |parsys/image|parbase","editConfig":{"dropTarget":[{"id":"image","name":"./fileReference", "accept":["image/.*"],"groups":["media"],"params":{"./sling:resourceType":"foundation/comp onents/image","./imageMap":"","./imageRotate":"","./imageCrop":""}}]}});
</script>
</div>
replace the configuration properties of the .edit function above as needed for your component. see the widget API documentation at [0] for the .edit function.
you can find various different samples at e.g. (or by looking at the HTML source of an author geometrixx page):
/libs/dam/components/video/profile/profile.jsp
/libs/cq/replication/components/staticagent/staticagent.jsp
[0] http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.WCM

Similar Messages

  • I need to remove blue highlighting around certain words in a pdf document.

    Someone tell me how.

    I'm not sure how to send a screenshot in this forum but it doesn't matter now. The problem was that I somehow removed the Form Fields without it removing the information in them as well as the blue highlight for selecting an answer to the individual questions.
    I ended up going into another copy of the application and using the Tools>Highlight Existing Fields operation and then going through and making sure the different form fields weren't locked and then deleting each one.
    Initially I used the left hand side Navigation Pane buttons to remove all embedded information which is what got rid of the form fields but not the info in those form fields, which included the blue highlight.
    Thank you for your help though.

  • Need to remove the page and components from jdr_paths table

    After running the following command
    BEGIN
    jdr_utils.deleteDocument('XX\oracle\apps\per\onlinepayslip\webui\XXOnline_PayPG.xml');
    END;
    commit;
    i ran the below select command and i can still see the data appearing for that path_name XXOnlinePayslip
    SELECT * FROM JDR_PATHS Where path_name like'OnlinePayslip%'
    how i can remove this entry from the JDR_PATHS table ...?
    Please help!

    Hi ,
    Since its an API can you try specifying the parameter name as well
    DECLARE
    BEGIN
    jdr_utils.deletedocument(p_document => 'XX\oracle\apps\per\onlinepayslip\webui\XXOnline_PayPG.xml');
    END;
    Please note that it will remove only extension / substitutioin / personalizaton .
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I need help understanding how the Apple components integrate to create a system across all my devices?

    I need help understanding how the Apple components connect to create a whole system across all my devices?
    Is there a resource that describes current system and associated functionality?
    For example:
    Buy A, B, C to achieve "X" 
    You will need:
    an internet provider which supports <specs>
    add D to achieve "Y"
    You will need:
    an internet provider which supports <specs>
    add "E" to achieve "Z"
    You will need:
    an internet provider which supports <specs>
    For example, I am looking at the Gen 6 Airport extreme.  For intended performance do I need broadband? if so what are the specs, or will basic internet service suffice?  Do I need the internet provider's modem or does the Airport extreme replace that?  And then I think, if I am doing this, I should also look at Apple TV....What do I need and Why?  Then I look at the New Desk top coming out in the fall, and I think well, if I wait and get this, what does this component do for the system, and what becomes redundant? What does this awesome desktop do for my ability to sit and use a new macbook air when I travel  or sit on the couch in my PJs?
    If there was a place that plainly stated "if you buy the new dektop you can configure a system including only these components and achieve <this result> and by adding <additional components> you will achieve this result.
    I have been to the genius store a few times, but I come out of there more confused unless I have SPECIFIC questions or already know what to buy. 
    A "System Configuration App" would be a really great sales tool--Just saying.

    I have no idea what "fully optimized" means.
    No Apple device will let you watch broadcast TV. The Apple TV is a good option for watching streaming TV from iTunes, NetFlix and Hulu. If you want to watch from other sources, you may need to look at other devices.
    Any Mac computer or iPad will allow you to surf the web.
    What business software?
    Time Capsule is a good option for back ups.
    Update what across all devices?
    For accessing documents from all devices, a service like Dropbox is your best bet.
    I have no idea what "step as far away from an internet provider as possible" means. If you want Internet access, you need an Internet provider.
    Lighting fast speed for what? Processor? The specs are listed for all devices in the Online Store. Internet? We're back to the service provider.
    Technology changes. The only way to keep pace with it beyond a couple of years is to buy new stuff.
    The bottom line is you need to look at the specs for devices availble and at your budget and decide what best meets your needs. If you are unable to do that on your own, there are lot of technology consultants out there who will, for a fee, look at your exact situation, make recommendations and even handle the purchase and set up. Perhaps that would be the best route for you.
    Best of luck.

  • Help needed to create additional memory....​.........

    I recently purchased a 4Gb SD memory card for my 8830 World Edition through the Bell Network (GPRS, CDMA)  v4.5.0.127
    I have followed the instructions online to install and activate the new media card. It looks as if I have done everything ok and changed all the settings
    media card - on
    encryption - none
    mass storage -on
    auto enable -yes
    I have formatted the card and it tells me that it was successful.
    When I go into options - media card it shows that I have 3.6Gb free but when I go into options-Status it tells me I have 0 free space available.
    My Bberry is obviously jamming up all the time with the hourglass as there is no free space.
    Any suggestions on what I need to do?
    Do I have to move data from my bbery hard drive to my media card and if so how do I do this?
    Any help would be appreciated.
    Thanks
    Solved!
    Go to Solution.

    First of all, you have an 8830 and you posted in the 8300 section.  You might want to ask a moderator to move your post.
    As for your issue, you'll first want to turn off the encryption on the card.  If you ever remove the card from the BB device you will not be able to recover any data from it.  If you require that kind of security then, by all means, leave it turned on but most don't need that and it only causes headaches later.
    Second, Your memory in "Options >Status" is different than what you have available on the media card.  You cannot solve your memory problems with the addition of a media card.
    You'll need to move any pictures you have stored on the device memory over to the media card.  If you have 3rd party apps you may need to remove some of them. 
    I wrote a very heavily viewed post a while back on another forum about this very problem.  Fortunately, RIM has increased the amount of application memory available on the newer devices.  Here is the post.  It should help:
    http://www.blackberryforums.com/blackberry-help/11​2029-losing-call-logs-sms-emails-optimize-your-bb-​...
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Need Help Removing Background

    I need help removing a background from a picture.  My boss wants some t-shirts made but the only image I have is one with a tie-dye background and I need it to just be the black and white that is on the image.  I have been trying for 2 weeks to do this and I can get real close but it leaves the colors around the edges and I need this gone.  Any ideas?  Anyone that can help me out?  I have the original photo and the one with almost everything removed if someone can help me fine tune the rest that would be great.

    You've done all the hard work and are almost there!
    Starting with your b/w rendition, duplicate the background layer, and shut off the visibility of the background layer. Work on background copy layer
    Go to Enhance menu>convert to black and white>vivid landscape style
    Open a blank layer between the background and background copy layers and fill this layer with white
    Make the background copy layer active and use the eraser tool to clean up a few smudges on the background copy layer
    Open a blank layer at the top of the stack, and press CTRL+SHIFT+ALT+E to create a stamp visible layer
    With the rectangular marquee tool, make a rectangular block selection of "DRIVE-IN THEATRE" and place this on its own layer (CTRL+J). Make the blending mode multiply, then duplicate this layer 3-4 times.
    For the text on the bottom, suggest that you erase this and replace the information with the type tool.

  • Need to remove oracle 9i from win 2003 svr

    Hi Guys,
    I have a rogue install of oracle 9i on a windows 2003 server box. It was installed as part of a package from a vendor. But during the setup the deal went south and the oracle install was never removed. I arrive on the scene much later and go to remove it. Universal installer (version 2.??) removes a few components (itself included) and then errors saying "this component was installed with installer 10.2.?? cant remove" I am currently downloading the first disk of the oracle9 db and hope that running the installer from that download will let me remove the rest..Is it going to work for me or will there be some issues with oracle being somewhat butchered as it stands. I need to remove the db any number of reasons. is there a guide on how to manually remove all traces of oracle from a server incase the installer fails?
    Regards Dave

    Thanks Neil. But as we never really had the software setup I dont have a cal number or what ever they call it to login to metalink. if someone would get the note and email me a copy that would be above and beyond the call of duty...but it would sure be helping me out.???

  • Need to remove white background for use on dark background

    Hi,
    I have a stock image of some people on a white background. I need to remove the white background so I can use the image in a project with a dark background. However when I put the edited subjects on the dark background, the people all have noticeable white borders around them which I assume means I am not getting all of the white out, especially around the hair. Can anyone recommend the best way of overcoming this? Thanks.

    Can anyone recommend the best way of overcoming this? Thanks.
    There is no single "best way". It all depends on the resolution of the image and its other quality properties. The - theoretically - cleanest and less workladden method would be to extract the luminance e.g. by converting to Lab mode and selecting the L channel, then adjust the channel range. However, if the foreground also contains lots of bright colors, clipping back the channel black and white points would also affect them and you'd need more adjustments to compensate or work with teh refine mask tool a lot to feather edges just like you would with a conventioan layer mask created from an interactive selection. On top of that you may also still need to apply all teh other dirty tricks like using a dark inner glow to cover up remaining bright areas or fill the outside with a dark color... Really depends, but you should be prepared to invest some time. Using longwinded manual painting and cloning may even be required...
    Mylenium

  • Do I need to remove the application?

    I am working on iPlanet 6.0SP4.Do i need to remove the old application when I redeploy the new one. Because there is also an option called "override" when doing the deployment, what that mean?
    If I didn't remove the application, and redeploy with override option, is it possible that two same classes will be stored in the ldap server with different id

    Hi,
    See when you deploy any ear application it first copy it in "<iAS-install-dir>/ias/JAR" dir and extract all the war/jar modules in it. And after it picks the modules from here and explode in respective directory under "<iAS-install-dir>/ias/APPS or .../APPS/modules". When you say Override modules, it replaces all the old modules having the same name with the new one and then explode them.
    Moreover when you deploy any module it will make entries in LDAP under "Application server/6.0/J2EE-Modules/<war/jar-module-name>" and for each Servlet/JSP/EJB under "Application server/ClassDef/<GUID>".
    So when you redeploy same application again and you don't change the module names then it will overwrite this registry information as the module names and GUID is same (in this case you have to restart iAS). But if you reassemble application using deploytool, then it will create new GUIDs for each components in your app and the second entry will be change in this case.
    Now when ever plugin will send the request for the new app it will read GUID from the "J2EE-Modules/<war/jar-module-name>" node and will send it to the KXS and the KXS will see what class to load after looking at "ClassDef/<GUID>" node.
    If the modules have the same name as original Application, then the old GUID entries in registry are of no use and will make iAS slow only as it reads the whole registry while starting.
    Please feel free to ask further questions.
    Sanjeev,
    Developer Support, Sun ONE Application Server-India.

  • " in column, need them removed

    When I imported an Excel sheet into a table that was TAB delimited, some fields have "" quotes "around the values", I need to remove them from the 2 fields in my table, the sample data would be:
    "FirstName, LastName"
    and different names of course, what is the best way to UPDATE the table to remove those ?
    Thank you.

    Yes, I used the SQL*LDR and I did not have the OPTIONALLY enclosed by, learned by lesson, but it is too late to re-do that process :- )
    I need to fix the table, only 2 columns are affected by this.
    I want to take the value, say: "Tom, Richardson" and strip the " and replace it with: Tom, Richardson
    that first SQL that I used seemed to do the trick, now I have to deal with those tab instances, that's weird, but a learning lesson for me.

  • Do we need to remove the Listener once the JFrame is closed

    Hi All,
    I am confused on whether, we need to remove the Listeners registered on the component, once we destroy an Applet or frame or it will be taken care automatically.
    And if we need to remove it, What will be impact of not Removing it.

    nope. Once you destroy the frame, any components in it will get cleaned up as well. Unless you have references to them outside of the frame of course.

  • [Solved]virtualbox-ose-additions needs virtualbox-ose-additions

    Hello everybody. I noticed that mayor updates were released some time ago but I couldn't update because of my exams. Anyway, now I'm trying to update (pacman -Syu) and I recieve the following error:
    :: virtualbox-ose-additions-modules: needs kernel26<2.6.28
    So, that package is out of date, I don't mind if I have to remove it and install virtualbox after updating again, so I tried to remove it and what I get is this;
    :: virtualbox-ose-additions: needs virtualbox-ose-additions-modules
    Even if I do a ~$ pacman -R -f virtualbox-ose-additions-modules get the same error.
    How can I remove it and update?
    Thanks
    Last edited by endless_dark (2009-02-16 21:02:41)

    pointone wrote:
    Remove virtualbox-ose-additions first?
    Or...
    pacman -Syu --ignore virtualbox-ose-additions*
    Omg it was as easy as that. -1 for me
    Thank you very much!

  • G4 Ti4200-TD8X, need to remove fan + freezing

    Hihi..
    I need to remove the fan on my GFX, but I don't know how - since I can't find something which looks like a screw, only some black rubber thingies which appears to go through the fan and all the way onto the back plating.
    But I want to know how to remove it.
    I also have a problem with freezing up.
    It appears like overheating - but after reading a few threads on this board, I'm not really sure. Also looking upon the amount of cooling within my case, I can't see how it possible can be overheating.
    My system specs are :
    ECS K7S5A ATX motherboard.
    AMD Athlon XP 2.2Ghz
    640 SD PC133 rams (Noname)
    MSI Geforce 4 ti4200 agp 8x 128DDR's (Running with agp 4x
    400Hz PSU
    Thermal take Silent Viking II (80x80 Fan)
    Thermal Take Technology ThermalCase MidiTower (4 80x80(Metric) Fans, two backside, two frontside)
    IRQ : (Only listing PCI)
    5. Creative AudioPCI (ES1371, ES1371) (WDM)
    5. MSI MS-Starforce GeForce4 Ti 4200 with AGP8X (NVIDIA GeForce4 Ti 4200 with AGP8X)
    5. Realtek RTL8139 Family PCI Fast Ethernet NIC
    5. SiS 7001 PCI to USB Open Host Controller
    11. Multimedia Audio Controller                           (It is disabled)
    11. SiS 900-Based PCI Fast Ethernet Adapter
    12 SiS 7001 PCI to USB Open Host Controller
    Please help.
    ~x~ Janine ~x~

    Well I changed my cards around abit and ended up with an IRQ setting like this :
    5. MSI MS-Starforce GeForce 4 Ti 4200 with AGP8X
    5. SIS 7001 PCI to USB Open Host Controller
    11. Creative AudioPCI
    11. Realtek RTL8139 Family PCI Fast ethernet NIC #2
    11. SiS-900 PCI fast ethernet adapter
    12. SIS 7001 PCI to USB Open Host Controller
    Now the problem within #5 - is that "SIS 7001 PCI to USB Open Host Controller" appears to be my USB ports, which are onboard and I can't just move them around like my Netcard and soundcard - my GFX I can't move either, since I only have one AGP slot.
    It still does the same freeze up however.
    Also, I would really like to know how to remove the fan on the GFX, since I can't really clean it properly if I do not remove it. (It's a little dusty, and it will decrease heating if I get it cleaned properly)
    ~x~ Janine ~x~

  • I will give my laptop to someone else, how do I unlink my apple id? Do I need to remove the apps I downloaded with my id?

    I will give my laptop to someone else, how do I unlink my apple id? Is it just the app store unlink? Do I need to remove the apps I downloaded with my id? Will they get removed when I unlink my apple id?
    Are there any other procedures I need to take into account?
    Thanks

    You need to remove all software that you acquired from the Mac App Store, including newer versions of OS X. These are all registered to you and encoded with your Apple ID in the licensed copy. You cannot legally pass any of the software to the new owner, which is why Apple states to erase the Mac and return it to the version of OS X that shipped from the factory on the Mac. You must also remove any older Apple software that you installed by DVD or pass the DVD to the new owner with the Mac.

  • Need to remove space for a field when displayed in ALV Report

    Hi,
    I have material field of length 18, but the content is only 10 char. I need to remove the extra space when it is displayed on ALV Report.
    Is there any option in ALV field catalogue

    use statement condense.
    condense zmatnr.
    also giv output lenth of alv column as 10.

Maybe you are looking for

  • I cannot launch Firefox, because it crashes on startup

    Hello, I have problem, if I launch FIrefox, it will crash on startup, but if I will reinstall it, it still doesn´t work. Problem has started, when I actualized WIndows. I have Windows 7 and i didn´t experienced crash all time, only this time. It coul

  • Get System Stored Procedure Data in variables

    Hello all Forum Members, I am new to SQL Server. My Requirement is that i want to get sp_helpuser procedure data in select query variables. is it Possible? Please Help.

  • Fields/Tables to locate most recent overall performance rating of employee

    Hi, I'm looking for the table names and fields that would be involved in determining a person's latest performance rating.  I've spotted  the latest date in HRHAP, but want to be able to tie this to a personnel number and a field that hopefully links

  • Assets purchased from other company

    hi gurus, we have a situation here... my company buys used assets which are already depreciated for a certain amount of time and has some remaining life on the assets. as far as I know we cannot post the APC and depreciation directly to an asset. How

  • Acrobat 8 Launches when opening an InDesign file

    I have recently upgraded to Acrobat 8 Pro and Indesign CS3. Everytime I try to open an InDesign file by 2x clicking on it, Acrobat launches alongside Indesign, and Acrobat throws up an error message. How can I get this to stop? And why is this happen