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 ?

  (bhadreshshiroya)

Number of messages  18
Registration date
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