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 by Debashish on January 01, 2004 at 12:21 PM MST #
Posted by Will Gayther on January 02, 2004 at 03:55 AM MST #
Posted by Matt Raible on January 02, 2004 at 04:10 AM 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 02, 2004 at 05:02 AM MST #
Posted by Will Gayther on January 05, 2004 at 05:43 AM MST #
Posted by Matt Raible on January 05, 2004 at 12:39 PM MST #
Posted by Skip the Budgie on October 11, 2005 at 03:36 PM MDT #