Hi Jim,

installed extensions:

blog_tags
paperclipped
gallery
comments
ratings
settings

I've started with the styled blog layout. I'm building my own layout on top of that. All extensions work as expected.

The structure for articles, month index, etc. was not changed. The monhly index pages are called from /articles/.

This is part of the trace:

|D:/projects/1009_horibo_production/vendor/radiant/vendor/rails/activesupport/lib/active_support/whiny_nil.rb:52:in
 `method_missing'
D:/projects/1009_horibo_production/vendor/extensions/blog_tags/lib/blog_tags.rb:38:in
 `tag:previous'
D:/projects/1009_horibo_production/vendor/radiant/lib/radiant/taggable.rb:33:in 
`send'
D:/projects/1009_horibo_production/vendor/radiant/lib/radiant/taggable.rb:33:in 
`render_tag'
D:/projects/1009_horibo_production/vendor/radiant/app/models/page_context.rb:10:in
 `initialize'
D:/projects/1009_horibo_production/vendor/radiant/vendor/radius/lib/radius/context.rb:62:in
 `call'
D:/projects/1009_horibo_production/vendor/radiant/vendor/radius/lib/radius/context.rb:62:in
 `render_tag'
D:/projects/1009_horibo_production/vendor/radiant/vendor/radius/lib/radius/context.rb:93:in
 `stack'
D:/projects/1009_horibo_production/vendor/radiant/vendor/radius/lib/radius/context.rb:61:in
 `render_tag'
...

As You can see, the previous tag of blog_tags extension is called (which seems 
to be wrong) and raises this error. This is how I have included
the blog tags in my layout:

<r:if_url matches="^/articles/\d{4}/\d{2}/\d{2}/.+">
   <div class="article-nav">
      
<p><r:previous><r:link>&laquo;&nbsp;<r:title/></r:link>&nbsp;&nbsp;</r:previous>
         <r:next><r:link><r:title/>&nbsp;&raquo;</r:link></r:next></p>
   </div>
</r:if_url>

It seems, like the regex matches, even if the url doesn't contain 3 numbers for 
year, month and date...

Any idea?


|




Am 20.09.2010 20:48, schrieb Jim Gay:
On Mon, Sep 20, 2010 at 4:40 PM, Horst Rischbode<ho...@horibo.de>  wrote:
  Hi,
I'm on 0.9.1 and will use radiant as a blog. I've created an Archive Month
Index and want to use it like this:

<ul>
<r:find url="/articles/">
<r:children:each order="desc">
<r:header><li><a href="<r:date format="/articles/%Y/%m/" />"><r:date
format="%B %Y" /></a></li></r:header>
</r:children:each>
</r:find>
</ul>

The links are generated correctly but when I click on any of them, I get an
error:

NoMethodError in SiteController#show_page
undefined method `>' for nil:NilClass
...
Parameters:
{"url"=>["articles",
"2010",
"09"]}

What am I doing wrong? Any help would be appriciated!

Best Regards
Horst

Can you provide more details about the error? And more details about
your extensions, and radius tags used.




Reply via email to