Jahia Template Forum > Limit the metadata...

0 (0 Good)
0 (0 Bad)

Limit the metadata description to 160 chars

by  pthornton »  2013/10/30 10:58

Hello,

Is there a way to limit the metadata description to 160 chars? I try to redefine the jcr:description in my cnd with no results:

[jmix:description] mixin
 itemtype = metadata
  - jcr:description (string,textarea) i18n itemtype = metadata < "^.{0,160}$"
 
Any help would be appreciated.
 
Peter
  • Limit the metadata description to 160 chars
    2013/10/30 10:58

    pthornton <p> Hello,</p> <p> Is there a way to limit the&nbsp;metadata description to 160 chars? I try to redefine the&nbsp;jcr:description in my cnd with no results:</p> <div> [jmix:description] mixin</div> <div> &nbsp;itemtype = metadata</div> <div> &nbsp; - jcr:description (string,textarea) i18n itemtype = metadata &lt; &quot;^.{0,160}$&quot;</div> <div> &nbsp;</div> <div> Any help would be appreciated.</div> <div> &nbsp;</div> <div> Peter</div>

  • Number of messages  1
    Registration date Oct 30, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Limit the metadata description to 160 chars

    by  root »  2013/11/12 17:05

    Hello,

    this is a known issue of the current version of Jahia, you cannot redefine in your module the constraints for the nodetype.
     
    Unfortunatly, until we fix the issue, either you change the definition directly in Jahia, either you create your new type for that purpose.
     
    best regards
     
    David 

      (root)

    Number of messages  5
    Registration date Aug 29, 2017
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page