Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I use a different template?  RSS feed

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jForum Documentation Templates and styles http://www.jforum.net/doc/TemplatesAndStyles
All JForum templates are stored in the directory templates, where each sub-directory is a template name, being the default template name callled default. There you will find all HTML files, as well Javascripts, images and CSS files.

Hi, I have created some new templates and placed them in a new directory jforum/templates/my-template/.

jForum Community Forum http://www.coderanch.com/t/574712 #2141
Open WEB-INF/config/SystemGlobals.properties and put "my-template" in the key "templateName". That's all. Of course you'll need to have all templates into this new diretory.

Rafael

Yes I have all the needed templates in the new diretory. I can not find the key "templateName" in the WEB-INF/config/SystemGlobals.properties.

:?:How do I get jForum to read the new template directory :?:
[originally posted on jforum.net by langie]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
langie wrote: jForum Documentation Templates and styles http://www.jforum.net/doc/TemplatesAndStyles
All JForum templates are stored in the directory templates, where each sub-directory is a template name, being the default template name callled default. There you will find all HTML files, as well Javascripts, images and CSS files.

Hi, I have created some new templates and placed them in a new directory jforum/templates/my-template/.

jForum Community Forum http://www.coderanch.com/t/574712 #2141
Open WEB-INF/config/SystemGlobals.properties and put "my-template" in the key "templateName". That's all. Of course you'll need to have all templates into this new diretory.

Rafael

Yes I have all the needed templates in the new diretory. I can not find the key "templateName" in the WEB-INF/config/SystemGlobals.properties.

:?:How do I get jForum to read the new template directory :?:

Do you see a "template.dir=default" entry in your SystemGlobals file? Put your new template directory name in the place of default.
[originally posted on jforum.net by GatorBait3]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GatorBait3 wrote:
Do you see a "template.dir=default" entry in your SystemGlobals file? Put your new template directory name in the place of default.


Yes I found the key 'template.dir' and it works really well. I am very happy because I can now make my own set of templates.

I feel that the location of this important key should be included in the 'Templates and Styles' document http://www.jforum.net/doc/TemplatesAndStyles

Thank you for your really fast reply.
[originally posted on jforum.net by langie]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!