hello,
I have 2 questions about radiant:
First:
I have layout with sth like this:
<div id="body-left">
<r:content />
</div>
<div id="body-right">
<r:content />
</div>
I make a Page and I want to put in body-left for example: Hello word!
and to body-right: Hello Hello?
how do this? becouse if I write sth it appears the same text in left and
right body
what I should do to make it work?
And the second question:
I have tree:
-Home Page
- About
- 2008
- april
- march
- january
- 2007
- december
- march
- july
- april
how to create a navigation in About page, that it will automaticly
generate menu with years and months?
like this:
2008
april
march
january
2007
december
march
july
april
I have it now like this:
<r:find url="/about">
<r:if_children>
<r:children:each>
<h3><r:link ><r:title/></r:link></h3>
<r:find url="/about/2008">
<r:if_children>
<r:children:each>
<r:link ><r:title/></r:link>
</r:children:each>
</r:if_children>
</r:find>
</r:children:each>
</r:if_children>
</r:find>
but it didn't work the way as I want:)
could anyone could help me with this?
on 12.05.2008 12:47
on 12.05.2008 14:23
On May 12, 2008, at 6:47 AM, Bartłomiej Frydrych wrote: > > I make a Page and I want to put in body-left for example: Hello word! > and to body-right: Hello Hello? > how do this? becouse if I write sth it appears the same text in left > and > right body > what I should do to make it work? make appropriate page parts. r:content defaults the the "body" part <r:content part="your_part_name_here" /> There are some details about this here http://wiki.radiantcms.org/Using_Radiant > - 2007 > march > <r:children:each> > </r:children:each> > </r:if_children> > </r:find> You don't need that second r:find because you are already scoped to the "about" page, and r:link defaults to the page title <r:find url="/about"> <r:if_children> <r:children:each> <h3><r:link /></h3> <r:if_children> <r:children:each> <r:link /> </r:children:each> </r:if_children> </r:children:each> </r:if_children> </r:find> I haven't really used Archive pages much, so off the top of my head I can't give you a code sample, but take a look at using Archive and ArchiveMonthIndex page types -Jim
on 12.05.2008 14:48
ok, I will put sth like this to Layout:
<r:content part="body-right" />
<r:content part="body-left" />
and sth like this to Page for example index
<r:if_content part="body-right">
h2. Hello word!
</r:if_content>
<r:if_content part="body-left">
h2. Hello Frycu!
</r:if_content>
and it doesn't work;/ what is wrong? or I don't understan this...
>You don't need that second r:find because you are already scoped to
>the "about" page, and r:link defaults to the page title
ok but if I don't put this second r:find it give me only 2008 and 2007
link without months...
on 12.05.2008 14:56
>>You don't need that second r:find because you are already scoped to >>the "about" page, and r:link defaults to the page title > > ok but if I don't put this second r:find it give me only 2008 and 2007 > link without months... sorry links works fine thanks for this, now is only first problem;/
on 12.05.2008 15:04
On May 12, 2008, at 8:48 AM, Bartłomiej Frydrych wrote: > and it doesn't work;/ what is wrong? or I don't understan this... Do those parts exist? If you are not familiar with this, all you need to do is click on the green plus (+) icon on whatever page you want to test and add those parts. Then save the page and it should work. >> You don't need that second r:find because you are already scoped to >> the "about" page, and r:link defaults to the page title > > ok but if I don't put this second r:find it give me only 2008 and 2007 > link without months... Do those month pages exist or are you trying to automatically generate that list based on when the child pages have been published? Do you have *any* child pages of 2008 and 2007?_______________________________________________ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
on 13.05.2008 17:47
Jim Gay wrote: > On May 12, 2008, at 8:48 AM, Bartłomiej Frydrych wrote: > >> and it doesn't work;/ what is wrong? or I don't understan this... > Do those parts exist? > If you are not familiar with this, all you need to do is click on the > green plus (+) icon on whatever page you want to test and add those > parts. Then save the page and it should work. > >>> You don't need that second r:find because you are already scoped to >>> the "about" page, and r:link defaults to the page title >> >> ok but if I don't put this second r:find it give me only 2008 and 2007 >> link without months... > > Do those month pages exist or are you trying to automatically generate > that list based on when the child pages have been published? Do you > have *any* child pages of 2008 and > 2007?_______________________________________________ > Radiant mailing list > Post: Radiant@radiantcms.org > Search: http://radiantcms.org/mailing-list/search/ > Site: http://lists.radiantcms.org/mailman/listinfo/radiant ok, I do it once more and everything is fine... strange, but I'm happy that it works:) I have another question, what to do if I want to automaticly post content from - april - march - january in 2008 page??
on 19.05.2008 00:37
I have had this issue and was finding it on Google, luckly i got answer and i signed up to thanks to the support and forum. Great Help! my problem got solved. Thanks! Bartłomiej Frydrych wrote: > Jim Gay wrote: >> On May 12, 2008, at 8:48 AM, Bartłomiej Frydrych wrote: >> >>> and it doesn't work;/ what is wrong? or I don't understan this... >> Do those parts exist? >> If you are not familiar with this, all you need to do is click on the >> green plus (+) icon on whatever page you want to test and add those >> parts. Then save the page and it should work. >> >>>> You don't need that second r:find because you are already scoped to >>>> the "about" page, and r:link defaults to the page title >>> >>> ok but if I don't put this second r:find it give me only 2008 and 2007 >>> link without months... >> >> Do those month pages exist or are you trying to automatically generate >> that list based on when the child pages have been published? Do you >> have *any* child pages of 2008 and >> 2007?_______________________________________________ >> Radiant mailing list >> Post: Radiant@radiantcms.org >> Search: http://radiantcms.org/mailing-list/search/ >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant > > > ok, I do it once more and everything is fine... strange, but I'm happy > that it works:) > I have another question, what to do if I want to automaticly post > content from > - april > - march > - january > in 2008 page??