Autoupdating dropdown.txt

For requests for help from CG administrators, Wranglers, and experienced CG members. Please read the FAQ before posting. Also look at CG Wiki for tutorials and how-tos written by other CG webtoonists.
Post Reply
User avatar
TTE
Regular Poster
Posts: 77
Joined: Wed Mar 29, 2006 11:03 am
Location: Manitoba, Canada
Contact:

Autoupdating dropdown.txt

Post by TTE »

Is it possible to autoupdate your dropdown.txt file?

My goal is to have an archives page that lists the title of the comic instead of just dates through the calendar. I could easily do this manually through updating the dropdown.txt and then using the ***story_archive*** tag on my archives page, but it wouldn't automatically change as if I were using the calendar tags.

Is this possible?

Thanks in advance.

User avatar
Moder
Regular Poster
Posts: 144
Joined: Fri Jan 13, 2006 7:35 am

Post by Moder »

but then how would comicgenesis know the title you want each comic to have?
Image

User avatar
C.w.
Regular Poster
Posts: 343
Joined: Wed Apr 05, 2006 10:04 pm
Contact:

Post by C.w. »

I have an archive like that.

Unfortunately, i have to manually update it. I don't think there's a way for comicgenesis to automatically do it. (Although if i am wrong that is awesome.)

What i did was write a hunk of javascript to build it for me. Basically, i update a file with the name i want, and the date i uploaded it on, and it generates all the tedious bits, which i then copy and paste.

You can check it out here at the bottom of the page, but it's a big mess. If you wind up using it i'll clean it up a bit.
Image
Other comics i've done
Webpage troubles? HTML Generator to the rescue.

User avatar
Moder
Regular Poster
Posts: 144
Joined: Fri Jan 13, 2006 7:35 am

Post by Moder »

mm..

But isint the work you have updating that file you mentioned the same as the work to update the normal html page (the first link in your post)?

Im probably not getting it. Im not much of an html/javascript guy.. :p
Image

User avatar
C.w.
Regular Poster
Posts: 343
Joined: Wed Apr 05, 2006 10:04 pm
Contact:

Post by C.w. »

If you just use it to make an archive, pretty much all it does is take out the tedious bits of writing the html.

So, i write 'Mr. Snugglegums', and '20040417' and it writes:

Code: Select all

<li>
<a href="/d/20060417.html" id="h20060417">
Mr. Snugglegums.
</a>
</li>
Which isn't a whole lot of difference really. Where it becomes nice is if you have to generate some whole different jib jab - like his dropdown. It could do both in one fell swoop.

You can also use it to pull nifty tricks like making a link to a comic at random, and other junk like that. That was the main reason i wrote the thing in the first place - the autogenerating archive was just a nice extra.

Edit - i had some spare time, so i cleaned an posted said scripts at http://cwcomics.comicgenesis.com/genera ... cript.html - if your have troubles give me a shout.
Image
Other comics i've done
Webpage troubles? HTML Generator to the rescue.

Post Reply