This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JForum and the fly likes Change theming by looking at URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Change theming by looking at URL" Watch "Change theming by looking at URL" New topic
Author

Change theming by looking at URL

robert crowther
Ranch Hand

Joined: Oct 19, 2013
Posts: 41
    
  10
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

Joined: Oct 19, 2013
Posts: 41
    
  10
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...)
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32633
    
215

I think you are looking for ${JForumContext.encodeURL('/forumUrl')}. It will make the path of that URL appropriate for your instance of JForum.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change theming by looking at URL
 
It's not a secret anymore!