Class AssetURLVariableExpression
java.lang.Object
org.broadleafcommerce.common.web.expression.AssetURLVariableExpression
- All Implemented Interfaces:
BroadleafVariableExpression
@Component("blAssetURLVariableExpression")
@ConditionalOnTemplating
public class AssetURLVariableExpression
extends Object
implements BroadleafVariableExpression
For HTML fields maintained in the admin, redactor allows the user to select images. These images need to be able to be served from a CDN.
Goal is to be able to use this syntax in html pages.
Example of trying to resolve images in longDescription:
<div id="description" th:with="input=*{longDescription}">
<span th:utext="${#cms.fixUrl(input)}">