EmbedServiceModel
Model for assets of type 'article.'. Uses configuration 'embed-service/service[@name='%s' and @variant='%s']' with HTML code and feature 'censhare:module.oc.portal.embed-service' to determine html code to embed. Wrapped asset uses outer feature 'censhare:module.oc.portal.embed-service' to determine a service, configuration to get the HTML code and inner feature 'censhare:module.oc.portal.embed-service-content-id' to define value to replace for ''{{ID}}' in HTML.
implements: hash
bundle: standard portal bundle
since 2.0.0
Model for assets of type 'article.'.
Uses configuration 'embed-service/service[@name='%s' and @variant='%s']' with HTML code and feature 'censhare:module.oc.portal.embed-service' to determine html code to embed.
Wrapped asset uses outer feature 'censhare:module.oc.portal.embed-service' to determine a service, configuration to get the HTML code and inner feature 'censhare:module.oc.portal.embed-service-content-id' to define value to replace for ''{{ID}}' in HTML.
Defined hash keys
embedCode ↦ String
since 2.0.0
get the HTML code of (preferred | first | only) configured service to write out
embedCodeservice ↦ String
since 2.0.0
Returns valueKey of embedService feature
Methods
embedCode(String:service, String:variant (optional)) ↦ String
since 2.0.0
get HTML to write out from configuration by matching @name='service' and @variant='variant'