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
- Jack's Mohawk
- LinkedIn Cuts 10% (a.k.a. The Journey is Over)
- Happy Birthday Abbie!
- Moving from Spring's XML to Annotations in AppFuse
- Free Maven Training in New Orleans on Election Day
- AppFuse Light ยป AppFuse, Maven Archetypes and Shared Web Assets
- Great Weekend in Montana
- Colorado Software Summit 2008 Wrapup
- RESTful Web Applications with Subbu Allamaraju
- Core Animation with Bill Dudney
Posted by Debashish on January 01, 2004 at 05:21 AM MST #
Posted by Will Gayther on January 01, 2004 at 08:55 PM MST #
Posted by Matt Raible on January 01, 2004 at 09: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 10:02 PM MST #
Posted by Will Gayther on January 04, 2004 at 10:43 PM MST #
Posted by Matt Raible on January 05, 2004 at 05:39 AM MST #
Posted by Skip the Budgie on October 11, 2005 at 09:36 AM MDT #