Articles Anywhere 7.6 Released

with Comparison Operators and Video Tags

The newest version of Articles Anywhere includes the ability to output YouTube and Vimeo videos data, greater/less operators in filters, and more improvements and fixes.

Articles Anywhere is the powerful Joomla plugin that allows you to insert articles anywhere on your site based on any filters, place specific data (like title, text, images, custom fields, etc) and have full control over how you want to display the articles.

Today a new significant version of Articles Anywhere has been released, version 7.6. Here is a breakdown of all the new features that have been added with Articles Anywhere 7.6:

Comparison Operators in Filters Pro only

Articles Anywhere now also allows you to use different comparison operators to filter your articles by.

Negative Values

To apply a negative filter that excludes certain articles, you can add ! before the value.
So this will show all articles in the category "Cats" that do not have the tag "Cuddly":

{articles category="Cats" tags="!Cuddly"}...{/articles}

You can also apply a negative filter with multiple values, separating them with a comma.
All values will be excluded when using !, so the example below will exclude BOTH categories.

{articles category="!Some Category,another-cat,12"}...{/articles}

Greater or Less than…

You can apply comparison filters on numeric and date values, by prepending the value with <, <=, > or >=.

For instance, this will show all articles that have a publish_up date greater than 2018:

{articles publish_up=">=2018-01-01"}...{/articles}

You can also compare dates to the current date using the NOW value.

Output Videos Data Pro only

YouTube Videos

The Pro version of Articles Anywhere now also gives you the ability to get data from YouTube videos that have been placed inside the content of the article's text (via the youtube iframe code), similarly to the "Images from content" feature.

  • [youtube-1]to place the first youtube video found. To place the fifth video found in the content, use [youtube-5].
  • [youtube-...-url] to output the url of these videos instead. This will output the url as you see it in the browser.
  • [youtube-...-iframe-url] to output the embed url for use in iframes.
  • [youtube-...-short-url] to output the short url (using the youtu.be domain)
  • [youtube-...-id] to output only the id of the video
  • [youtube-count] to output the total number of YouTube videos found in the text. You can also use this value in the If Structures.

You can grab any available attribute that is found inside the original html <iframe> tag too. For instance, [youtube-3-class]will output whatever is found in the class="..." attribute. If the attribute is not found in the <iframe> tag, it will simply return nothing.

Video Thumbnail

You can output the youtube thumbnail image for the video using [youtube-...-thumb]. And like with other Image tags, you can output the url with [youtube-...-thumb-url]

To add a link to the youtube video, use the [youtube-...-link]...[/youtube-...-link] tags.

This example below will output a linked thumbnail image of the first youtube video found in the article:

[youtube-1-link][youtube-1-thumb][/youtube-1-link]

Vimeo Videos

Vimeo is also supported. The Pro version gives you the ability to get data from Vimeo videos that have been placed inside the content of the article's text (via the vimeo iframe code).

  • [vimeo-1] to place the first Vimeo video found. To place the fifth video found in the content, use [vimeo-5].
  • [vimeo-...-url] to output the url of these videos instead. This will output the url as you see it in the browser.
  • [vimeo-...-iframe-url]to output the embed url for use in iframes.
  • [vimeo-...-short-url] to output the short url (using the youtu.be domain)
  • [vimeo-...-id]to output only the id of the video.
  • [vimeo-...-link]Go to Vimeo[/vimeo-...-link] to add a link to the vimeo video
  • [vimeo-count]to output the total number of Vimeo videos found in the text. You can also use this value in the If Structures.

You can grab any available attribute that is found inside the original html <iframe> tag too. For instance, [vimeo-3-class]will output whatever is found in the class="..." attribute. If the attribute is not found in the <iframe> tag, it will simply return nothing.

Adding or overriding attributes

You can also override attributes or set extra attributes to be used in the output <iframe> tag in any video data tag that generates one.

For instance, you can set your own class name:

[youtube-3 class="my-youtube-vid">
[vimeo-2 class="my-vimeo-vid"]

Next / Previous Numbers Pro only

When using the multiple {articles} tag, you will have a number of articles being output.

Articles Anywhere offers several number values based on what place the article has in the list of articles. You can output the values via the Data Tag, and you can also use these values in the If Structures.

This way you can conditionally output html/content/data based on the dynamic values. Like the number of the article in the list. Or if it is an 'even' or 'uneven' article. You could - for instance - also use this to create a custom navigation.

The latest version adds ability to get [next], [previous], [has_next] and [has_previous] values.

The next value gives the number of the next item in the list. This will return the number of the first article (1) when the current is the last.

The previous value gives the number of the previous item in the list. This will return the number of the last article when the current is the first.

You can use these to create article pagination type stuff, or anchor links to the next/previous articles.
This is an html example of a blog page with previous/next links:

<p>{articles category="My Category}</p>
<h2><a href="/article-[count]"></a>[title]</h2>
<p>[text]</p>
<p><a href="#article-[previous]">previous</a> <a href="#article-[next]">next</a></p>
<p>{/articles}</p>

The has_next and has_previous values will return a true/false value based on whether there is a next/previous item.
This means that has_previous will only be false for the first item and the has_next will only be false for the last value.

Below you find a list of all the useful number values at your disposal:

  • [total] the total number of the article returned by the {articles} tag
  • [total_before_limit] the total number of articles before the limit is applied
  • [count] the number of the article when using the {articles} tag
  • [first] a true/ false value based on whether the article is the first in the returned list of articles
  • [last] a true/ false value based on whether the article is the last in the returned list of articles
  • [next] the number of the next item in the list. This will return the number of the first article (1) when the current is the last
  • [previous] the number of the previous item in the list. This will return the number of the last article when the current is the first
  • [has_next] / [has_previous] a true/ false value based on whether there is a next/previous item (so can be false for first/last items)
  • [even] a true/ false value based on whether the article is an even article in the returned list of articles
  • [uneven] a true/ false value based on whether the article is an uneven article in the returned list of articles
  • [every-...] a true/ false value based on the article number of the article in the returned list of articles
  • [is-...-of-...] a true/ false value based on the article number of the article in the returned list of articles

Read the Changelog for Articles Anywhere 7.6 for the full list of improvements and fixes that have been made in the new release.

For a complete overview of all the features included in Articles Anywhere, head over to the full Documentation, and check out the Video Tutorials.