Articles Field

Problem with limit-text feature of Articles Anywhere in Articles Linked Field

7 months 1 week ago #89556

Marc Pradel's Avatar Marc Pradel

Hi,

I use the follow code in an articles linked field for displaying articles:

<div  class="uk-grid-medium" uk-grid>
	<div class="uk-width-1-3@m uk-width-1-1@s">
		<a href="[url]"><img src="[image_intro]" width="" height="" alt="[title]" uk-img /></a>
	</div>
	
	<div class="uk-width-2-3@m  uk-width-1-1@s">
	
		<h2 class="uk-margin-remove-top uk-margin-remove-bottom uk-h3">
		    <a href="[url]" class="uk-link-reset">[title]</a>
		</h2>
		<p>[introtext]</p>
		<p class="uk-margin-medium">
			<a class="uk-text-primary" href="[url]">Weiterlesen...</a>
		</p>
	</div>
</div>

Is works fine. But when I use

[introtext limit="100"]

to limit the characters only '[introtext limit="100"]' is rendered.

Already tried different trigger states for the field, but nothing changed.

Regards,
Marc

7 months 1 week ago #89557

Peter van Westen's Avatar Peter van Westen Admin

The limit attribute is a feature in Articles Anywhere. It is not a feature in Articles Field.
You can use Articles Anywhere inside the Articles Field code though. Surround your html with:

{article [id]}
 ....
{/article}

7 months 1 week ago #89558

Marc Pradel's Avatar Marc Pradel

Okay, I see. 🤔

Thank you for pointing that out. 😁

Regards,
Marc