Customizing items on right click of a page in siteadmin

Hi,
We have a requirement where we want to show users a "prompt" when user right clicks on a page and selects any of the items. Please see the attached snapshot on what i am talking about.
I want something similar to what is prompted when someone clicks on delete and i want it on click of the activate button. Basically i want to ask the user - "are you sure you want to activate".
has anyone done this before. Can you please advice how this can be achieved?
Cheers!

Why do you need paths & selections just use CQ.wcm.SiteAdmin.activatePage.call(this);
Attach below a method just call this at /apps/wcm/core/content/siteadmin/actions/activate
CQ.wcm.SiteAdmin.iActPage = function() {
    var selections = this.getSelectedPages();
    var msg = (selections.length > 1) ?
              CQ.I18n.getMessage("You are going to activate the following pages: ") :
              CQ.I18n.getMessage("You are going to activate the following page: ");
    msg += "<br/><br/>";
    var max = 7;
    for (var i=0; i<selections.length; i++) {
        if (i == max) {
            msg += CQ.I18n.getMessage("(and {0} more...)", [selections.length-i], "pages to activate") + "<br/>";
            break;
        var page = CQ.shared.XSS.getXSSRecordPropertyValue(selections[i], "title");
        if (!page) {
            page = selections[i].get("label");
        msg += page + "<br/>";
    msg += "<br/>" + CQ.I18n.getMessage("Are you sure?");
    var title = (selections.length > 1) ?
            CQ.I18n.getMessage("Activate Pages")
            : CQ.I18n.getMessage("Activate Page");
    CQ.Ext.Msg.show({
        "title":title,
        "msg":msg,
        "buttons":CQ.Ext.Msg.YESNO,
        "icon":CQ.Ext.MessageBox.QUESTION,
        "fn":function(btnId) {
            if (btnId == "yes") {
                CQ.wcm.SiteAdmin.activatePage.call(this);
        "scope":this
Thanks,
Sham

Similar Messages

  • Strange "Hello World" menu item on right click

    Hello - for a few days now I am getting a strange Hello World contextual menu item when right clicking in some applications… Excel, iPhoto… It's at the bottom of the items separated by a line. When I choose it a text clipping kind of window comes up with German heading "Ohne Titel". In it it shows Hello World, which cannot be edited. Closing window is the only option.
    Any idea what this is and how to remove it?

    It displays which ever application is active, i.e. the window seems to belong to that application.
    Below is a list of "My Processes"… I am not familiar enough with the list to say if there is anything unusual in it.
    Here is a screen shot from iPhoto: http://homepage2.nifty.com/megaperls/hello.png
    126 fontd dirk 0.0 2 7.5 MB 30.4 MB
    120 pboard dirk 0.0 1 768 KB 18.4 MB
    2151 Image Capture Extension dirk 0.0 2 6.3 MB 29.1 MB
    118 Finder dirk 0.0 5 36.4 MB 40.8 MB
    117 SystemUIServer dirk 0.0 5 25.2 MB 283.5 MB
    116 Dock dirk 0.0 3 24.9 MB 29.0 MB
    2022 TextEdit dirk 0.0 2 28.1 MB 27.8 MB
    2147 iPhoto dirk 0.0 12 139.2 MB 146.4 MB
    112 launchd dirk 0.0 2 972 KB 38.0 MB
    235 DashboardClient dirk 0.0 5 45.6 MB 217.4 MB
    232 Flash Player (Safari Internet plug-in) dirk 1.5 6 14.8 MB 54.6 MB
    2137 mdworker dirk 0.0 3 18.4 MB 39.2 MB
    38 loginwindow dirk 0.0 2 8.0 MB 34.7 MB
    927 AppleVNCServer dirk 0.0 4 2.8 MB 30.1 MB
    222 AppleSpell.service dirk 0.0 2 9.5 MB 29.1 MB
    156 Safari dirk 0.0 10 313.1 MB 413.6 MB
    219 WebKitPluginAgent dirk 0.0 2 936 KB 39.5 MB
    152 iChatAgent dirk 0.0 2 6.0 MB 13.7 MB
    723 ARDAgent dirk 0.0 5 2.5 MB 31.7 MB
    151 Kotoeri dirk 0.7 3 43.7 MB 52.3 MB
    147 HP Event Handler dirk 0.0 4 2.6 MB 30.6 MB
    145 TISwitcher dirk 0.0 2 6.2 MB 30.2 MB
    144 HP Scheduler dirk 0.0 2 3.6 MB 29.9 MB
    143 imklaunchagent dirk 0.0 2 1.9 MB 39.0 MB
    140 Little Snitch UIAgent dirk 0.0 3 7.2 MB 30.7 MB
    2172 mdworker32 dirk 0.0 3 5.7 MB 72.7 MB
    2165 Activity Monitor dirk 2.1 3 20.1 MB 38.3 MB
    131 UserEventAgent dirk 0.0 3 5.0 MB 40.7 MB

  • TO ADD A CUSTOM ENTRY IN RIGHT CLICK POP UP MENU IN ORACLE HRMS FLEX FIELDS

    We are building a custom help for Oracle HRMS. For this I need to add a custom Help entry in the right click pop up menu. I did this by adding the code APP_POPUP.INSTANTIATE('POPUP10','Custom Help',TRUE,'LINE') in the APPCORE lib. After this change the right click menu shows the new entry 'Custom Help' when user right clicks in any of the form but the new entry Custom Help' doesn't show up when I right click in flexfields. I am sure I need to do some thing else for flex fields.. Does any one have any idea on this ?

    You have to refer to the Current Form, Current Block , Current Item so that the menu appears only in the form where you want to see.

  • Way to search custom engines via right-click/updated version of AcidSearch?

    Are there any current ways to search highlighted text in a customized list of engines via right-clicking it? I used to do it via AcidSearch but it hasn't been updated in years, and the author is not planning on doing so.
    I'm currently using Firefox because it has that capability via add-ons, but I'd rather use Safari as I've noticed that version 4 can handle most pages FF can't, plus it's faster and FF 4 has been postponed to 2011. Thanks
    P.S. I have a list of custom engines in the search bar via Glims but that's not what I'm asking about.

    Hi Mark,
    I think this application has a some potential. However, it has a long way to go to reach that potential.
    Let's start with the toolbar (the blue button that appears on the taskbar) that is created by default when the application is installed. If you'll forgive my bluntness, it's a distracting waste of space and a flagrant misuse of the toolbar user interface.
    If there is something wrong that requires urgent attention (like, for example, the hard disk is failing), then the program should open a dialog box. Otherwise, user notifications should be displayed in -- surprise -- the Notification Area. Please have your developers read and understand the Windows User Experience Interaction Guidelines. 
    And seriously, what is up with the Coverflow-esque marketing garbage on the -- ugh -- "Ultimate Business Tool" tab? If you're wondering why this program has the reputation of being bloatware, look no further than here. This has no business being in a diagnostic application.
    I could say more, but I think you get my drift. Remember the old version of PC Doctor? When all it did was scan your computer for problems and gave you a nice report, without trying to take over your taskbar or sell you stuff? Ah, the good old days.

  • Prevent right click on the page....

    hi all,
    i am displaying digital signatures in the footer ,and i want to prevent the copy of any item from the page actually i came up with the code it is A JAVA SCRIPT CODE ,i tryed it on one page i created ,but if you want to apply it on the APEX where i have to add the code ,,,,
    Thanks in advance ,
    Ahmed

    Hello,
    Of course it depends on how you implemented it but most likely you will want to add it to your HTML Header or in the Page Template.
    One thing to understand is depending on javascript for security is a bad thing. Even though you have disabled javascript for right clicks there are literally hundreds of ways to get around that.
    The simplest would be for someone to use the save the page
    File > Save Page As
    And then browse the page source at their leisure.
    Carl

  • When I right click on a page to send the page link to someone the link's not inserted in the mail page.

    Not really anything more to add to the problem. It's just that simple. Right click on page, choose 'send link' and the mail page that comes up (in Thunderbird) doesn't contain the link as it always did in previous versions. I have to copy and paste the link which makes the right click useless.

    You can middle-click a link to open the link in a new tab.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How to remove old items from right-click contextual menus?

    So, I've installed two versions of Photoshop. The older CS4 and then recently upgraded to CS5. I've uninstalled some items (Photoshop CS4, Illustrator CS4) from the system using the Adobe uninstaller. But for some strange reason, if I control-click or right-click on an item, say a PDF, Photoshop CS4 or Illustrator CS4 Still show up in the list ...
    I've searched the ~/Library/ folder and can't find a Contextual menus folder.
    In the /Library/Contextual menus folder only 1 item is listed even if I show all files.
    Any ideas? I'm very much lost and I would really like to have the applications that no longer exist on the drive removed from the list... Thanks in advance

    If you want to learn more about OS X and other Apple stuff there are a few sites you might want to look at:
    http://reviews.cnet.com/macfixit/
    http://mactips.info/
    http://osxdaily.com/
    http://www.macosxtips.co.uk/
    Thanks for the star

  • Setting up mouse to right click delete a page?

    After reinstalling Acrobat 9, I no  longer have the option to delete an individual page when I right click on the mouse. Is there a way to set this up again?
    Thanks!
    Catherine

    As George alluded to - you'd do this from within the Pages pane.
    If the option is not available then the PDF most likely has security applied that precludes this type of change to the file.
    Be well...

  • Unable to right click on Master Page - Adobe Muse CC

    How do I access Page Properties to update Metadata when right clicking on the Master Page does not work in Adobe Muse CC?

    It should work, but you can also go to the top menu bar and click on "Page/Page Properties" a graphic user interface box will come up, click on the Metadata link at the top.

  • Remove an item from right-click menu?

    How do I remove an item from a right-click menu? An application I installed but later removed placed an item on my right-click menu. I want to remove the right-click item it placed there. I've looked in .../user/library/contextual menu and /library/contextual menu but don't see anything there that suggests it might be related.
    Thanks.

    I suddenly realized this was a FireFox Add-on. Once I realized that it was easy to go to Add-on menu in Firefox and remove it.
    Problem solved.

  • When opening a new tab by right click, the current page goes white for a while, why?

    For example i have one tab open i then right click and click open link in new tab. I do this and then the current tab i am one either goes white or shows up a completely different page and this can last up to 1 minute. Is there anything i can do to solve this problem?

    here is what the page looks like when I open a new tab...is there anything I can do to fix this...Thank You

  • Custom menu for right-click on TextArea

    Is it possible to have a custom menu when user right clicks
    on text area.
    Can the defauklt menu be overridden ??

    Hello LRosenthal49, probably [http://kb.mozillazine.org/Corrupt_localstore.rdf Corrupt localstore.rdf] file.
    thank you

  • Right-clicking on a page on my website leads to check boxes to change settings on my website. This doesn't look like a good idea!offer visitor

    How doIshield visitors from this?

    Which settings are you referring to?
    You can't prevent visitors from opening the right-click context menu.
    *http://kb.mozillazine.org/JavaScript#Advanced_JavaScript_settings

  • Why cant I right click on web pages?

    whenever i right click nothing happens. if I want to save a pic i cant right click to save to a file.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • The back button doesn' always work. Even right clicking on the page doesn't give me the option to go back and if i check the history, the page i was trying to go back to, is not listed.

    I've noticed the problem yesterday and it has happened few times today again.

    The "Use custom settings for history" selection allows to see the current history and cookie settings, but selecting this doesn't make any changes to history and cookie settings.
    Firefox shows "Use custom settings for history" as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.
    If all History settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".
    "Never Remember History" means that Private Browsing is active and "Always use private browsing mode" gets a checkmark.
    You need to remove the checkmark on "Always use private browsing mode" to leave Private Browsing mode or chose the "Remember History" setting.
    *https://support.mozilla.org/kb/Private+Browsing

Maybe you are looking for

  • I have an ipod touch 4g 32 gb. after a week of use, i noticed that sometimes, after i unlock , the homescreen hangs for about 3-6 seconds.

    yes so this hanging issue is not all the time. it happens like almost half the times i unlock. i tried restoring. initially it was ok. then i downloadded an app from the appstore. after downloading i unlocked my ipod and it hangs. for sure it will ha

  • How to Upload an attendees data and assessment details

    Hi all. Upload an attndess data and assessment detials against a specific business event date...programatically......how this can be done......? Since i am new to HR module..... I will give you overview what should be done.... 1.  A business evet occ

  • Reset context

    Hi, I have an JSF Portal application one of the Portlets displays some fields and link . The link opens a poup window where I can do some searchers and move the results to the parent window that all works OK the problem that I'm having is if the user

  • Layout cell and image repeat question

    I want to put a background image into a layout cell. The image isnt as wide as the cell - when i set the target the image repeats itself from left to right. How can I stop this? I want the image to appear once and once only. Should I just create a la

  • Limit movement type plus SLoc by User

    Dear All, I face a problem right now, I know that SAP could restrict a use on movement type and Sloc. But when I try to combin them I face a problem. For example: I will only like to allow A user to use movement type 261 and 262 in SLOC 0100 and 311