I need to build a small archive, but not really a date based one. I
just need to show 5 Articles at a time, then the next five. I assume
a behavior would do this, but actually at the moment have no idea how
to start. Any tips and prods in the right direction appreciated.
I’m not sure how to automatically increment the offset, but this would
be kinda what’s needed:
It’s probably better to create a layout with a content type of
“text/css” and put just the tag <r:content /> in the layout. Then create
a page, assign the layout, and paste your css in the body part.
Well, i figured out how to apply css to one page, but the children
won’t use the styles. I just don’t get a site-wide css working with
the possibilties radiant offers. How it works with a static css file
is clear to me. Can someone give me a little more help ?
It’s probably better to create a layout with a content type of
“text/css” and put just the tag <r:content /> in the layout. Then create
a page, assign the layout, and paste your css in the body part.
Well, i figured out how to apply css to one page, but the children
won’t use the styles. I just don’t get a site-wide css working with
the possibilties radiant offers. How it works with a static css file
is clear to me. Can someone give me a little more help ?
Create a temporary Radiant instance and when you run script/setup_db
select option 3 (styled blog). This seems to do what you are asking
for.
To avoid having stylesheets in my sitemaps, I create a page part named
“no-map”. Then I do <r:children:each><r:unless
part=“no-map”></r:unless></r:children>
On the Ruby site we put the stylesheets in public/stylesheets.
Given the difficulty of keeping the stylesheet out of the navigation
(when working with r:children:each) if you put your CSS in the
database, moving the stylesheet out of Radiant seems like the best
practice to me, no? Or we should have some sort of fifth status
option: draft/review/published/hidden/hiddenfromnav. What’s the
meaning of the current ‘hidden’, BTW?
--
Steven N. http://outerthought.org/
Outerthought Open Source Java & XML
stevenn at outerthought.org stevenn at apache.org
… we should have some sort of fifth status
option: draft/review/published/hidden/hiddenfromnav. What’s the
meaning of the current ‘hidden’, BTW?
I agree we should have a status of “special” or something like that for
stylesheets and content that would not be included by default in
eachlistings and similar.
Not every content is going to be a regular page.
Giovanni, having that would save you a “no-map” hack
I know that something like that would save a hack, but I’m starting to
think
that page parts should be naturally used to describe attributes of the
page.
I know that something like that would save a hack, but I’m starting to
think that page parts should be naturally used to describe attributes of the
page.
Funny. I always thought that page parts should be naturally used to hold
parts of the page.
What next, you will need revision date attribute besides published date
and
you will start creating page parts everywhere holding a timestamp and
being
named ‘revision date’?