How can I add a custom attribute to the create page dialog?

I followed the following link to add a custom attribute called starred and this attaribute can be displayed in siteadmin grid
http://dev.day.com/docs/en/cq/current/developing/customize_siteadmin.html
I would like to let the user input the value when they create a page. That's why I would like to add a custom field in the input dialog box as attached pic.
The method you describe before can only added those CQ bulid-in attribute.
For those custom attribute, how can I added it?

Hi,
How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
I think the "formUrl" is to post those input value to the jcr repository?
var createDialog = {
        "jcr:primaryType": "cq:Dialog",
        "id": CQ.Util.createId("cq-createdialog"),
        "title":CQ.I18n.getMessage("Create Page"),
        "formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
        "params": {
            "cmd":"createPage",
            "_charset_":"utf-8"
I have added a field called "starred"
Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
:status
browser
_charset_
utf-8
cmd
createPage
label
b
parentPath
/content/keyword_elaboration
starred
c
template
/libs/collab/commons/templates/form
title
a
Source
cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
However, when I go to the crxde to view the node's attribute, the properity starred is not created
Are there anything I did wrong or missing?
Thanks.
Message was edited by: aslkit

Similar Messages

  • How can I add a custom attribute to a catalog area? (CRM Isa Sales)

    Gents,
    How can I add a custom attribute to a catalog area? (CRM Isa Sales)
    Actually I would like to use the Catalog Area Type (maintained in trx COMM_PCAT_ADM on Catalog Area Header level). This field doesn't seem to be available in J2EE webshop. (The field documentation says it is for documentation purposes only so I don't expect it to be transferred).
    As this field is not readily available, I would like to add is as an attribute to the Catalog Area. BADI's PCAT_IMS_FEED_ATT and PCAT_IMS_FEED_VAL seem to indicate that it should be possible to add additional fields not only on product level, but also on Area level:
    Example implementation code:
    method IF_EX_PCAT_IMS_FEED_ATT~READ_NEW_FIELDS.
    * Example, how to add new attributes to a indexcategory
    * Possible levels are 'C'ategory and 'P'roduct.
    * Field 'VALUE' carries the attributetype ('S'tring, 'I'ntegar or
    * 'F'loat)
    * Structure 'IS_OBJECTS' carries actuall identifiers
      data: ls_fields        type comt_pcat_ims_feed_ux.
      case iv_level.
        when 'C'.                        "Category Level
    *     no new field
        when 'P'.                        "Product Level
          ls_fields-field = 'CUSTOMER_EXIT_FIELD'.
          ls_Fields-value = 'S'.
          append ls_fields to ct_fields.
    *     exproduct fields
          ls_fields-field = 'REMAN_ABL'.
          APPEND ls_fields TO ct_fields.
          ls_fields-field = 'EXCH_BUS'.
          APPEND ls_fields TO ct_fields.
      endcase.
    endmethod.
    However, when I create an implementation and add some code in the when 'C' part, the attributes do not seem to get transferred. (I've checked in the debug mode of the developer studio).
    - My example code:
    METHOD if_ex_pcat_ims_feed_att~read_new_fields.
    * Possible levels are 'C'ategory and 'P'roduct.
    * Field 'VALUE' contains the attributetype
    * ('S'tring, 'I'ntegar or * 'F'loat)
      DATA:
      ls_fields LIKE LINE OF ct_fields.
      CASE iv_level.
        WHEN 'C'.                        "Category Level
          ls_fields-value = 'S'.
          ls_fields-field = 'ZTEST'.
           APPEND ls_fields TO ct_fields.
        WHEN 'P'.                        "Product Level
      ENDCASE.
    ENDMETHOD.
    and:
    METHOD if_ex_pcat_ims_feed_val~read_new_fields.
      CASE iv_level.
        WHEN 'C'.
         ls_fields-field = 'ZTEST'.
         ls_Fields-value = 'Value 1'.
         append ls_fields to ct_fields.
        WHEN 'P'.
      ENDCASE.
    ENDMETHOD.
    In the ABAP debugger, I can see that my code is touched during initial and delta replications, however, after replication, the fields do not show up in the Java debugger.
    Any ideas?
    regards,
    Wilco Menge

    Hi,
    How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
    I think the "formUrl" is to post those input value to the jcr repository?
    var createDialog = {
            "jcr:primaryType": "cq:Dialog",
            "id": CQ.Util.createId("cq-createdialog"),
            "title":CQ.I18n.getMessage("Create Page"),
            "formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
            "params": {
                "cmd":"createPage",
                "_charset_":"utf-8"
    I have added a field called "starred"
    Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
    :status
    browser
    _charset_
    utf-8
    cmd
    createPage
    label
    b
    parentPath
    /content/keyword_elaboration
    starred
    c
    template
    /libs/collab/commons/templates/form
    title
    a
    Source
    cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
    However, when I go to the crxde to view the node's attribute, the properity starred is not created
    Are there anything I did wrong or missing?
    Thanks.
    Message was edited by: aslkit

  • How can i add an custom attribute and assign it to an existing custom object class in sun ds

    I need to add an attribute to sun ds schema and assign it to an existing custom object class.
    I know how to add an attribute but how can i add the attribute to an existing custom object class.
    Please help.
    Thanks

    The objectclasses attribute is multi-valued, so you can add several values to it as long as they are unique.
    For instance, I think you can add several declaration of the same objectclass as below (note the difference is the number of spaces in the value) howewer, from a schema perspective, only 1 will be taken into account:
    objectclasses: ( 2.5.6.6 NAME 'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256' )
    objectclasses: ( 2.5.6.6 NAME   'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256    ' )
    That's the reason why it is safe to delete previous value if you want to update an existing objectclass. No problem to add a new objectclass (new oid and new name) to the schema.
    -Sylvain

  • How can I add a custom footnote at the beginning of my document?

    Hi, I need to start a document adding my credentials using a custom footnote (the traditional * footnote...), but can't seem to do that without having to change the whole numbering of the other footnotes in the document. Is there any way to do it?

    Just curious: Why whould you want to add navigation Rules at run time. I believe the navigation rules should be set to begin with - "by s/w Architect Design".
    Else you can always use Redirect / Forward.

  • How can i add a navigation rule at the runtime of JSF?

    Hello,
    how can i add a navigation rule at the runtime of JSF. Maybe i should use the method "addNavigationRule()" in class "FacesConfig", but i do not know, how can i obtain the instance of class "FacesConfig". Can anybody help me?
    Thank you very much!!!

    Just curious: Why whould you want to add navigation Rules at run time. I believe the navigation rules should be set to begin with - "by s/w Architect Design".
    Else you can always use Redirect / Forward.

  • How can I add a black border at the bottom of a photo?

    How can I add a black border at the bottom of a photo?

    Just curious: Why whould you want to add navigation Rules at run time. I believe the navigation rules should be set to begin with - "by s/w Architect Design".
    Else you can always use Redirect / Forward.

  • How can I add a photo to a newly created photo book it the photo wasn't in the album I made the book from? thnx

    how can I add a photo to a newly created photo book it the photo wasn't in the album I made the book from? thnx

    Drag it to the book project in the source pane on the left
    LN

  • How can i add an administrator access so the admin can edit his webpage on the web browser?

    How can i add an administrator access so the admin can edit his webpage on the web browser?

    A content management system or CMS is software usually on the server that allows client's to log-in and edit content from any web browser with an internet connection.  These web pages are typically built with server-side programming (PHP) and databases (MySql). 
    CMSs come big and small.  The right one for your project depends on
         a) your programming skills,
         b) project requirements,
         c) budget.
    COMMERCIAL CMSs:
    Cushy CMS (watch the video to see how it works)
    No PHP or databases required.  Editing is performed on their web site.
    http://www.cushycms.com
    Perch ($59 license per site)
    PHP & MySql required
    http://grabaperch.com/
    WebAssist Power CMS Builder - Extension for DW
    PHP & MySql required
    http://www.webassist.com/dreamweaver-extensions/powercms-builder/
    Adobe Business Catalyst (full subscription includes CMS & web hosting)
    http://www.businesscatalyst.com/
    OPEN SOURCE CMSs:
    Get Simple CMS
    PHP & XML required.
    http://get-simple.info/
    e107 CMS
    PHP & MySql required
    http://e107.org/
    WordPress
    PHP & MySql required
    http://wordpress.org
    Joomla!
    PHP & MySql required
    http://joomla.com
    Drupal
    PHP & MySql required
    http://drupal.com
    Concrete 5
    PHP & MySql required
    http://www.concrete5.org/
    Nancy O.

  • How can I add a line but keep the number I have from tmobile

    How can I add a line but keep the number I have from Tmobile

    Hi, Janice!
    I'm just guessing, but I imagine you'd get your question answered faster in the AE forum.

  • How can I add new games without overwriting the old ones?

    I have just purchased two new games in the itunes store and although they are showing in the library (under applications) my previously purchased games are not. In Summary under games it will not let me choose selected games only 'all games' and when I press sync warns that the existing games will be replaced. How can I add these games without deleting the older ones? Also if I did want to remove a game from my ipod how do I do it?

    hardlyquinn wrote:
    Part of the problem is that I can never sync the whole thing as I dont keep all my music in my library (it seems silly to have my enture cd collection on the computer).
    Clearly it ISN'T silly as it avoid issues like you are having right now. If you need more space, get an external hard drive. To me it is much sillier to only have your stuff on the iPod and no where else as the iPod, as a small portable player, is much more likely to be dropped, lost, damaged, stolen, forgotten somewhere, etc.
    While I am not familiar with the use of games on the iPod (I have never bought any) you can switch the iPod to manually manage and then you can add content to your iPod without losing what is already there. Perhaps it works for games as well.
    But long term, I strongly suggest you keep all your stuff in your library so if you need to (you have to perform a restore on the iPod, you lose it and buy a new one, etc.) you can very easily sync it all back to the iPod when needed.
    Good luck,
    Patrick

  • How can I add keywords for SEO into the code?

    How can I add keywords (for SEO) into the code of a Muse designed site?

    You might also be interested in the upcoming MuseJam on Thursday Muse Jam: Search Engine Optimization | Facebook
    Muse Jam: Search Engine Optimization
    Online May 22, 2013
    Join Principal Product Manager Dani Beaumont of the Adobe Muse team as she explores ways within the Muse application to build search engine optimized sites by way of metadata, keywords, H1 definitions, and sitemap generation. After the presentation we'll open the floor to any questions you might with the application.

  • Cs6 , how can i add a anchor point in the curve in the channel Red or Green?

    Hi
    how can i add an anchor point in the curve in the Channel R / G and B?
    in cs5 , with ctrl + click i was able to click on the image and add an anchor point in the curve channel RGB
    and with shift +ctrl + click i was able to click on the image and add an anchor poing in the channel Red , 1 in the channel Green  and 1 in the channel blue
    i know cs6 doesn't have any more ctrl+mouse click , there is the targeted adjustamanent tool
    i can do it with ctrl+m and call the curve
    but i can't do it with curve adjustament tool
    is there a way to add a anchor point in each channel red , green and blue (like the prev photoshop)?
    thanks

    thanks that's correct! thanks
    but it's not 100% correct
    to add a multiple points in rgb shift+click doesn't work!
    from adobe
    Keyboard shortcuts: Curves
    You can use these keyboard shortcuts for Curves:
    To set a point on the curve for the selected color in each color component channel (but not in the composite channel), Shift+Ctrl-click (Windows) or Shift+Command-click (Mac OS) in the image.
    To select multiple points, Shift-click points on the curve. Selected points are filled with black.
    To deselect all points on the curve, click in the grid, or press Ctrl‑D (Windows) or Command-D (Mac OS).
    To select the next higher point on the curve, press the plus key; to select the next lowest, press the minus key.
    To move selected points on the curve, press the arrow keys.
    (Curves dialog box) To set a point on the curve for the current channel, Ctrl-click (Windows) or Command-click (Mac OS) in the image. 
    If you’re instead using the Curves adjustment, simply click in the image with the On-image adjustment tool .

  • How can i add smiley or special character when creating new contacts?

    how can i add smileys or special character when creating a contact on my contacts? help please...

    I think you need to download an app for that - do a search in the app store.

  • How do I keep a custom letterhead on the first page in Pages 5

    How do I keep a custom letterhead on the first page in pages 5.  I made a custom template using text boxes and when the first page is full, the letterhead moves to the second page and disappears from the first page.  How can I keep it on the first page and not moving to the second page.
    hank

    Hi Hank,
    Text Box at the top of Page 1.
    Select the Text Box and
    Format Panel > Arrange > Object Placement > Stay on Page
    That will stop it moving (flowing) with the text.
    Top of Page 2
    Another way is to put your letterhead in the Page Header of Page 1. Insert a Section Break at the bottom of Page 1 (Click where you want the Section Break and
    Menu > Insert > Section Break).
    Click in Section 2, and
    Document Panel > Section > Headers & Footers > untick Match previous section
    Page 1 with letterhead in the Page Header
    Page 2
    Regards,
    Ian.

  • When I save my book in iBooksAuthor as .ibooks, it does not open on the Intro Media page.  How can I be sure it opens on the first page?

    When I save my book in iBooksAuthor as .ibooks, it does not open on the Intro Media page.  How can I be sure it opens on the first page?

    hello suffaman46, please refer to the documentation provided by yahoo for this issue: http://help.yahoo.com/kb/index?locale=en_US&y=PROD_ACCT&page=content&id=SLN2896

Maybe you are looking for

  • [SOLVED] Unable to boot ISO on USB

    Hello, I'm unable to boot from USB. I have the following error : "Failed to install override security policy: (14) Not Found". I tried the following solution : http://superuser.com/a/676059 But then my computer does not want to boot on the USB. I don

  • As RAW images import into LR I watch as they post but then they seem to update and darken.  Help!

    I'm shooting in RAW on a Sony a900 and the images look fine on the back of the camera.  When I import the raw images to LR, as I watch them come in they look fine, but once all of them get into the library I watch as something seems to update and dar

  • Multiple accounts for GI for stock material

    Hi, Is there any solution to assign multiple GL/Consumption accounts for stock material when Goods Issuance posted. Regards, Ali

  • BBM Group does not see my messages

    I can see everything the group does but noone sees me.  They were able to see my messages before I did a software upgrade to version 4.7.1.61.  I've done a couple of battery pulls and they are not working.  Any ideas? Thanks

  • What has happened to Adobe Media Player

    There are probably better forums for this post however.  It appeats that no one is using or posting or answering in some of the more minor areas of the forum.  Where is the best place to get help on Adobe Media Player/Adobe TV.  I am simply trying to