?

Log in

No account? Create an account

Previous Entry | Next Entry

Calender archive

  • Apr. 3rd, 2008 at 3:01 PM
Trying to adjust the calender view to allow previous years to be seen via a link in calender "archive" page. Currently can only see this year's months.

Totally new to CSS and customizing. Helping a friend modify her journal. Using a tutorial and CSS by cartonage Expressive, unstyled, custom layer, css. Journal is tiggz Paid account.

custom layer: HERE CSS is HERE

To summarize, she wants to be able to view her previous years posts via the calender archive links. Thank you.

sorry about all the edits. dropped tags.

Comments

( 11 comments — Leave a comment )
calophi
Apr. 3rd, 2008 07:50 pm (UTC)
That's really weird, you can see on my LJ http://calophi.livejournal.com/calendar That my years are there.

It looks like on your LJ in question, going by the source code - the year list is there, but is hidden with the css.

.prevnext{visibility: visible} should turn it back on.

However I'm sure she has the .prevnext turned off for a reason, so what I would do in that case is go into the code that prints the year and change the class name so it can be given it's own style.

function YearPage::print_year_links() {
    """<div class="prevnext" style="margin-bottom: 20px;"><ul class="year">\n""";
    foreach var YearYear y ($.years) {
        var string class = "";
        var string year  = $y.year + "";
        if ($y.displayed) {
            $class = " class=\"active\"";
        } else {
            $year  = """<a href="$y.url">$year</a>""";
        }
        """<li$class>$year</li>\n""";
    }
    """</ul></div>\n""";
}

calophi
Apr. 3rd, 2008 08:04 pm (UTC)
Also, if you wanted to put it in the sidebar, it should be possible to modify the year code a bit to output a dropdown box or something into function print_module_calendar for the year. But it seemed to me like she wanted year links on the archive page itself.
halfrek2
Apr. 3rd, 2008 09:33 pm (UTC)
i think she may like the dropdown box, too, as it could be easier. OTOH the creator has been MIA for a while now so i can't really ask her her thoughts/reasoning for the lack of this option.

i could attempt to fiddle with this if you could give me specific "how to" directions. of course if it messes up the layout i can always change it back. thanks!
halfrek2
Apr. 3rd, 2008 09:22 pm (UTC)
please bear with me...where exactly should i be putting the above coding? sorry, but i am a bit lost with this whole thing and need specific directions.

i can try to turn the "prevnext" to visible and see what happens first. as long as i can restore it. LOL

thanks for you help. :)
calophi
Apr. 3rd, 2008 09:35 pm (UTC)
Yeah, do that first, and let me know if it doesn't work. The part I gave you is a bit more complex to manage. :)
halfrek2
Apr. 3rd, 2008 09:48 pm (UTC)
ah ha! something worked.

i just noticed that there is a link on hover for the month. when you clicky on the month it takes you to a page HERE that has the drop down menu at the top. not sure if that wasn't there already but hey, working now. LOL

i will see if she is happy with that before attempting anything else. thank you very much.

btw, should i put solved on this post yet?
calophi
Apr. 3rd, 2008 11:52 pm (UTC)
I have no idea. I just joined today for one of my own fun little issues that so far seems to be a lesson in futility. :)
halfrek2
Apr. 3rd, 2008 11:55 pm (UTC)
oh, sorry to hear that. hope you issue can be fixed. good luck. thanks for your help.
flummy_pumpkin
Apr. 29th, 2009 05:25 pm (UTC)
Thank you :) I know you posted it more than a year ago but it worked and I'm one problem down -bounces-
av8rmike
Apr. 5th, 2008 08:39 pm (UTC)
irinafan's Expressive layout from cartonage is pretty complicated to try and change. Did you get this issue sorted out or do you need more help?
halfrek2
Apr. 10th, 2008 03:17 am (UTC)
apologies for not getting back to you sooner. RL is demanding. LOL

yes, i did sort of get something to show up for the LJ user to see using the above suggestions to make it visible. the user is happy enough with going from the month to the archive and from there to the years. a bit convoluted but okay with her. i don't think i need to attempt anything else right now.

thanks.

( 11 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars