qunabu/silverstripe-htmlblocks

A skeleton for SilverStripe modules.

Installs: 343

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:silverstripe-module

dev-master 2017-11-06 17:25 UTC

This package is auto-updated.

Last update: 2022-07-21 17:42:21 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 %>

how to use HTML Blocks 1

how to use HTML Blocks 2