Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

154
Visualizações
media:content tag missing from Joomla RSS Feed

I am using mailchimp to send newsletters. Everything works fine apart from the fact that my RSS feed generated by Joomla does not contain the media:content tag, hence mailchimp doesn't show the images corellated to the articles.

The (hidden) menu through which the RSS feed is generated (the menu contains the latest articles, about 10 of them on each page of the menu) is a SP Builder Page, so I studied its' structure and located the div inside where the article links/images/title etc. are.

I wrote this simple JS script which parses the innerHTML properties of the div, thus displaying the image path in the server. However, that is a string with most of the time useless info. Example:

var imageDivs = Array.from(document.querySelectorAll(".article-intro-image"));
var linkOne = imageDivs[0]["innerHTML"];
var linkTwo = imageDivs[1]["innerHTML"];
var linkThree = imageDivs[2]["innerHTML"];

result:

linkOne = '\n\t\t\t\t<img src="/images/2022/02/05/E_thumbnail.jpg" alt="">\n\t\t\t'

linkTwo = '\n\t\t\t\t<img src="/images/2022/02/05/dsh_th.jpg" alt="">\n\t\t\t'

linkThree = '\n\t\t\t\t<img src="/images/2022/02/05/mixi_pi_1_thumbnail.jpg" alt="">\n\t\t\t'

As you can see there is some useless stuff there and I cannot slice each string a specified amount to get the needed info, as each image has a different length title.

Is there a way to fix the missing media:content tag through some Joomla extension (I have found solutions for WP, but not for j!) or perhaps to access the currentSrc attribute of each image in a similar way?

My question is quite complicated and I apologize for that, I would be happy to give any further explanation of the problem.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda