Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-23567

Flexible way to customize cut method for site title in tabs.

    Details

    • Type: Feature Request
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.2
    • Fix Version/s: 10.0
    • Component/s: Portal
    • Labels:
    • Property addition/change required:
      Yes

      Description

      The property site.title.maxlength allow long site titles fix the UI by cutting the end of the title in tabs.

      We've got many long site titles and very similar, for example, "This is the subject part I", "This is the subject part II". In these cases both cutted titles appears to be the same "This is the subj...".

      We want a more flexible way to do it. With 2 new properties:

      site.title.cut.method = customize the cut method. Default 100:0.
      site.title.cut.separator = separator string. Default ...

      The value has the format X:Y, wich means X percent of maxlength at the beginning and Y percent of maxlength at the end. Now if you choose 50:50 and [...], the above example, will get something like "This is[...]part I" and "This is[...]part II".

      1. Max length for site title display
      2. Default 25 characters
        #site.title.maxlength=25
      1. Cut method for site title display
      2. Default 100:0 display the first site.title.maxlength characters and the separator string at the end
      3. Other values:
      4. 0:100 display the last site.title.maxlength characters and the separator string at the beginning
      5. 50:50 display first site.title.maxlength*50% characters the separator string and the last site.title.maxlength*50%
        #site.title.cut.method=100:0
      1. Separator string used to separate characters in cut method
      2. Default ...
        #site.title.cut.separator= ...

        Gliffy Diagrams

          Attachments

          1. SAK-23567.pda.patch
            2 kB
          2. SAK-23567.patch
            6 kB
          3. SAK-23567.moresites.patch
            2 kB
          4. portal_SAK-23567.patch.txt
            8 kB
          5. PDA View.jpg
            PDA View.jpg
            98 kB
          6. MoreSites View.jpg
            MoreSites View.jpg
            114 kB
          7. Default.jpg
            Default.jpg
            133 kB
          8. 50.50.jpg
            50.50.jpg
            134 kB
          9. 50.50 ....jpg
            50.50 ....jpg
            132 kB
          10. ###0.100.jpg
            ###0.100.jpg
            136 kB

            Issue Links

              Activity

                People

                • Assignee:
                  aaronz Aaron Zeckoski (Inactive)
                  Reporter:
                  jjmerono@um.es Juan José Meroño Sánchez
                • Votes:
                  3 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code