Search
Other Articles Anywhere questions
Forum

custom field in mod_articles_category?

Odin Mayland's Avatar Odin Mayland
How do I display each article's custom field in mod_articles_category?

The custom field is named "subtext" and the ID is #2.

I can't figure out the AA code or I am missing something else:
{articles subtext="this:id"}[subtext]{/articles}

<?php foreach ($list as $item) : ?>
			<li>
					<?php if ($params->get('link_titles') == 1) : ?>
					<a class="mod-articles-category-title <?php echo $item->active; ?>" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a>
				<?php else : ?>
					<?php echo $item->title; ?>
				<?php endif; ?>

				{articles subtext="this:id"}[subtext]{/articles}
Peter van Westen's Avatar Peter van Westen ADMIN
Don't you mean simply this?
{article id="<?php echo $item->id; ?>"}[subtext]{/article}
Please post a rating at the Joomla! Extensions Directory
Odin Mayland's Avatar Odin Mayland
WOW! That is awesome! Thank you.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription