Results 1 to 6 of 6

Thread: Calendar head prev and head next

  1. #1
    User
    Join Date
    08-04-09.
    Posts
    230

    Default Calendar head prev and head next

    Does anyone maybe know how to change the head prev title and the head next title in cal_default?

    Code:
    <th colspan="2" class="head previous">Vorige maand September 2009</th>
    I want to be able to change the text: title="Vorige maand september 2009"


    Thanks a lot.

  2. #2
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default Re: Calendar head prev and head next

    Hi Lostrisq --

    Copy cal_default to the /templates/ folder and pop it open. You should see a line here towards the top:

    Code:
    <th colspan="2" class="head previous">prevTitle; ?>"><?php echo $this->prevLink; ?></th>
    Change this portion:

    Code:
    title="<?php echo $this->prevTitle; ?>"
    to this:

    Code:
    title="Vorige maand <?php echo $this->prevTitle; ?>"
    And that should do what you want. Then you would do the same for the next link, which is right below it.
    Brian

  3. #3
    User
    Join Date
    06-19-09.
    Location
    Elbl?g, Poland
    Posts
    152

    Default Re: Calendar head prev and head next

    ...or if text title = link (anchor) text you can use this:
    Code:
    <th colspan="2" class="head previous">prevLink; ?>"><?php echo $this->prevLink; ?></th>
    Marcin

    http://www.contao.pl - Polish Support Site
    http://forum.contao.pl - Polish Contao community forum


    -----------------------
    Need custom template? Feel free to contact me by e-mail marcin@contao.pl

  4. #4
    User
    Join Date
    08-04-09.
    Posts
    230

    Default Re: Calendar head prev and head next

    Hi guys,

    Thanks so much for the answers, but it does not really get me where I would like to go.
    When using the "vorige maand" title, it only puts out in title, but not on screen.

    Strange thing is, the title normally is "november 2009" but the output is "vorige maand november 2009"

    When is change PrevTitle to PrevLink it changes the title in "vorige maand november 2009", so same as the output.

    I would like to manipulate the output. Is this maybe in the translation? Where can i find these translations? I can only find translated files for the backend.

    Thanks again!

  5. #5
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Calendar head prev and head next

    Have a look at the files in system/modules/calendar/languages

  6. #6
    User
    Join Date
    08-04-09.
    Posts
    230

    Default Re: Calendar head prev and head next

    I cannot find all the translations in modules->calendar->translations.

    Where are the translations for the months for instance?

    I have solved the problem sort of, by changing prevLink to prevTitle. It now shows the month only.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •