qunabu / silverstripe-htmlblocks
A skeleton for SilverStripe modules.
Installs: 345
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:silverstripe-module
Requires
- sheadawson/silverstripe-shortcodable: 3.0.x-dev
This package is auto-updated.
Last update: 2023-03-20 09:49:03 UTC
README
Allows to inject HTML Blocks into .SS templates and HTMLContent as shortcode (TODO).
<% if $HTMLBlockExist('social-links') %> {$HTMLBlock('social-links')} <%-- you can manage this HTML part from the admin panel now --%> <% else %> <ul> <li><a href="https://en-gb.facebook.com/openhouselondon2017" target="_blank" class="social">Facebook</a></li> <li><a href="https://twitter.com/openhouselondon" target="_blank" class="social">Twitter</a></li> <li><a href="https://www.instagram.com/openhouselondon/" target="_blank" class="social">Instagram</a></li> </ul> <% end_if %>