Wednesday December 31, 2003
Roller Tips: Titles as Permalinks and Category Display A few more tips for your Roller blog. You can edit your "_day" template to make your titles permalinks. I just added this feature to this site - try it now by clicking on this title for any post. To enable this feature, simply wrap your $entry.title element with a permalink URL. For example, change <b>$entry.title</b> to the following:
<a href="$baseURL/page/$userName?anchor=$entry.anchor" style="font-style: bold; color: black">$entry.title</a>
Adjust the style as appropriate for your theme. The second tip is to add the ability for users to see the category you've posted to. Simply add the following under the $entry.title entry to display the category name in the top right corner of the post:
<span class="dateStamp" style="float: right">
Category: $entry.category.name</span>
Again, the CSS for the span may depend on your theme. Lastly, if you click on a permalink for your blog and you're not routed to the specific entry you expect, for the love of God add the following before your $entry.title.
<a name="$entry.anchor" id="$entry.anchor"></a>
Posted in Roller
at Dec 31 2003, 02:57:34 PM MST
7 Comments
Search This Site
Recent Entries
- Wine Tasting in Napa Valley
- How to build a Shot-Ski
- Bus Project Update
- Farewell to the 2011-2012 Ski Season
- Cruising around the Western Caribbean
- Spring Break!
- A Spectacular Trip to Stockholm and Madrid
- Comparing Web Frameworks and HTML5 with Play Scala at Jfokus 2012
- Play Framework 2.0 with Peter Hilton at Jfokus
- Secure JSON Services with Play Scala and SecureSocial
Posted by Debashish on January 01, 2004 at 06:21 AM MST #
Posted by Will Gayther on January 01, 2004 at 09:55 PM MST #
Posted by Matt Raible on January 01, 2004 at 10:10 PM MST #
With a request url of "http://localhost:8080/testgeturl.jsp?bob=5&tom=4#someanchor"
The output is: bob=5&tom=4 <p/>Any other ideas? I assumed that perhaps the anchor wasn't sent with the html request...but obviously that isn't the case!
Posted by Will Gayther on January 01, 2004 at 11:02 PM MST #
Posted by Will Gayther on January 04, 2004 at 11:43 PM MST #
Posted by Matt Raible on January 05, 2004 at 06:39 AM MST #
Posted by Skip the Budgie on October 11, 2005 at 09:36 AM MDT #