Adding an joomla article intro and picture in newsletter

  • Clements
  • Clements's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 2 days ago #1 by Clements
I'm trying to add a joomla article to my newsletter, showing not a link to the article, but showing the intro picture and intro texts.
This is what I've tried so far:{article id=34 intro=1 image=1}or {nspro_article id=34 intro=1 image=1}
The issue is that neither does work. The newsletter just shows te tag I've included.
I use Joomla 5.2.4 and NS Pro 3.3.2863 
 

Please Log in or Create an account to join the conversation.

  • Clements
  • Clements's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
5 months 2 days ago #2 by Clements
I had searched everywhere, including chatgpt and copilot, this was the solution they gave me. But then I saw the youtube videao about autoatic newsletters with latest articles..
Should have watched it sooneer. The solution is in the smart tags. That works flawlessly!!

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
5 months 2 days ago - 5 months 2 days ago #3 by Christopher Mavros
Replied by Christopher Mavros on topic Adding an joomla article intro and picture in newsletter
Hello Clements and thank you for posting.

Yes, unfortunately ChatGPT and Copilot haven't got access to the back-end documentation of NS Pro, and I haven't been able to document all these.
If you think about it, they could have purchased NS Pro, so it's kind of a 50-50 blame. 

For future reference, here are the correct tags to include information from Joomla in your NS Pro newsletters:

Full Article
{include:article}article_id{/include}
Writes the complete content of the article: the title, and both the intro text and the full text.

Article Title
{include:articletitle}article_id{/include}
Writes the article title.

Article Intro
{include:articleintro}article_id{/include}
Writes the article intro text with an optional "Read More" link. The Read more link can be enabled or disabled from the NS Pro Component Options.

Article Content
{include:articlecontent}article_id{/include}
Writes the article intro and full text.

Article Read More Link
{include:articlereadmore}article_id{/include}
Includes a "Read More" link to the specified article.

Article Intro Image
{include:articleintroimage}article_id{/include}
Includes the article intro image. By default, this image will stretch to 100% of its container element width. You may use the newsletter layout to constrain it further.

Article Full Text Image
{include:articlefullimage}article_id{/include}
Includes the article full text image. By default, this image will stretch to 100% of its container element width. You may use the newsletter layout to constrain it further.

Article Publication Date
{include:articlepubdate}article_id{/include}
Writes the article publication date in Joomla's DATE_FORMAT_LC3 (d F Y) format.

Article Field Value
{include:articlefield}article_id,field_id{/include}
Writes the value associated with this article for the specific field ID.

Joomla Module
{include:module}module_id{/include}
Outputs a Joomla module.

Joomla Module Position
{include:moduleposition}position_name{/include}
Outputs all modules of a module position.

Joomla Category Articles
{include:category}category_id{/include}
Writes the title, intro text and an optional "Read more" link of all articles within this category.

Joomla Tag Articles
{include:tag}tag{/include}
Writes the title, intro text and an optional "Read more" link of all articles with this tag.

Hope this helps.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!
Last edit: 5 months 2 days ago by Christopher Mavros.
The following user(s) said Thank You: Clements

Please Log in or Create an account to join the conversation.

  • Clements
  • Clements's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 4 weeks ago - 4 months 4 weeks ago #4 by Clements
Hi Christopher, 
Additional question: is there a way to make a the result of a smart Tag clickable in The Newsletter template? I've created a template in which I embed a number of articles, using the smart tags.
I want e.g. the Intro image {include:articleintroimage}article_id{/include} clickable to link to the whole article. What I found is that I can create a link, use the Smart Tag as the text to display, but then I still have to edit the url in the link code. I tried the link that is created with "read more" but I couldn't decipher it ;-)
Last edit: 4 months 4 weeks ago by Clements.

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
4 months 3 weeks ago #5 by Christopher Mavros
Replied by Christopher Mavros on topic Adding an joomla article intro and picture in newsletter
Hi Clements,

Would it help if I added another smart text?

{link-start-article:articleid}
your content here
{link-end}

Otherwise, I could add {include:articlelink}articleid{/include} and you could write that as the href of the link, but you would have to remember and edit it every time you edit the article image id.
I feel the first is more intutitive.

If you prefer another format, feel free to write it.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

  • Clements
  • Clements's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 3 weeks ago #6 by Clements
Wow, thanx. I think the first one is what I'm looking for...
All the best for 2026!

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros