Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a requirement where I need to archive the content from Monday to Monday. for example this week (starting from monday to the next monday) has some content and next week has different content. Before changing the content next monday i need the previous weeks content to be archived.
I hope my question is clear
Is there any way to da that..
you can set an individual piece of content to be published and also unpublished on certain dates..
Here is how I would do this, but there is probably several different methods:
Set up a news or blog type of section and modify it to your needs. Have it set up so it uses Date folders to make viewing archived documents easy. Modifying or using the Blog4Umbraco package may be sufficient.
Create a document type and node/page for your current item e.g. /latestNews.aspx
Create a macro that gets the latest news/blog item and place this on your latestnews template
I don't quite know what you mean by 'archived'.
1. Do you mean the content goes away (is 'unpublished' in umbraco parlance)? As Jay says, you can set an unpublish date. Or, you could create a scheduled task to auto-unpublish nodes.
2. Or that a content node moves from one place to another (from the /news folder to the /news/archive folder, for instance)? The only concern with this is that moving nodes will change the URL to the node and that can hurt SEO (though there are ways to alleviate that concern). You'd create a scheduled task to auto-archive content nodes.
3. Or that you have a macro that shows current content (such as news or blog items) and every Monday it should show the then-current items and put all the previous ones under a link called 'archive' that shows all the items that are not in the 'current' view? In other words, you simply have two macros... one to show the 'current' items and one to show the old items under a heading of 'archive'? This is the easiest to do as it is just some simple xslt or c# macros.
If we can understand your needs we can help you find the best solution.
I am trying something similar. I would like to show the last (for example) 6 news stories, and then have and area on the site that allows historic items to be found under month (if current year), or year, and then month if going further back.
Something like that found in Blog4Umbraco (at least in look if not in function).
I built a tool like that a year or so ago for a client project. Basically, it was a usercontrol macro that I put on a special page of the site. I then used the scheduled tasks in umbraco (/congif/umbracoSettings.config file) to call the page (and therefore the macro) that would look for pages a certain number of days old and move them to an archive area on the site.
I'll see if I can dig out the code as a staring point for you.
Maybe contact me through my website with your email address so I can send it to you.
Just came across this post, and i am trying to achieve something similar. wondering if you still have the user control still lying around somewhere.
It would be quite helpful.
Doug, many thanks.
Have sent you an email.
My question goes to you, hope you are still there after the last year old answer;)
My question is about archiving old info, like folders from meetings, presentations, news articles by months and year.
What I mean you can see on our web http://www.nucc.no/activities.aspx
As you see there are lots of folders from previous meetings in 2011, 2010 and 2009. How can make accessible archive for those folders? Like when people want to go to 2011 folder and see the list of meetings. Im not a professional IT person so please try to use easy language when explaining:)
We use umbraco version 4.5.2.
Hope to hear form you soon.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted