Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Moderator and Admin permission in Freemarker  RSS feed

 
Jackie Bermudez
Greenhorn
Posts: 24
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have a question regarding to this expressions:



I have noticed that I cannot use these expression in all the templates. Why is that? What should I do to make them work in other templates.

Please I need help with this. It is a key for my project.

Thank you!
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jackie,
Out of the box, JForum only defines those for some templates. You can make them available to all templates by adding the following to your ControllerUtils.java file:

 
Jackie Bermudez
Greenhorn
Posts: 24
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much Jeanne!!! I really really appreciate your help. I just put the code a little different, but with the same idea, and it perfectly worked.

Thank you again!

 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's great. The idea is the important part ;). The code I pasted is how we happened to do it here at CodeRanch.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!