Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ec-columns
Advanced tools
An Apostrophe CMS module to provide layout framework that will allow for 1-4 columns being added. Have control over narrow/full width and each column width.
This widget is meant to have data entered in the following manner:
Quote: 'This statement is the content of the quote' Author: 'Porter L' Author Info: 'An Earlham College student from Berea, KY'
From within your apostrophe project npm install --save ec-columns
Include widgets and bundle in app.js:
bundles: [ 'ec-columns' ],
modules: {
'ec-columns': {},
'ec-one-column-widgets': {},
'ec-two-column-widgets': {},
'ec-three-column-widgets': {},
'ec-four-column-widgets': {},
// ... other modules
}
In your page templates include: ex. /lib/modules/apostrophe-pages/views/pages/default.html
{% import "ec-columns:macros/utils.html" as utils with context %}
<main id="main-content">
{% block main %}
{{ utils.columns() }}
{% endblock %}
</main>
To add your own wigets in the drop down for each column. Overwrite your own custom.html In the example below I added ec-quote widget to my drop down. ex. /lib/modules/ec-columns/views/macros/custom.html
{% macro column(parent, name, imageSize) %}
{{ apos.area(parent, name, {
widgets: {
'apostrophe-rich-text': {
toolbar: [ 'Styles', 'Bold', 'Italic', 'Link', 'Unlink' ]
},
'apostrophe-images': {
size: imageSize
},
'apostrophe-video': {},
'ec-quote': {}
}
}) }}
{% endmacro %}
The layout grid is defined by PURE CSS so there is no bootstrap conflicts.
FAQs
Bundled Module with Column Widgets
The npm package ec-columns receives a total of 1 weekly downloads. As such, ec-columns popularity was classified as not popular.
We found that ec-columns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.