Hi Edmund,

You´re right, it´s a Gallery Page.

When you visit /blog I want to display images from the children of the
gallery named Fotoblog.
E.g. 3 images from each children and a link to child gallery. -> blog/summer
When you visit blog/summer, then I would like to display the images that
gallery contains. :)

How can I define which gallery to act as base when you visit /blog and still
be able to use access it´s children by /blog/children?
If I define fotoblog as the base gallery for the /blog page, then /blog
renders what I want it to, but I´m no longer able to access it´s children
through /blog/child.


The layout follows:

<div class="wrapper">

    <r:galleries:each level="current">
      <h2>
        <a href="/blog/<r:gallery:name/>"> <r:gallery:name/> </a>
      </h2>
      <span class="date"><r:gallery:date format="%d %B %Y" restart="month"
/></span>  <!-- This is not, but I would like it to be "created_at" for the
gallery -->

      <r:gallery:items:each by="position" sort="asc">
        <img src="<r:gallery:item:thumb prefix="blog" geometry="990x660"/>"
 width="990" height="660" alt="Foto - Christian Bielke">
      </r:gallery:items:each>
    </r:galleries:each>

    <r:gallery:items:each by="position" sort="asc">
      <img src="<r:gallery:item:thumb prefix="blog" geometry="990x660"/>"
 width="990" height="660" alt="Foto - Christian Bielke">
    </r:gallery:items:each>

</div>


Cheers,
Martin


2010/9/13 Haselwanter Edmund <edm...@haselwanter.com>

> Hi,
>
> This depends on the page type. The Problem is that the match is done
> against the url the
> page "sees". This is where the page paradigm fails. As I read you have a
> Gallery Page here?
> I kknow for sure that this does not work on "galleries". You could use some
> gallery specific tags.
>
> btw.
>
> a super-duper ruby regexp checker is at http://rubular.com/
>
> On 13.09.2010, at 09:56, Martin Stabenfeldt wrote:
>
> Thanks for the tips, but it does not work I´m afraid.
>
>   <r:if_url matches="^/blog/$">
>     #1 Should only match /blog   # MATCHES /blog AND /blog/dssp    <br>
>    </r:if_url>
>
>   <r:if_url matches="^/blog/.">
>     #2 Should only match /blog/dssp  # NEVER MATCHES /blog/dssp NOR /blog
> <br>
>   </r:if_url>
>
>
> 2010/9/13 Steven Southard <ste...@stevensouthard.com>
>
>>
>> On Sep 13, 2010, at 12:15 AM, Martin Stabenfeldt wrote:
>>
>> Hi,
>>
>> I´m having some difficulties to get the if_url to work with Radiant 0.9.1.
>>
>> The ROOT match works, but as soon as I try to match deeper it fails.
>> When I visit the url site.com/blog/dssp I would expect either the CHILD
>> GALLERY match or the DSSP match to work, but non of them does.
>> The template only contains one if_url.
>>
>> <r:if_url matches="^/blog/$">
>>     ROOT GALLERY  # Matches site.com/blog AND site.com/blog/dssp
>> </r:if_url>
>>
>> <r:if_url matches="/blog/.+/">
>>     CHILD GALLERY # Does not match site.com/blog nor site.com/blog/dssp
>> </r:if_url>
>>
>> <r:if_url matches="/blog/dssp/">
>>     DSSP # Does not match site.com/blog nor site.com/blog/dssp
>> </r:if_url>
>>
>>
>> What am I missing out?
>>
>>
>> --
>> Martin Stabenfeldt
>> Tlf: +47 93441707
>>
>>
>>
>> Try ^/blog/.
>>
>
>
>
> --
> Martin Stabenfeldt
> Tlf: +47 93441707
>
>
>   --
> DI Edmund Haselwanter, edm...@haselwanter.com,
> http://edmund.haselwanter.com/
> http://www.iteh.at | http://facebook.com/iTeh.solutions |
> http://at.linkedin.com/in/haselwanteredmund
>
>
>
>
>
>


-- 
Martin Stabenfeldt
Tlf: +47 93441707

Reply via email to