Hello,
I'm new here so if this has been asked before I apologize, I've had a
look though the archives and could see anything.

I've followed the excellent RadiantCast videos on blogs but I've ran
into a slight problem, I understand that if I wish to pull my recent
blog posts on say the home page I can use the following:

 <r:find url="/blog/">
      <r:children:each order="DESC" limit="5">
  <div class="blog-post">
      <h3><r:link /></h3>
      <span> - <r:date /></span>
  </div>
    </r:children:each>
    </r:find>

However if I was on a sub page about say hotels, is there anyway I
could pull only the pages that I've tagged hotels? Something like

    <r:find url="/blog/">
      <r:children:each order="DESC" limit="5">
<r:if_tags="hotel">
  <div class="blog-post">
      <h3><r:link /></h3>
      <span> - <r:date /></span>
  </div>
</r:if_tags>
    </r:children:each>
    </r:find>

does anyone have any ideas? After a bit of research I came across this
bit of code which would involve added a content part called 'hotels'
to the blog posts that I wish to display however it didn't seem to
work for me and it wouldn't be the best setup to have these content
parts in addition to tags.

    <r:find url="/blog/">
      <r:children:each order="DESC" limit="2">
<r:if_content part="hotels">
  <div class="blog-post">
      <h3><r:link /></h3>
      <span> - <r:date /></span>
  </div></r:if_content>
    </r:children:each>
    </r:find>

Any help would be much appreciated! Thanks!!

Reply via email to