Uploaded image for project: 'Content Types'
  1. Content Types
  2. MGNLCT-90

Too hard to reference items from stock content apps with CT

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1
    • None
    • None
    • Yes
    • Yes
    • Features 3
    • 8

      As a developer or business analyst I want to easily add properties to my CT that reference the stock content apps, so that I can fulfull project requirements.

      Acceptance Criteria

      • When a developer creates a CT that references a stock app, they need only to use the simple reference property and supply the name of the CT for that app.

      Rationale:

      • Currently it confusing to link to stock apps, a developer must decorate the existing apps and create CT files.
      • It is a common use case.
      • Doing this has another important benefit which is making the content model of the stock Magnolia installation immediately clear and understandable.

       

      Suggestion:

      Convert the key stock content apps to have the contentType class so that they can be referenced:

      • Assets App
      • Categories app
      • Pages App
      • Stories App

      And in the travel demo

      • Tours app

      (But not the Contacts app. Because it is not commonly used in projects and is more of a demonstration.)

       

      Note that all that is required is to change the class of the app, and add a contentType field.

      And to create a simple CT so that referencing is possible. the CT for these apps does not need to include all of the properties. Something like this will suffice:

      datasource:
        workspace: website
      

        Acceptance criteria

              sang.ngo Sang Ngo Huu
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD

                    Estimated:
                    Original Estimate - 4d
                    4d
                    Remaining:
                    Time Spent - 1d Remaining Estimate - 3d
                    3d
                    Logged:
                    Time Spent - 1d Remaining Estimate - 3d
                    1d