0
Welcome Guest! Login
0 items Join Now

Date issue in Joomla Articles particule for other language

  • Date issue in Joomla Articles particule for other language

    Posted 7 years 7 months ago
    • Hi

      When I use the particle Joomla Article
      the date always stays in english even in french language selection

      i miss something ?

      thanks

      Bertrand
    • www.en-toutes-lettres.fr
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Date issue in Joomla Articles particule for other language

    Posted 7 years 7 months ago
    • Please post your URL, Username and Password in Secure Tab and i will take a look and maybe figure out what the problem is.

      FTP info with Username and password is also necessary ...

      For posting sensitive information you hit the Blue Reply Button and then you will see Secure Tab. Post all info that is sensitive in there, only Fellow Mods, Staff and I can see that!
    • Available for CUSTOM WORK with Joomla, WordPress and Grav Templates and Gantry Framework!
  • Re: Date issue in Joomla Articles particule for other language

    Posted 7 years 6 months ago
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Date issue in Joomla Articles particule for other language

    Posted 7 years 6 months ago
  • Re: Date issue in Joomla Articles particule for other language

    Posted 7 years 6 months ago
    • Hi Damir

      Not really

      Not a problem for contentarray.yaml file but for contentarray.html.twig it is another story

      like the tuto I add just below the block particle these line with Translation in french


      {% block particle %}
          {% set article_settings = particle.article %}
          {% set filter = article_settings.filter %}
          {% set sort = article_settings.sort %}
          {% set limit = article_settings.limit %}
          {% set display = article_settings.display %}
      {% set ln = ['','JANVIER','FEVRIER','MARS','AVRIL','MAI','JUIN','JUILLET','AOUT','SEPTEMBRE','OCTOBRE','NOVEMBRE','DECEMBRE'] %}
      
          {% set d = "now"|date("j") %}
          {% set m = "now"|date("n") %}
          {% set y = "now"|date("Y") %}
          {% set s = ln[m]|trans %}
          {% set f = particle.date.formats %}
      
          {% if f == 'F Y' %}{% set dt = s~" "~y %}{% endif %}
          {% if f == 'j F Y' %}{% set dt = d~" "~s~" "~y %}{% endif %}

      then in date codes I add these values


      <span class="g-array-item-date">
       {% if display.date.enabled == 'published' %}
       <i class="fa fa-clock-o"></i>{{ article.publish_up| dt }}
       {% elseif display.date.enabled == 'modified' %}
      <i class="fa fa-clock-o"></i>{{ article.modified| dt }}
       {% else %}
      <i class="fa fa-clock-o"></i>{{ article.created| dt }}
       {% endif %}
      </span>



      without success


      Error while rendering contentarray particle.
    • www.en-toutes-lettres.fr
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Date issue in Joomla Articles particule for other language

    Posted 7 years 6 months ago
    • Please post your URL, Username and Password in Secure Tab and i will take a look and maybe figure out what the problem is.
      FTP info with Username and password is also necessary ...
      For posting sensitive information you hit the Blue Reply Button and then you will see Secure Tab. Post all info that is sensitive in there, only Fellow Mods, Staff and I can see that!
    • Available for CUSTOM WORK with Joomla, WordPress and Grav Templates and Gantry Framework!
  • Re: Date issue in Joomla Articles particule for other language

    Posted 7 years 6 months ago
    • Hi

      OK, all info are in secure tab

      so on test web site
      freecarbon-collectivite.ete44.fr/

      you have the particle joomla article on home page, date in english

      This image is hidden for guests.
      Please log in or register to see it.


      it is in french when you click on read more button in article itself

      I have created a temporary folder in template/custom/particles named "contentarray"

      This image is hidden for guests.
      Please log in or register to see it.


      where you have the 2 files to overide the initial particle
      just move them on template/custom/particles folder to see the error

      core particle come from
      This image is hidden for guests.
      Please log in or register to see it.
    • www.en-toutes-lettres.fr
  • Re: Date issue in Joomla Articles particule for other language

    Posted 7 years 6 months ago
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Date issue in Joomla Articles particule for other language

    Posted 7 years 6 months ago
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Date issue in Joomla Articles particule for other language

    Posted 7 years 5 months ago

Time to create page: 0.066 seconds