Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • mjandia Friend
    #192931

    It seems there are problem of publication date on my website and created date. Created don’t show while the option is on. And whn you see an article and you can see modification after the date and not before as in french language.

    Are there an issue ?

    Thank you for your help.

    An example

    Ninja Lead Moderator
    #515344

    I got this problem when I click URL of your site.


    1. site_problem
    mjandia Friend
    #515719

    Now it should be fine

    Ninja Lead Moderator
    #515819

    <em>@mjandia 402335 wrote:</em><blockquote>Now it should be fine</blockquote>

    You can set publish date and create date to show from menu items

    Go to Admin site -> Menu item (SOCIA)L -> edit ACTUALITÉ -> Advanced Options -> Articles Options -> set Show Create Date and Show Publish Date to Show

    Don’t forget to clear cache from Admin area after changing

    If you could not solve it, please send me admin login info of back-end site. I will help you to check it.


    1. category_menu
    mjandia Friend
    #515854

    Here is in french the right sentence is ” Date de publication ” et then ” mardi 19 novembre 2013 ”


    1. Screenshot-article
    Ninja Lead Moderator
    #515956

    My solution will help you to fix this problem

    Open templates/ja_teline_iii/html/com_content/article/default.php file

    Change

    <?php if ($params->get('show_publish_date')) : ?>
    <dd class="published">
    <?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE', JHtml::_('date',$this->item->publish_up, JText::_('DATE_FORMAT_LC2'))); ?>
    </dd>
    <?php endif; ?>

    To

    <?php if ($params->get('show_publish_date')) : ?>
    <dd class="published">
    <?php echo JText::sprintf('JACOM_CONTENT_CREATED_DATE_ON', JHtml::_('date',$this->item->publish_up, JText::_('DATE_FORMAT_LC2'))); ?>
    </dd>
    <?php endif; ?>

    Remember to clear cache from Admin area after changing

    mjandia Friend
    #515959

    it’s almost ok but the word ” date de publication” disepeared and it’s necessary before the date because otherwise w have two date but nobody says what two date. Then it’s necessary to keep ” Date de publication ” et date de création ” before the following date

    Ninja Lead Moderator
    #516031

    If you would like to do that, you need to change /templates/ja_teline_iii/html/com_content/article/default.php file with my solution

    + Create date:

    <?php if ($params->get('show_create_date')) : ?>
    <dd class="create">
    <?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', '<span>'.JHtml::_('date',$this->item->created, JText::_('DATE_FORMAT_LC2')).'</span>'); ?>
    </dd>
    <?php endif; ?>

    + Publish date

    <?php if ($params->get('show_publish_date')) : ?>
    <dd class="published">
    <?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', '<span>'.JHtml::_('date',$this->item->publish_up, JText::_('DATE_FORMAT_LC2')).'</span>'); ?>
    </dd>
    <?php endif; ?>

    mjandia Friend
    #516070

    Thank you but I don’t understand why there is


    1. date
    Ninja Lead Moderator
    #516221

    I have debugged the problem on your site, see the screenshot

    It’s duplicated published date on your site.

    You can get my attachment file

    + Download and extract my attachment file

    + Copy it into templates/ja_teline_iii/html/com_content/article/default.php file

    + Backup old file before applying changes

    Hope it helps you to solve it


    1. problem
    1. default.zip
    mjandia Friend
    #516226

    Hello,

    That ok. All is fine. Thank you very much for yoour help

    Regards

    PS : Problem solved

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 11 replies, has 2 voices, and was last updated by  mjandia 10 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum