Topic by Thibaud Blondin
Content
Hi everyone,
We are trying to build a custom sms extension from the accelerator.
Everything's working well except that we are trying to integrate standard text in this extension.
We are able to retrieve a list of standard texts and folders, and to retrieve the content if the standard text is not in a folder
But if the standard text is in a folder the whole thing is messing up. The getStandardTextList method (documentation) will return useless information on the folder. We also tried the getStandardTextItemById method directly on the folder to retrieve information on standard text in this folder but again the method doesn't return the good information. You'll find a screenshot of the data return by the first method attached on the code we used to retrieve the info. The first item is a standard text, the others are folders.
Do you guys have an idea on how to retrieve standard text placed in a folder in a BUI extension ?
Thanks.