Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Change theming by looking at URL

 
Ranch Hand
Posts: 41
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm currently using JForum as downloaded from site (not JForum2).

Well, I was going to ask, can I get at the URL in a template? So I can change theming on some pages? However, give me a quiet 10 mins and I trace back, read documentation, and here's the base activity in a line (placed in a template),



Onwards I go, lurching into the unknown (2 days with Java)...

Comments welcome.
 
robert crowther
Ranch Hand
Posts: 41
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A little expanded. Probably not a good idea to include URL data directly (not looked at the class documentation yet),



(not convinced about these code tags yet. Maybe not using it right...)
 
author & internet detective
Posts: 39528
776
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are looking for ${JForumContext.encodeURL('/forumUrl')}. It will make the path of that URL appropriate for your instance of JForum.
 
No, tomorrow we rule the world! With 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!