Articles Anywhere

'If last' fails in comibination of Articles Anywhere and Sliders

9 months 6 days ago #77288

Jacob Krull's Avatar Jacob Krull

Hi
I use this syntax to make sliders of articles in my category 19 but it seems that the final /slides is not working. I get all slides embedded instead.

{articles category="19"}
[[slider title="[title]"]]
[introtext]
{if last}[[/sliders]]{/if}
{/articles}

I have changed all standard tag characters but it didn't work with standard tags either.

I'm using latest pro version of both plugins on kladde.dk/om-lps

9 months 6 days ago #77289

Peter van Westen's Avatar Peter van Westen Admin

Make sure the Articles Anywhere system plugin is ordered before Sliders.

See: www.regularlabs.com/blog/242-plugin-order-is-important

9 months 6 days ago #77290

Jacob Krull's Avatar Jacob Krull

Thanks. That created a new view where I only got one entry called [title]

Testing if 'articles' still works and that it can call [title] I tried this below, and all those articles are still inside the first slide:

{articles category="19"}
[[slider title="[title]"]]
[introtext]
{if last}[[/sliders]]{/if}
{/articles}

just articles whitout sliders
{articles category="19"}
[title]
[introtext]
{if last}between if last{/if}
{/articles}

You can see my new plugin order in image attached

9 months 6 days ago #77291

Jacob Krull's Avatar Jacob Krull

Just to make sure it's not my adjusted template I made a standard test with

{articles category="19"}
[[slider title="[title]"]]
[introtext]
{if last}[[/sliders]]{/if}
{/articles}

Using Beez3 on kladde.dk/temps

9 months 6 days ago #77292

Jacob Krull's Avatar Jacob Krull

Changing back to default character tags almost works, but it still just says {title}

9 months 6 days ago #77294

Peter van Westen's Avatar Peter van Westen Admin

The characters you use in the content should match the settings in the system plugin.

I recommend you use {...} for Articles Anywhere and Sliders main tags.
And [...] for the Articles Anywhere Data tags.

Then this should work:

{articles category="19"}
{slider title="[title]"}
[introtext]
{if last}{/sliders}{/if}
{/articles}

9 months 6 days ago #77295

Jacob Krull's Avatar Jacob Krull

Thanks that combination of tags worked :)