New widget available: Archives

Last post 08-05-2008 9:16 AM by OnionMan. 12 replies.
Page 1 of 1 (13 items)
  • New widget available: Archives

    01-20-2008 6:02 PM

    Basically, it displays a list of the number of published, categorized posts per month.

    See a screenshot here.

    Download the binary and source code here.

    Update 2008-02-12: I have taken down my site for the time being, so the download is no longer available from there.  *However*, gbonebrake has put out a VB version of the widget.  See his posts farther down in this thread for download information.

    Jon Sagara
  • Re: New widget available: Archives

    02-12-2008 1:04 AM

    Jon -

     I tweaked and extended your Archives Widget to have a user definable number of months to display as well as a textbox to prompt for the name of the link to the "Older Items" page.  With your permission I will clean it up a bit and post source and or binary for download.  Converted to VB as well.

    Here is a link where you can see the updated Archive widget in use  http://theboneblog.com

    Thanks -

    Greg

  • Re: New widget available: Archives

    02-12-2008 1:23 AM

    Please do!

    Unfortunately, I have been quite busy with work lately, so the widget has languished.  I'm glad someone picked it up and ran with it.

    Thanks,

    Jon

    Jon Sagara
  • Re: New widget available: Archives

    02-12-2008 2:04 AM

    You guys have done a nice job with the archive widget and it's exactly what I need. I do hope you post the code. Really interested in that VB. Thanks

    John

  • Re: New widget available: Archives

    02-12-2008 9:38 AM

    FYI - I am trying to catalog the current items availiable for GCMS on

    Graffiti CMS Widgets, Plugins, Extensions and Themes list

    So when you release it, I'll add it to there for others to find.

  • Re: New widget available: Archives

    02-12-2008 10:20 AM

    Okay, here is the binary.

    Here is a VS2008 Solution.

    And here are the view and layout files that I used.

    Again, I based this on Jon Sagara's original Archive Widget.  Jon included several Plug-ins for cache invalidation.  Honestly I did not look into these at all, everything seems to be functioning the way I wanted for now.  As this was my first Widget, and I based it on "borrowed" code, converted to VB, I'm sure there are some things that may not be best practice.  Feel free to critique, you won't hurt my feelings.

    Basic setup is to drop the dll in your bin folder, go into Widget section of the control panel and add it to a sidebar, choose the number of months you want displayed and your "Older Items" link text.  Then create two uncategorized posts, one called "archive", one called "olderitems".  Tweak the layout and view files I included above and you should be in business.

    Thanks-

    Greg

  • Re: New widget available: Archives

    02-12-2008 10:48 AM

    Greg,

     Do you have a Blog post on your site with all of that information on it that I could link too?

     Thanks,

     Jef

  • Re: New widget available: Archives

    02-12-2008 10:58 AM

    I'll put one together tonight.

    Greg

  • Re: New widget available: Archives

    02-12-2008 1:06 PM

    Thanks so much for posting the code for this widget. By studying it, maybe I'll have some chance of learning how to write widgets myself. Thanks again.

    John

  • Re: New widget available: Archives

    03-24-2008 1:12 AM

    gbonebrake:

    Basic setup is to drop the dll in your bin folder, go into Widget section of the control panel and add it to a sidebar, choose the number of months you want displayed and your "Older Items" link text.  Then create two uncategorized posts, one called "archive", one called "olderitems".  Tweak the layout and view files I included above and you should be in business.

    Greg, I have installed the widget, and it works well, thank you. However I cannot get the 'Older Items' to work. I get the following error when I click on 'Older Items" link:

    Server Error in '/' Application.
    --------------------------------------------------------------------------------

    The resource cannot be found.
    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /olderitems/


    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434 

     

  • Re: New widget available: Archives

    03-24-2008 9:05 AM

    rodspode -

     Well, looks like you are just missing the "olderitems" uncategorized post.  If you created such a post there should be a folder named "olderitems" in the root of your site with a default.aspx page in it.  If that is there, then I'm not sure what the issue would be.

    Greg

  • Re: New widget available: Archives

    03-24-2008 3:09 PM

    It worked, thank you.

    For someone with no knowledge of CSS, how do you get to populate the Older Items list?

  • Re: New widget available: Archives

    08-05-2008 9:16 AM

    sorry to bring up an old post, however can anyone guide me in the direction to enable the new roles feature for this widget, so that only posts that the user has the role to view show?

    Currently all posts show in the archive.view for the period, even if the user does not have the permission to view it.  Clicking on the post does bring up an unauthorized page, however I wish it to not show up in the list

Page 1 of 1 (13 items)