Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23262

Incorrect code documentation for ContentCreateStruct()

    XMLWordPrintable

Details

    Description

      Description of contentTypeId param is incorrect.
      There should be content type id (in form of rest url) instead of content type name.

      ContentCreateStruct.js
      /**
      * Returns a structure used to create a new Content object. See
      * {{#crossLink "ContentService/createContent"}}ContentService.createContent{{/crossLink}}
      *
      * @class ContentCreateStruct
      * @constructor
      * @param contentTypeId {String} Content Type for new Content object (e.g. "blog")
      * @param locationCreateStruct {LocationCreateStruct} create structure for a Location object, where the new Content object will be situated
      * @param languageCode {String} The language code (e.g. "eng-GB")
      */
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            piotr.nalepa-obsolete@ez.no Piotr Nalepa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h