Articles Anywhere J4 v11.0: Error on statements...

Search
Other Bug Reports questions
Forum

Articles Anywhere J4 v11.0: Error on {if} statements on Custom Fields

Ton van Loon's Avatar Ton van Loon
When using the {if}-statements on querying Custom Fields an error is thrown:
Object of class RegularLabs\Plugin\System\ArticlesAnywhere\DataGroups\Field could not be converted to string

Environment:
Joomla 4.0.3, clean install, Casiopea, No other extensions installed

Tested on Articles Anywhere versions:
- Articles Anywhere v11.0 Stable release [PRO]
- Articles Anywhere v11.0.1-dev2134723 [PRO]
- Articles Anywhere v11.0.1-dev2138981 [PRO]
Peter van Westen's Avatar Peter van Westen ADMIN
I cannot reproduce this issue. With what type of custom field do you have that and what exact syntax are you using?
Please post a rating at the Joomla! Extensions Directory
Ton van Loon's Avatar Ton van Loon
Type of fields tested:
- custom text field
- custom integer field


Syntax example 1: Text field:
www.splintervanloon.nl/index.php/test-1 (see menu right-top)
{article} 
{if [custom-field-text]="test"} Contents of the field is: test{/if} 
{/article}
Syntax example 2: Text field:
www.splintervanloon.nl/index.php/test-2 (see menu right-top)
{article title="Test 1"}
{if [custom-field-text]="test"} Contents of the field is: test{/if}
{/article}

See also details in Confidential information.

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Well, that is not the correct syntax.
{if custom-field-text = "test"}

See: docs4.regularlabs.com/articlesanywhere/g...urther/if-structures
Please post a rating at the Joomla! Extensions Directory
Ton van Loon's Avatar Ton van Loon
I apologize for having waisted your time.
You can only post on this forum if you log in