• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

How do I use a different template?

 
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 https://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 https://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]
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!