Page 1 of 1

calender - change mu tu we to m t w - and meta tags

Posted: Thu Feb 05, 2009 2:08 am
by msp_erv
hi

i am making good progress in my install - started today with fresh dnld/install

i would like to change my calender to display one letter for each day of the week...

where is this done -- ??

also - how can we add meta tags for desc and keywords that would pick up element sof each page load to help in getting good SERP's

we are using the Serendipity Administration Suite

also how do we load new capabilities, plugins

thank you

Re: calender - change mu tu we to m t w - and meta tags

Posted: Thu Feb 05, 2009 9:48 am
by garvinhicking
Hi!

You can edit the template file plugin_calendar.tpl (copy it over from templates/default/ to your own template, if you created any). Inside that file, search for the output of the day name, that's usually:

Code: Select all

{$dow.date|@formatTime:"%a":false}
and change that to:

Code: Select all

{$dow.date|@formatTime:"%a":false|truncate:1}
also - how can we add meta tags for desc and keywords that would pick up element sof each page load to help in getting good SERP's
Either you put them into the index.tpl template file, or (better) you use the event plugin "HTML Nugget on Page" where you can put arbitrary HTML code inside the configuration of that plugin and put that to the HEAD section, also via the configuration of the plugin.
also how do we load new capabilities, plugins
Through the link "Manage plugins". You can download plugins through http://Spartacus.s9y.org/ - or if you install the Spartacus event plugin, you can install new plugins easily through that admin panel.

Regards,
Garvin

Re: calender - change mu tu we to m t w - and meta tags

Posted: Thu Feb 05, 2009 3:32 pm
by Don Chambers
Tiny bit of clarification - some templates, such as the new default bulletproof, already have a custom file plugin_calendar.tpl - so be sure to edit that one, and not copy it from the /default/ template folder.

The HTML Meta-Tags plugin can provide site-wide defaults for meta descriptions and keywords and can also be used to provide unique variations for each entry.

Re: calender - change mu tu we to m t w - and meta tags

Posted: Sat Feb 07, 2009 5:09 pm
by msp_erv
ok guys

i am very confused...

i have searched the entire serendipity folder -- and have found nothing that i can seemingly edit to change days of the week in calendar...

as don suggested...

i looked at the file and have found this code where i would expect the days of the week between the advance / previous arrows in the calender...

Code: Select all

<b><a style="white-space: nowrap" href="{$plugin_calendar_head.uri_month}">{$plugin_calendar_head.month_date|formatTime:"%B '%y":false}</a></b>
This data must be stored in db? or some other file??

Re: calender - change mu tu we to m t w - and meta tags

Posted: Sat Feb 07, 2009 5:12 pm
by msp_erv
i exported the db - did search for

'We"

this is not called from db...

where are the days of the weeK

thank you

Re: calender - change mu tu we to m t w - and meta tags

Posted: Sat Feb 07, 2009 9:38 pm
by Don Chambers
Garvin was not suggesting you modify the text of the weekdays, rather he was suggesting you modify the template file responsible for its output to display only the first letter.

In the bulletproof template, you will find a file named plugin_calendar.tpl. Open this file with a regular text editor. At the end of line 35, you will find this text:

Code: Select all

{$dow.date|@formatTime:"%a":false|@truncate:2:'':true}</th>
Change truncate:2 to truncate:1. Save the file.

Re: calender - change mu tu we to m t w - and meta tags

Posted: Sun Feb 08, 2009 2:17 am
by msp_erv
:)