Search
Other Articles Anywhere questions
Forum

be able to use css on current article

Odin Mayland's Avatar Odin Mayland
I am using this code to display a list of articles in the left column:
<div class="catmodule">{articles category="current" include_child_categories="true" one_per_category="true" ordering="category-ordering" separator="
	<hr />"}
	<h4>[category-link][category][/category-link]</h4>
	{articles-others tags="!release-notes" category="[category]"}[link][title][/link]{/articles-others}{/articles}</div>

help.thinkiq.com/documentation/visualization-and-analysis

How can I target the current article link so that I can add some css?
Andrea Malalana's Avatar Andrea Malalana ADMIN
You can target it by wrapping it in a if structure, like this (see example at the bottom):

docs3.regularlabs.com/articlesanywhere/d...rom-specific-article
Peter van Westen's Avatar Peter van Westen ADMIN
I think you mean that you want to add a clasp to the links to the articles.
You can create a custom a tag using the [url] data tag:
<a href="[url]" class="whatever">[title]</a>
Please post a rating at the Joomla! Extensions Directory
Odin Mayland's Avatar Odin Mayland
Thank you both!

This works perfectly:
<div class="catmodule">{articles category="current" include_child_categories="true" one_per_category="true" ordering="category-ordering" separator="
	<hr />"}
	<h4>[category-link][category][/category-link]</h4>
	{articles-others tags="!release-notes" category="[category]"} {if id = this:id}<a href="[url]" class="current">[title]</a> {else}[link][title][/link] {/if} {/articles-others}{/articles}</div>
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription