Archive

ridolfidesigns - August 7, 2008 - 12:44

This may be something really simple, but is there a way to create an archive of blog postings?

I was hoping maybe to break it down by year, month, and then the category, either news or tutorial?

Thanks,

Eric

Edited by WorldFallz - moved to appropriate forum.

There's a couple of modules

WorldFallz - August 7, 2008 - 12:59

There's a couple of modules that address this (search for "archive" in the search downloads box) but the most flexible way of doing it would be with the http://drupal.org/project/views module.

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

Thanks for the quick

ridolfidesigns - August 7, 2008 - 13:14

Thanks for the quick reply.

I have been trying it with views and I just can't seem to get it working the way I would like it to work. I will keep trying though.

Thanks,

Eric
Ridolfi Designs
http://ridolfidesigns.com

Ok, here is how I set up my

ridolfidesigns - August 7, 2008 - 13:25

Ok, here is how I set up my block view:

Type:
--List

Fields:
--Taxonomy: Terms for Category
-----option: as links

Arguments:
--Taxonomy: Term Name
-----title, option, wildcard, wildcard sub <--I am not sure what to do with these
--summary sorted descending

Filters:
--Node Type: Is one of: Blog Entry

It is displaying the archive the way I want it to display but when I click the archive category link, the page comes up as "address not found". I looked at the url and it is going to http://news/

I am sure it is something I didn't set up with the arguments.

Any help would be appreciated.

Thanks,

Eric
Ridolfi Designs
http://ridolfidesigns.com

arguments

mikegoodwin - August 7, 2008 - 13:59

You should use the arguments "Node:Posted Year", "Node: Posted Month", etc. For the "Default" blanks, you should probably select "Summary, Unsorted". For the "Title" option, put something like "Archive - %1" and "Archive - %2". I think that should do it.

-Mike Goodwin
http://www.not2us.net
http://www.redleafmedia.com

Thank you for the reply but

ridolfidesigns - August 7, 2008 - 14:16

Thank you for the reply but I am still getting a "page load" error. When I hover over the "May" link under archive the url is coming up http://200805 I am assuming that is the month and year. However, the rest of the url is not there. What am I doing wrong?

Thanks,

Eric
Ridolfi Designs
http://ridolfidesigns.com

page versus block

mikegoodwin - August 7, 2008 - 15:59

I think that my suggestions should work if you use a page view. I've never worked with arguments and block views before. So I'm not totally certain what the issues there might be.

I guess the main problem is that view arguments are taken from the url directly. So, if this block is placed on a random page whose url has nothing to do with the archive, then the arguments will be pointless.

-Mike Goodwin
http://www.not2us.net
http://www.redleafmedia.com

I am using a block. Should I

ridolfidesigns - August 7, 2008 - 17:41

I am using a block. Should I create a page view too? Is that the problem?

Eric
Ridolfi Designs
http://ridolfidesigns.com

Ok, I have it working now.

ridolfidesigns - August 7, 2008 - 17:51

Ok, I have it working now. The problem was that I didn't have a page view. I was only creating a block view.

Thanks for helping!

Eric
Ridolfi Designs
http://ridolfidesigns.com

you're welcome

mikegoodwin - August 7, 2008 - 19:39

No problem. Drupal can usually do almost anything you want once you figure out the little details.

-Mike Goodwin
http://www.not2us.net
http://www.redleafmedia.com

Yeah, I love drupal. I just

ridolfidesigns - August 7, 2008 - 19:57

Yeah, I love drupal. I just started learning it but I love it. I am sure once I get better at it I will love it even more.

Eric
Ridolfi Designs
http://ridolfidesigns.com

I am also having the problem

dddave - March 30, 2009 - 10:23

I am also having the problem to create a archive sorted by category and date. The difference is that I want the sorting by category first and after that the monthly archive and that I don`t filter for blog post but for a custom content type.

However: Did anyone here got the breakdown by date AND category working? I am getting mad here in trying to achieve something like this. TIA for any replies.

edit: just noticed that this thread is under theme development. Found it by search but why is it here?

_

WorldFallz - March 30, 2009 - 10:53

just noticed that this thread is under theme development. Found it by search but why is it here?

Good point-- moved it.

What specific problems are you having with your view?

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

The problem is described in

dddave - March 30, 2009 - 15:11

The problem is described in detail here: http://drupal.org/node/417790
This might sound a bit clumsy because I was really tired yesterday.

It boils down to the question if I can create a view that provides a list of taxonomy terms and when I click on one of them I get the archive related to the term.

Everytime I think I got a "real" understanding of arguments and the deeper usage of views I really hit a wall.

edit: this thing is solved -> follow the link above.

 
 

Drupal is a registered trademark of Dries Buytaert.