Uploaded image for project: 'Content Editor'
  1. Content Editor
  2. CONTEDIT-505

Logic to get the proper nodeName while creating a new story

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 2.1.3
    • None

    Description

      While creating a new story, users are not able to use url-slug to define the nodeName. Instead, the system always look at the title (if not null) to name for that node. By checking the code, we saw the logic force to use title only. Please clarify if we need a fix for that. 

       

       @Override

          protected void write() {

              Node item = valueContext.getSingleOrThrow();

              boolean isUntitledItem = item.isNew();

              form.write(item);

              datasource.commit(item);

              String jcrName = jcrNameContext.jcrName().nullableValue();

              boolean isBlank = jcrName != null && jcrName.length() == 0;

              if (isUntitledItem || isBlank) {

                  updateNodeName(item);

              }

              datasourceObservation.trigger();

          }

       

      Thanks.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              tu.bo Tu Bo Xuan
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD