Jahia in English > How to add a property...

0 (0 Good)
0 (0 Bad)

How to add a property like systemName auto generation ? (Override that rule ?)

by  thbaymet »  2016/03/13 22:17

I would like to to add a property to my components and define a rule in order to replace some locale chars with another one and not to remove it. 

As an example, if the "title" of a component is "Comment générer" then Jahia creates a default systemName like "comment-gnrer". However this is not useful because it would be nice if we could get "comment-generer". 

Thanks for your help. 

  • How to add a property like systemName auto generation ? (Override that rule ?)
    2016/03/13 22:17

    thbaymet <p>I would like to to add a property to my components and define a rule&nbsp;in order to replace some locale chars with another one and not to remove it.&nbsp;</p> <p>As an example, if the &quot;title&quot; of a component is &quot;Comment g&eacute;n&eacute;rer&quot; then Jahia creates a default systemName like &quot;comment-gnrer&quot;. However this is not useful&nbsp;because it would be nice if we could get &quot;comment-generer&quot;.&nbsp;</p> <p>Thanks for your help.&nbsp;</p>

  • Number of messages  19
    Registration date Mar 13, 2016
    0 (0 Good)
    0 (0 Bad)

    Re: How to add a property like systemName auto generation ? (Override that rule ?)

    by  dgriffon »  2016/03/18 08:58

    Hello,

    What version of Jahia are you using ? 

    The current behavior (Jahia 7.1) of node name generation should match what you expect. 

    However, you can create a rule that will rename any node after creation, but the name you get in the rule is the one generated in the engine, the one with characters escaped.

    Note that if a content has a title, this title will be used to generate the node name.

    In any case it could be interesting to provide a mechanism to let the integrator manipulate the system name generation in the edit engine.

    David

    David Griffon (dgriffon)

    Number of messages  76
    Registration date
    0 (0 Good)
    0 (0 Bad)

    Re : Re: How to add a property like systemName auto generation ? (Override that rule ?)

    by  thbaymet »  2016/03/18 15:48

    Hi,

    Thanks. In fact it is working for the example that I gave but it is not working for all. Ex:

    For those letters ı ə ş Jahia don't know what to do. In my case, I would like to transform all [ə] letters to [e] and all [ı] to [i].

    Can I get the "title" of the node inside of the "rule" and generate my "nodename" on my style and save it on the newly created node ?

    Thanks.

  • Re : Re: How to add a property like systemName auto generation ? (Override that rule ?)
    2016/03/18 15:49

    thbaymet <p>Hi,</p> <p>Thanks. In fact it is working for the example that I gave but it is not working for all. Ex:</p> <p>For those letters ı ə ş Jahia don&#39;t know what to do. In my case, I would like to transform all [ə] letters to [e] and all [ı] to [i].</p> <p>Can I get the &quot;title&quot; of the node inside of the &quot;rule&quot; and generate my &quot;nodename&quot; on my style and save it on the newly created node ?</p> <p>Thanks.</p>

  • Number of messages  19
    Registration date Mar 18, 2016
    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