Search
Other Articles Field questions
Forum

Output custom html layout

Hitsch's Avatar Hitsch
We have created a layout override (/templates/yootheme_kf/html/layouts/com_fields/field/stimme-moderation-overlay.php), But the field is not displayed:
<div class="item">
	<div class="pull-left item-image">
		<a href="[url]"><img src="[image_intro]" title="[title]" alt="[title]" /></a>
	</div>
	<h3><a href="[url]">[title]</a></h3>
</div>
and
{article}[stimme-moderation layout="stimme-moderation-overlay"]{/article}
What are we doing wrong?
Peter van Westen's Avatar Peter van Westen ADMIN
Working fine for me:

Layout code in:
templates/cassiopeia/html/layouts/com_fields/field/my-field-layout.php

Maybe it is due to Yootheme templates doing stuff differently... Try with the Joomla core template.
Please post a rating at the Joomla! Extensions Directory
Hitsch's Avatar Hitsch
Unfortunately negative, even with Casiopeia. Difficult case...
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Please post a rating at the Joomla! Extensions Directory
Hitsch's Avatar Hitsch
Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Working fine... if you place the files in the cassiopeia templates folder.

You cannot use the datatags inside the layout files. You will have to use the data passed on to the layout file.
See: docs4.regularlabs.com/articlesanywhere/d...s#alternative-layout
And: regularlabs.com/blog/1360-how-to-create-...tom-fields-in-joomla
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription