Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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]
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic