Archive drop-down

Discuss news styles, css code, and other Coranto customizations in here...the possibilities are endless, so have at it!

Moderator: Spunkmeyer

Archive drop-down

Postby driv » Wed Feb 08, 2006 11:07 pm

Hi

I have a very long list of archives for a number of subjects.

e.g. articles, press releases, news, etc, etc
each list is several years old.

As you can imagine the archive lists are quite long....
e.g.

September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
etc.
etc.
etc.
January 2001
December 2000

Is there a way to combine these into a drop-down box so that I could publish it on my home page?

Thanks for reading :)
d.
driv
 
Posts: 69
Joined: Wed May 05, 2004 10:30 am

Re: Archive drop-down

Postby Parahead » Thu Feb 09, 2006 7:54 am

driv wrote:Is there a way to combine these into a drop-down box so that I could publish it on my home page?
What does your actual archive style looks like now? I guess having the archive links wrapped around <option> tags in the style and then have the SSI include in turn wrapped in a <select> tag at the sthml page would work just fine?
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby driv » Thu Feb 09, 2006 11:26 pm

Hi Parahead
I'm not sure I understand you (sorry).

I only have
Code: Select all
<InsertContent>
to work with as I understand it.

So if I do this...

Code: Select all
<option><InsertContent></option>



I just get the list above but like this

<option>
June 2005
May 2005
April 2005
March 2005
February 2005
</option>

Sorry if I'm being thick!
d.
driv
 
Posts: 69
Joined: Wed May 05, 2004 10:30 am

Postby SrNupsen » Fri Feb 10, 2006 8:28 am

I think he is refering to a drop-down menu

There are several ways of accomplishing what you want, but the first step is to put all of your archives up as options inside a select statement. If you click the "Drop-down menu" link from the URL I linked to above, you should get some pointers.

SrNupsen
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for custom work or troubleshooting.

http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------
SrNupsen
 
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Postby Parahead » Fri Feb 10, 2006 7:31 pm

driv wrote:Hi Parahead
I'm not sure I understand you (sorry).
Like SrNupsen mention, my idea (and what I thought you where asking?) was how to create a drop down menu, isn't this what you want? Just checking so I am not giving the wrong suggestions here...

driv wrote:I only have
Code: Select all
<InsertContent>
to work with as I understand it.

So if I do this...
Code: Select all
<option><InsertContent></option>
Well, you are on the right track sort of. This is what you place in the template, right? You do have a style named "Archive Link Style" at the Administration->Edit News Styles page, correct? This one you modify so each month is encapsulated with the <option> tag. Then in your template you replace the option tag you now have with the select tag instead. You do know your way around HTML and the difference between the two tags, right?
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby driv » Fri Feb 10, 2006 11:08 pm

Hey guys, thanks for the help.

Do you know - in all the years I've been using Coranto - I don't think I've ever opened the archive link style!!! (Or, if I'm honest - even been aware of it :oops: )

Well - it works a treat!!!

Hey Parahead - I'm in Stockholm next month - looking forward to visiting your beautiful country :D

Thanks again,
d.
driv
 
Posts: 69
Joined: Wed May 05, 2004 10:30 am

Postby SrNupsen » Sat Feb 11, 2006 6:13 am

You should really try Oslo, too - I got snow in my underwear from walking 50 meters today :lol:

SrNupsen
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for custom work or troubleshooting.

http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------
SrNupsen
 
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Postby Parahead » Sat Feb 11, 2006 1:03 pm

driv wrote:Hey guys, thanks for the help.

Do you know - in all the years I've been using Coranto - I don't think I've ever opened the archive link style!!! (Or, if I'm honest - even been aware of it :oops: )

Well - it works a treat!!!
Well, I don't blame you, it isn't one of the styles one goes around playing with every day... Good you got it working to your liking! :-D

driv wrote:Hey Parahead - I'm in Stockholm next month - looking forward to visiting your beautiful country :D
Work or pleasure? I hope you will have a nice time regardless. :-D And SrNupsen, come over for a visit you too and we can all have a beer... ;-)
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby driv » Sat Feb 11, 2006 6:14 pm

Parahead wrote:Work or pleasure?

Pleasure - Swedish International Karate Open

And SrNupsen, come over for a visit you too and we can all have a beer... ;-)
Ha - talking my language now....:)

Finland last month, Sweden next month - I'm overdue for a trip to Norway.

You guys have some great beers in that part of the world :D
driv
 
Posts: 69
Joined: Wed May 05, 2004 10:30 am

Postby Parahead » Sun Feb 12, 2006 10:30 am

driv wrote:You guys have some great beers in that part of the world :D
I prefere ale and stout myself, preferably together with a single malt... ;-)

Let me know more exactly when you are in town and maybe I can drop by for an after work beer at some pub located at the the summit of Götgatan (close to subway station Slussen)...
Yes, I am still around...
www.parahead.com/coranto/
User avatar
Parahead
 
Posts: 4837
Joined: Fri Jan 12, 2007 8:54 pm
Location: Stockholm - Sweden

Postby driv » Mon Feb 20, 2006 10:10 pm

Ahh Parahead, that would be excellent :o

Unfortunately, it's a weekend event :( and I'm going to be involved until the end - as my son will also be taking part in a team event. (Team events always come right at the end!!!)

Thanks for the invite, were it any other time, I would be there with you at the bar - like a shot!!!!

Cheers mate,
d.
driv
 
Posts: 69
Joined: Wed May 05, 2004 10:30 am


Return to Customization

Who is online

Users browsing this forum: No registered users and 4 guests

cron