Jahia Dev Forum > Can i Change Core...

2 (2 Good)
0 (0 Bad)

Can i Change Core Componants in Jahia ?

by  bhadreshshiroya »  2014/02/22 12:22

How to Change the Jahia  "jnt:page"  Core Componants ?

 

In this Loction I have change

E:\jahiaserver\tomcat\webapps\ROOT\modules\default\jnt_page\html\page.menuElement.groovy

 

In this Page Content

title = currentNode.displayableName
//                    +index+" "+ nbOfChilds+" "+closeUl
description = currentNode.properties['jcr:description']
linkTitle = description ? " title=\"${description.string}\"" : ""
 
link = currentNode.url
 
print "<a href=\"${link}\"${linkTitle}>${title}</a>"
but i have restart the  server so change reflected in jahia because all war file deploy 
 
Can I  jnt:page inherits my custom module ?
  • Can i Change Core Componants in Jahia ?
    2014/03/03 14:02

    bhadreshshiroya <p> How to Change the Jahia &nbsp;&quot;jnt:page&quot; &nbsp;Core Componants ?</p> <p> &nbsp;</p> <p> In this Loction I have change</p> <p> E:\jahiaserver\tomcat\webapps\ROOT\modules\default\jnt_page\html\<strong>page.menuElement.groovy</strong></p> <p> &nbsp;</p> <p> In this Page Content</p> <blockquote> <div> title = currentNode.displayableName</div> <div> // &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+index+&quot; &quot;+ nbOfChilds+&quot; &quot;+closeUl</div> <div> description = currentNode.properties[&#39;jcr:description&#39;]</div> <div> linkTitle = description ? &quot; title=\&quot;${description.string}\&quot;&quot; : &quot;&quot;</div> <div> &nbsp;</div> <div> link = currentNode.url</div> <div> &nbsp;</div> <div> print &quot;&lt;a href=\&quot;${link}\&quot;${linkTitle}&gt;${title}&lt;/a&gt;&quot;</div> </blockquote> <div> but i have restart the &nbsp;server so change reflected in jahia because all war file deploy&nbsp;</div> <div> &nbsp;</div> <div> Can I &nbsp;jnt:page inherits my custom module ?</div>

  • Number of messages  18
    Registration date Feb 22, 2014
    1 (1 Good)
    0 (0 Bad)

    Re: Can i Change Core Componants in Jahia ?

    by  rvt »  2014/03/01 23:06

    The quick nd easy way is to add it to your template, this is where it most lickly belong's.
     
    Just copy jnt_page/html/page.menuElement.groovy and jnt_page/html/page.menuElement.properties to your own template and deploy that.
    You can then modify it and up-on re-deploy it willagain be available for you.
     
  • Re: Can i Change Core Componants in Jahia ?
    2014/03/03 13:55

    rvt <div> The quick nd easy way is to add it to your template, this is where it most lickly belong&#39;s.</div> <div> &nbsp;</div> <div> Just copy jnt_page/html/page.menuElement.groovy and jnt_page/html/page.menuElement.properties to your own template and deploy that.</div> <div> You can then modify it and up-on re-deploy it willagain be available for you.</div> <div> &nbsp;</div>

  • Number of messages  185
    Registration date Mar 1, 2014
    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