• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do I use a different template?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
reply
    Bookmark Topic Watch Topic
  • New Topic