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

Having trouble installing serendipity?
Post Reply
msp_erv
Regular
Posts: 67
Joined: Thu Feb 05, 2009 1:58 am

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

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

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

Post 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.
=Don=
msp_erv
Regular
Posts: 67
Joined: Thu Feb 05, 2009 1:58 am

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

Post 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??
msp_erv
Regular
Posts: 67
Joined: Thu Feb 05, 2009 1:58 am

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

Post 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
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

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

Post 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.
=Don=
msp_erv
Regular
Posts: 67
Joined: Thu Feb 05, 2009 1:58 am

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

Post by msp_erv »

:)
Post Reply