This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of DevSecOps Adventures: A Game-Changing Approach with Chocolate, LEGO, and Coaching Games and have Dana Pylayeva on-line! See this thread for details.
Hi,
I see in the bottom.htm there is ${usersOnline} where you get the status of the user.
I?m personalizing the template and I need only the number of connected users the ${usersOnline} returns me a sentence.
Where can I change the code to add and entry to do this like ${numberUsersOnline}? Is there documentation or something I can read to understand this model?
TIA
Marco [originally posted on jforum.net by radar]
Hi,
I see the ${totalOnlineUsers} is valid only for the home page but if I go to login page, for instance, this entry doesn't exist. Is there a way that I make it global?
I see ${forumTitle?default("JForum")} entry in the header.htm, for instance
For performance reasons, the "global" template variables are pretty much static lookups from the cached config file. However, if you need some custom globals, it's not too hard to modify the prepareTemplateContext method in the ControllerUtils class to add what you need. [originally posted on jforum.net by monroe]
Thanks. So can i just not add static variable to config file? if not can you help me with modifying prepareTemplateContext method? I am not really Java person. [originally posted on jforum.net by hsb]
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me: