Radiant as a news a bit more improved

Hi everyone,

I am new to Radiant, and I need some help. I have a website that have
static pages and news.

My news have a field for the source(where i found it) and a field for
an url to the source.

Radiant can be modified to to have these fields in pages that are
child of “Articles”? How to do this?

Any help is appreciated.

Thanks,
Mergulhão

On 3/26/07, Sylvestre Mergulhão [email protected] wrote:

My news have a field for the source(where i found it) and a field for
an url to the source.

You can do what many people do with Radiant in such cases: use page
parts.

Simply create a new page part named “source” and put relevant
information
there. After that you can render this information where and when you see
fit.

My news have a field for the source(where i found it) and a field for
an url to the source.

I forgot to say that each Article belongs to one category, that are
selected among five others.

Thanks,
Mergulhão

You can do what many people do with Radiant in such cases: use page parts.

Simply create a new page part named “source” and put relevant information
there. After that you can render this information where and when you see
fit.

Ok, I understood. But are there a way to make a new form page with
these fields in admin? So I can create the news in a intuitive way. If
not, it will be to boring… create a page for a news, create a page
part for the source. And so on for any new news.

Thanks,
Mergulhão

For this you are going to need some sort of tagging support. I have
an extension that is about half done, though I am not sure how long
it will take. There were some name space issues, but those are pretty
much solved. One thing you can do is a bit of a hack: use a part with
the name of your category, i.e. “News” or “Sports”. The using the
<r:if_part /> tag you can filter them out.

Like I said, a hack, but it does work. A little tough on the database
perhaps…

Keith B.
Tel: +49-7731-79838380
[email protected]

these fields in admin? So I can create the news in a intuitive way. If
not, it will be to boring… create a page for a news, create a page
part for the source. And so on for any new news.

Yes there is - have a look at the code in the facets branch and/or have
a look in the archives of the radiant-dev list for some
discussion on that branch.

I did a similar thing (but not using facets, using my own pre-facets
‘admin_parts’ extension which isn’t nearly as cool) - have a
look through the code at
http://soxbox.no-ip.org/radiant/svn/extensions/x_groggy/ - I’ve got a
custom ComicPage and also a custom
GroggyArticlePage that add fields to the admin screen and store them in
a separate table.

Dan.

On 3/26/07, Daniel S. [email protected] wrote:

I did a similar thing (but not using facets, using my own pre-facets ‘admin_parts’ extension which isn’t nearly as cool) - have a
look through the code at http://soxbox.no-ip.org/radiant/svn/extensions/x_groggy/ - I’ve got a custom ComicPage and also a custom
GroggyArticlePage that add fields to the admin screen and store them in a separate table.

Oh! Thats what I need. I will look your code!

Thanks

Dan,

Your extension is for the mental branch or works with 5.2 too?
I’m i bit confused with the versions yet.

On 3/26/07, Keith B. [email protected] wrote:

For this you are going to need some sort of tagging support. I have an
extension that is about half done, though I am not sure how long it will
take. There were some name space issues, but those are pretty much solved.
One thing you can do is a bit of a hack: use a part with the name of your
category, i.e. “News” or “Sports”. The using the <r:if_part /> tag you can
filter them out.

But how can I make a form page that contain these extra fields that i
need and when a do the “submit” it automagically create these part
pages? So a i dont need to create it by hand for every news.

Like I said, a hack, but it does work. A little tough on the database
perhaps…

Hack the code and the database is not a problem. I am just asking here
whats the better way to do what a I need because I am new to radiant,
and start learning its code yesterday.

Thanks
Mergulhao