Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8585

Autocompletion in join query does not work on 2nd level

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.0
    • None
    • None
    • None

      I have a repeater which contains a metadata of type "CONTENT"

      The autocompletion is stopped after "composite/repeater->comp-linkContents"
      !ametys join=composite/repeater->comp-linkContents q=""
      No more completion in join, no more completion in "q".

      Whereas if I have !ametys join=linkArticle q="", I have a full autocompletion in "q" and in join, only 3 composite metadata are proposed (see screenshots)

          [CMS-8585] Autocompletion in join query does not work on 2nd level

          CMS-8584 is only about completion in columns. Do you want me to create and process a ticket for having system properties in join queries ?

          Simon Prieul (Inactive) added a comment - CMS-8584 is only about completion in columns. Do you want me to create and process a ticket for having system properties in join queries ?

          Ok, I set this one as Resolved

          Simon Prieul (Inactive) added a comment - Ok, I set this one as Resolved

          Yes the rest of this issue is linked to another issue https://issues.ametys.org/browse/CMS-8584

          Laurence Aumeunier added a comment - Yes the rest of this issue is linked to another issue https://issues.ametys.org/browse/CMS-8584

          1. if you type a content metadata with a given content-type, there is no common system property (and title is not common property but still declared by the content type)

          Simon Prieul (Inactive) added a comment - if you type a content metadata with a given content-type, there is no common system property (and title is not common property but still declared by the content type)

          Simon Prieul (Inactive) added a comment - - edited

          so IMO nothing to deal with autocompletion on 2nd level

          Simon Prieul (Inactive) added a comment - - edited so IMO nothing to deal with autocompletion on 2nd level

          A schweppes !

          I can expect the common system properties and title field, no ?

          Laurence Aumeunier added a comment - A schweppes ! I can expect the common system properties and title field, no ?

          There was an error in the JS console that I fixed.

          But though, in your example, the metadata comp-linkContents does not declare any content type (while linkArticles refers to a metadata of type content with contentType org.ametys.web.default.Content.article), so there is no metadata to display (what would you expect ?)

          Simon Prieul (Inactive) added a comment - There was an error in the JS console that I fixed. But though, in your example, the metadata comp-linkContents does not declare any content type (while  linkArticles refers to a metadata of type content with contentType org.ametys.web.default.Content.article ), so there is no metadata to display (what would you expect ?)

            sprieul Simon Prieul (Inactive)
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: