You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Dynamic content block is first displayed, very few of the attributes are set. The server side rendering is invoked but the shortcode attribute is not set. The result is '[]'.
How can this be improved?
See #34
The text was updated successfully, but these errors were encountered:
In oik-blocks the workaround was to check the result of the shortcode expansion
if it was [] then it replaces it with "Select a Display type". See shortcodes/oik-content.php -
if ( '<span>[</span>]' === $result ) {
$result="<!-- No result for shortcode $shortcode -->";
$result.= '<p>Select a Display type</p>';
}
I should either raise a separate issue for the oik/shortcode-block or repurpose this issue.
At present, once the Select a Display type message is displayed, in order to choose the first item, another needs to be selected.
Therefore, before doing this the solution should
either add support for None
or implement a default in the server side rendering.
When the Dynamic content block is first displayed, very few of the attributes are set. The server side rendering is invoked but the shortcode attribute is not set. The result is '[]'.
How can this be improved?
See #34
The text was updated successfully, but these errors were encountered: