I think I'm confused about exactly what you want. You want a url to the
weblog view for a single category?
$url.category("category")
Of course that is going to return the html weblog page. If you want the
feed for a given category you can use these ...
$url.feed.entries.rss("catetory", false)
$url.feed.entries.atom("category", false)
If all you really want is the weblog entry objects themselves and not
the html or xml, then you can use this in your templates ...
$model.getWeblogEntriesPager("category").items
you could then loop over that collection and display them in any way you
want. I wouldn't suggest using the #showWeblogEntriesInCategory()
macro, it's completely obsolete in Roller 3.0 and you can do more with
the new 3.0 models and macros.
-- Allen
sharps wrote:
Thanks Allen,
$model.weblogCategory.Name does indeed work.
Unfortunately, it doesn't help me.
I need to point to a real URL (invokable via HttpXmlRequest) that lists only
the entries for a given category, ie. #showWeblogEntriesInCategory('_day' 0
$catName) - however I can't use that macro directly because Dojo trips
ovever it before it gets turned into a real URL. So basically I've wrapped
that call in a template and I then invoke the template URL - but I need to
pass in and access an argument (category) to present the correct entries.
Hence I need a way to access the request paramters.
- Rich
Allen Gilliland-3 wrote:
you can get the category object from the request using
$model.weblogCategory
-- Allen
sharps wrote:
[Roller 3.0]
I'm sure I must be doing something wrong here.
I want to get the category request parameter and use the following :
#set($cat = $req.getParameter( $WEBLOGCATEGORYNAME_KEY ) )
but it would seem that $req doesn't exist. I thought it was available to
all
template pages.
I tried $request as well but same problem.
- Rich