Results 1 to 5 of 5

Thread: News_latest modification

  1. #1
    User
    Join Date
    09-02-10.
    Location
    Banja Luka, Bosnia and Herzegovina
    Posts
    59

    Default News_latest modification

    How could I change news_latest template to avoid showing the word "author" in meta-tags or at least change it to something else like "published by" or something like that:

    Code:
    <p class="info"><time datetime="<?php echo $this->datetime; ?>"><?php echo $this->date; ?></time> <?php echo $this->author;?> <?php echo $this->commentCount; ?></p>
    I can't find from where is getting the word "author" in front end view.

  2. #2
    Experienced user
    Join Date
    01-12-10.
    Posts
    814

    Default Re: News_latest modification

    The text is in the language files. You can override those by making your own extension (create directory /system/modules/ownextensionname). In there make a directory language, and in there a directory for every language. In the language/yourlanguage create a file default.php

    Code:
    <?php
    $GLOBALS['TL_LANG']['MSC']['author'] = 'published by';
    This way it is changed everywhere.

    ps, I don't like the new xlf files Contao 3 uses; less readable, harder to change and possibly more work for the server to process. But .php files are still accepted

  3. #3
    User
    Join Date
    09-02-10.
    Location
    Banja Luka, Bosnia and Herzegovina
    Posts
    59

    Default Re: News_latest modification

    Thanks a lot! It works. :D

    Regarding ps, I still use 2.11 so I am not familiar with changes in C3.

  4. #4
    User
    Join Date
    09-02-10.
    Location
    Banja Luka, Bosnia and Herzegovina
    Posts
    59

    Default Re: News_latest modification

    Hi, again.. I have one more question. I wonder if it is possible to change grid display of latest news (or any other news template, principle is the same) like it's shown on image below:



    Could it be arranged by CSS?

    Thanks.

  5. #5
    User
    Join Date
    09-02-10.
    Location
    Banja Luka, Bosnia and Herzegovina
    Posts
    59

    Default Re: News_latest modification

    PS. I found the solution:

    Code:
    display: inline-table;

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
  •