(no subject)
Dec. 4th, 2003 01:12 pmHave any of you, dear readers, had significant success modifying or creating S2 styles or layers?
I'm currently really annoyed at the S2 documentation for not making clear how to implement some of these nifty little features which *should* be user-customizable.
Specifically, what i want to do is to change the date format- using an custom long style-
set lang_fmt_date_long_day = "%%day%%, %%dayord%% %%month%%, %%yyyy%%"; so that the date displays as Thursday, 4 December, 2003, for example.
Where in the layer do i declare that, and what's the proper syntax for doing so? The docs make it obvious that custom formats are possible, but don't touch on how to declare or use one.
edit: 2:50 p.m.: Problem solved. Found the trick in
component_help. It's how you declare it- like a string literal in C (and C-related languages). Remember to include the spaces on both sides of the =, or it'll fail to compile.
So, to use date and time my way, you'd put this in your layer:
set lang_fmt_date_long = "%%day%%, %%dayord%% %%month%%, %%yyyy%%";
set lang_fmt_time_short = "%%h%%:%%min%% %%a%%.m.";
I'm currently really annoyed at the S2 documentation for not making clear how to implement some of these nifty little features which *should* be user-customizable.
Specifically, what i want to do is to change the date format- using an custom long style-
set lang_fmt_date_long_day = "%%day%%, %%dayord%% %%month%%, %%yyyy%%"; so that the date displays as Thursday, 4 December, 2003, for example.
Where in the layer do i declare that, and what's the proper syntax for doing so? The docs make it obvious that custom formats are possible, but don't touch on how to declare or use one.
edit: 2:50 p.m.: Problem solved. Found the trick in
So, to use date and time my way, you'd put this in your layer:
set lang_fmt_date_long = "%%day%%, %%dayord%% %%month%%, %%yyyy%%";
set lang_fmt_time_short = "%%h%%:%%min%% %%a%%.m.";
no subject
Date: 2003-12-04 02:38 pm (UTC)I believe that is the name of the thing, there are several tutorials for stuff there.
I've managed to add a bunch of new components to my layout, but that's as far as I've gone.
no subject
Date: 2003-12-04 02:41 pm (UTC)no subject
Date: 2003-12-04 03:55 pm (UTC)*sigh* Sorry.
At least you managed to find it anyway