How can get all the components used on the current page

how can I get list of all components being used on the current page using javascript. I have tried CQ.WCM.getComponentList(CQ.WCM.getPagePath()) but this seems to list all the components available.
Environment CQ 5.5 Update 1, Widnows 7

You have to remember that once you are in JS, you are only really able to retrieve markup or representations of the DOM.  The markup is the result of a combination of components, which is technically a "server only" concept.  Components are just a way for CQ to organize executable code, so once a page is rendered a component isn't really a thing.  The closest thing I can think of is to list all of the DIVs that represent a component wrapper that are on the page, but this is error prone and clunky.  You could also make AJAX calls back to the server to retrieve a list of the components by node name, but that approach would not return synthetic resources (ones that render, but do not have a node representing them).
Why are you trying to do this?  Maybe someone has a better idea, but this has a bad smell to me.

Similar Messages

  • I loos my APPLE ID, I have a new one, how can get access to data stored in the old one?

    I loos my APPLE ID, Now I have a new one, how can get access to data stored in the old one?

    Do you have the email & password of the old Apple ID?

  • How can get difference between 2 dates in the form of days

    how can get difference between 2 dates in the form of days

    Hi,
    Check the following program:
    REPORT ZDATEDIFF.
    DATA: EDAYS   LIKE VTBBEWE-ATAGE,
          EMONTHS LIKE VTBBEWE-ATAGE,
          EYEARS  LIKE VTBBEWE-ATAGE.
    PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
                TODATE   LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
    call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
      exporting
        i_date_from          = FROMDATE
        i_date_to            = TODATE
      I_FLG_SEPARATE       = ' '
      IMPORTING
        E_DAYS               = EDAYS
        E_MONTHS             = EMONTHS
        E_YEARS              = EYEARS.
    WRITE:/ 'Difference in Days   ', EDAYS.
    WRITE:/ 'Difference in Months ', EMONTHS.
    WRITE:/ 'Difference in Years  ', EYEARS.
    INITIALIZATION.
    FROMDATE = SY-DATUM - 60.
    Regards,
    Bhaskar

  • How to get all GroupSpaces name using Spaces API, irrespective of user logged in?

    Hi
    Can anyone please tell me, how to retrieve list of all group spaces using Spaces API. I have used this method getGroupSpaces(null) to retrieve all group spaces, however it returns only the logged in members groups.
    Is there any way to get all groupspaces details?
    Regards
    Raj

    i don't think so other than admin user can get all group spaces informaiton, is it possible in webcenter portal:spaces default deployment?

  • HT4527 on my old laptop the harddrive went out..i have a new one how can get all tha info back/music/fotos/app??

    old laptop hard drive went out.i have a new one how can i transfer my info to the new one?hard drive not working

    If you don't have backups, see here
    https://discussions.apple.com/docs/DOC-3141

  • How can I tell what is using up the space on my hard drive?

    My computer has been messing up for a while, giving me the message "startup disc almost full". I only have 4 gb free space now, after throwing all my photos and music onto external drive. What is making my disc so full? All the rest of my files are text? How can I figure out what is taking up so much space? Thanks

    Moving iTunes music is more involved than a simple
    drag and drop affair; you would be making copies on
    some other media, but could be leaving duplicates or
    originals on the hard drive in the process. Same with
    images and iPhoto derived items. There are some
    Apple Support documents on how to manage these.
    The user folder has things in it you have installed;
    generally your saved items would be found in there.

  • How can get all anchored objects?

    How can we get a document's all anchored objects labeled as "Anchored" by  1 or 2 line javascript code?

    myAnchs = app.documents[0].stories.everyItem().pageItems.item("Anchored").getElements();
    returns an array of all such anchored items.
    Dave

  • How to get W530 laptop to use only the Quadro GPU when using 2 display panels?

    QuestionI just purchased a W530 and it has both video card -  Quadro 1100M and Intel Graphics 4000 graphics. 
    From the control panels for each of the graphics cards it seems that the laptop display is connected to the Intel Graphics card whereas the Quadro is connected to my external monitor.  Is there a way to configure this setup so that the laptop display uses the Quadro as well just like the external monitor does?
    AnswerUnfortunately the Optimus set up is that no matter which card is used, the Intel HD4000 card powers the display.
    However, if you want to always use the nVidia discrete card, you can turn optimus feature off in the BIOS by setting the Graphics setting to "Discrete". Please bear in mind that this will drain the battery very quick if no power AC adapter is attached.

    The Bios trick does the job, however then you will be stuck with a really low cpu speed on battery power unless you disable the cpu speedstep from bios. I had the w530 with quadro 2000m for two years and i had the optimus disabled since day one. The battery last little over two hours with optimus disabled, if you also disable speed step then you only have about an hour of battery power. I had to do this a few times when i had to render something quickly out of media encoder with battery power.

  • How to get all rows in table to red using alternate rows properties option

    How to get all rows in table to red using alternate rows properties option

    Hi Khrisna,
    You can get all rows red by selecting the color red in the "Color" and "frequency" to 1 under the "Alternate Row/Column colors".
    I tried doing it and the colors freaked me out (all red) :-D
    Kindly tell me if im missing something.
    Regards,
    John Vincent

  • How to get all rows that are returned in inner sub query of select statemen

    If a sub query in select statement returns more than one row than how to get all those returned rows in the final
    output of the query .It will be all right if all column's value repeat and that multiple output of inner query comes
    in another column .
    How to get that ?

    As Frank said, you likely want a join, and likely an outer join to replicate the select in the projection. Something like:
    SELECT id,stat, section, USER_ID concerned_person
    FROM table_all,
      left join table2
        on room_id = sectoion and
           sur_role = 'r001'
    WHERE section IN (SELECT code
                      FROM t_area
                      WHERE dept= 'p002')An alternative, depending on where and how you are using the statement would be something like:
    SQL> WITH t AS (
      2    select 1 id from dual union all
      3    select 2 id from dual),
      4  t1 as (
      5    select 1 id, 'One' descr from dual union all
      6    select 1, 'Un' from dual union all
      7    select 1, 'Une' from dual)
      8  SELECT t.id, CURSOR(SELECT t1.id, t1.descr from t1
      9                      WHERE t1.id = t.id)
    10  FROM t;
                      ID CURSOR(SELECTT1.ID,T
                       1 CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
                      ID DESCR
                       1 One
                       1 Un
                       1 Une
                       2 CURSOR STATEMENT : 2
    CURSOR STATEMENT : 2
    no rows selectedJohn

  • From which table i can get all activities ?

    I can get all active processes use below sql, select * from fuego_depproc a where a.fuego_status != 'D', but i don't know from which table i can get all activities of each process, who can tell me ? thanks.

    I don't think there is a very easy way to do that.... The Directory doesn't define the activities of a process, only the process itself, and the engine only cares about the where the instances currently are....
    One way I can think of, is use the Directory table FUEGO_PROCDEF_SOURCE and get the xml, then parse that and strip out the activity names...
    HTH,
    -Kevin

  • How to get accurate photo printouts using calibrated FlexScan S1932 , Photoshop CS3 and Canon MX925 ? ALL ARE calibrated with i1Pro . WHO SHOULD GOVERN THE PRINTOUT , THE CS3 OR THE PRINTER ?

    How to get accurate photo printouts using  FlexScan S1932 screen, Photoshop CS3 and Canon MX925 ? ALL ARE calibrated with i1Pro . WHO SHOULD GOVERN THE PRINTOUT , THE CS3 OR THE PRINTER ?

    You need to work with the calibration parameters to get a good match from screen to print. There are no fixed values - basically whatever settings produce a match are the right ones.
    First, set the white point - luminance and color - so that screen white is a visual equivalent to paper white. You can be very specific about this, with a viewing booth right next to the display and a particular paper as target. Or you can take a more generalistic approach. That too will usually work well, as long as you keep the aim in sight: screen white = paper white.
    Don't trust the white point presets. You will usually have to adjust to compensate for your working environment. Make sure you can adjust both along the blue/yellow Kelvin scale and the green/magenta axis. Any given Kelvin value may well be wrong on the green/magenta axis.
    Next set a realistic black point. This is important. Monitor manufacturers throw about completely unrealistic contrast ranges that you will never see on paper. A good glossy inkjet paper will be in the vicinity of 250-300:1, or a black point around 0.4 - 0.5 cd/m² if your white point is at 120. If you have a monitor that goes down to, say, 0.2, which most monitors today will, you're in for an unpleasant surprise.
    Leave gamma at 2.2. Gamma is remapped from profile to profile and is "invisible" - the net result is always linear. You just want to stay close to native so that the monitor behaves at its best.
    If you have a wide gamut monitor soft proofing in Photoshop can be useful. With a standard gamut monitor it's mostly a waste of time since monitor gamut is the limiting one.
    Oh, and let Photoshop manage color. Make sure you have the right paper/ink profile and also make sure you have the right paper selected in the printer driver. This controls the total amount of ink.

  • I broke my iPhone 5 now using a 4 but don't know if or how to get my photos ect..from the 5 to the 4.can I do this and how plse help

    I broke my iPhone 5 now using a 4 but don't know if or how to get my photos ect..from the 5 to the 4.can I do this and how plse help

    Restore the backup of your iPhone 5 to your iPhone 4.  It will contain your camera roll photos. 
    To do this, first make sure the iPhone 4 is running the same or higher version of iOS as your iPhone 5 was.  If it isn't, you'll need to update it first.  Then, to restore the iCloud backup, you'll have to begin by erasing the iPhone 4.  If you have any newer data on the iPhone 4 that is not contained in the iPhone 5 backup, you'll need to save that first.  When you're ready, go to Settings>General>Reset, tap Erase All Content and Settings, then go through the set screens on the iPhone 4 and when given the option, choose Restore from iCloud backup and follow the prompt, choosing the backup of your iPhone 5 to restore to.  Be sure it is connected to wifi and your charger as it is restoring the backup.

  • TS4020 I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    I live in a house with multiple iCloud users.  When they try to turn on "Find my computer"  they get the message that they will have to disable my "find my computer" setting in order to enable theirs.  How can they all be enabled at the same time?

    Try this support document for information on how to contact Apple and account security. Apple ID: Contacting Apple for help with Apple ID account security

  • My Firefox is not working. (All I get is a blank white screen with the Fireox logo). If I have to reinstall firefox 3.66, how can I transfer my old profile to the new installation?

    My Firefox is not working (All I get is a blank white screen with the firefox logo. If I have to reinstall Firefox 3.66, how can I transfer my old profile to the new installation?
    == This happened ==
    Every time Firefox opened

    David.  Thank you very much.   The problem was not with the canvas but rather the Viewer.  But the solution was the same.  Somehow, the Viewer window was re-set to Alpha.  I changed it back to RGB.... and the picture is back.   These issues are often very simple.... but they can drive you bats if you don't know the answer.   Very grateful.  Tim

Maybe you are looking for

  • Schedule Delivery Date in Sales Order

    Hi All, Does anyone have any idea, how can I determine the date on which a line item material can be delivered, if I know the Material Availability date. After a material is available, it takes some more time for Loading, Pick-Pack, Transportation...

  • Have iPhone 5s setup on windows 7 machine and in iCloud. now have 15" macbook pro late 2013

    I want to start using my macbook pro late 2013 loaded up laptop to start using my iphone 5s with. I have transferred all music and apps virtually everything is in the versionof itunes on laptop and has been authorized. now how do I use it as when i p

  • Getting Error when trying to rebuild StoreFrontModule.jpr

    Hi Frnds, Iam very new comer to ADF world. Iam folllowing steps to create FOD schema from the link http://www.oracle.com/technetwork/developer-tools/jdev/index-095536.html The Schema was built successful , Now iam getting numerous erros when the Stor

  • Error "Cannot find fbe"

    When I'm trying to compile, I get a message "can't find fbe". I think fbe is an assembler. Where do I find it? I've searched the disk. Is it part of Solaris 7 or should it have been installed as part of the Forte C/C++ development package that I down

  • Co code

    Hi Experts Need your advice and guidance. I am new in this. I am on a project. Pls explain the detailed steps to create a company and the Tcodes Second, it plans to have more companies so how do I handle the configuration. Please can u revert?