Probably newbie question: how to add news without having them all appear in the content tree?
This is probably a newbie question as I'm very very new to Umbraco and just started having a look at it.
In my site I've to a page that lists one newsitem per day: the naive way is to add them all as normal pages, but then I'd have one node in the content tree per page added. which means that by the end of the year I'll have 365 leafs in the tree, which is pretty unconvienient.
A colleague of mine suggested that we create our own admin page, integrated with the umbraco admin, and that we save data to our own tables (and read from it later). But that doesn't sound to me like the idiomatic way of doing things in umbraco.
What do you suggest doing? Is using your own tables the correct approach or is there a better (in umbraco terms) to do it?
I think the umbraco way is as you stated create one item per day. There is a great package "autofolder" which you could use to not have all 365 * years leafes in on folder. Autofolder can be easely configured to create structures like
+ News
-+2010
--+Janurary
--+February
--+ and so on
where you only stor those items created in Janurary 2010.
I'll suggest that you the autofolder package to seperate all the posts. This package creates a folder structure (Year-month-Day) based on the creationdate of the page. So in this case you don't have the 365 pages in one folder. Going to the database for this isn't very Umbracoish indeed
But imagine you have more than one item per day, or maybe you want a different UI to enter text: would I use directly the database to store them, or is there some kind of library to use in order to store data in the umbraco way?
More than 1 item per day is easy with autofolders, still the Umbraco way. One example to store data in an external database is this forum. The forum itself is stored in Umbraco (Extending Umbraco) The topics and replies are stored in an external database. Otherwise hundreds oif thousond of nodes would be created and that would be overkill. There is no silver bullet to determine where to store data, but I would only think, my rule is to store all content in Umbraco so in your case all news items would go into Umbraco.
What do you mean with a different UI. Umbraco is ultra flexible, you can create your own datatypes(fields) and use them to enter your text.
Maybe It looks nice, but then you have to program a lot. Ìf you use the normal Umbraco way data editing comes for free. And if you want to pick a date, use a datetime property on your document and you can select a publish date and use that on the site to display the news article for that day..
Probably newbie question: how to add news without having them all appear in the content tree?
This is probably a newbie question as I'm very very new to Umbraco and just started having a look at it.
In my site I've to a page that lists one newsitem per day: the naive way is to add them all as normal pages, but then I'd have one node in the content tree per page added. which means that by the end of the year I'll have 365 leafs in the tree, which is pretty unconvienient.
A colleague of mine suggested that we create our own admin page, integrated with the umbraco admin, and that we save data to our own tables (and read from it later). But that doesn't sound to me like the idiomatic way of doing things in umbraco.
What do you suggest doing? Is using your own tables the correct approach or is there a better (in umbraco terms) to do it?
Thank you
Simone
Hi,
I think the umbraco way is as you stated create one item per day. There is a great package "autofolder" which you could use to not have all 365 * years leafes in on folder. Autofolder can be easely configured to create structures like
+ News
-+2010
--+Janurary
--+February
--+ and so on
where you only stor those items created in Janurary 2010.
Have a look here
Hope this helps
Toby
Hi Simone,
I'll suggest that you the autofolder package to seperate all the posts. This package creates a folder structure (Year-month-Day) based on the creationdate of the page. So in this case you don't have the 365 pages in one folder. Going to the database for this isn't very Umbracoish indeed
Cheers,
Richard
But imagine you have more than one item per day, or maybe you want a different UI to enter text: would I use directly the database to store them, or is there some kind of library to use in order to store data in the umbraco way?
More than 1 item per day is easy with autofolders, still the Umbraco way. One example to store data in an external database is this forum. The forum itself is stored in Umbraco (Extending Umbraco) The topics and replies are stored in an external database. Otherwise hundreds oif thousond of nodes would be created and that would be overkill. There is no silver bullet to determine where to store data, but I would only think, my rule is to store all content in Umbraco so in your case all news items would go into Umbraco.
What do you mean with a different UI. Umbraco is ultra flexible, you can create your own datatypes(fields) and use them to enter your text.
Cheers,
Richard
I mean, I want to have a calendar-like UI to enter data for each day
Maybe It looks nice, but then you have to program a lot. Ìf you use the normal Umbraco way data editing comes for free. And if you want to pick a date, use a datetime property on your document and you can select a publish date and use that on the site to display the news article for that day..
Cheers,
Richard
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.