Articles Anywhere

article title in module

3 weeks 2 days ago #77771

Odin (PKA Jeff) Mayland's Avatar Odin (PKA Jeff) Mayland

I put this in a module to display on all states pages:

<h1>{articles category="37"}[title]{/articles}</h1>

The problem is that even though this is the Alabama article it still shows the title of the other article in the category which is Georgia.
173.236.80.186/~medicce/index.php?option...cle&id=135%3Aalabama

How can I adjust the AA code to only display the current article title?

3 weeks 2 days ago #77772

Peter van Westen's Avatar Peter van Westen Admin

To show the title of the current article, use:

<h1>{article}[title]{/article}</h1>

3 weeks 2 days ago #77773

Odin (PKA Jeff) Mayland's Avatar Odin (PKA Jeff) Mayland

Wow, keep it simple!

Thanks!!! :cheer:

3 weeks 2 days ago #77774

Peter van Westen's Avatar Peter van Westen Admin

I advise you to read through the docs again to understand how the single {article} and multiple {articles} tags work and how/when to use them.