All Projects β†’ solidusio-contrib β†’ solidus_static_content

solidusio-contrib / solidus_static_content

Licence: BSD-3-Clause license
πŸ“„ Content management for your Solidus store.

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
shell
77523 projects
CSS
56736 projects

Projects that are alternatives of or similar to solidus static content

ulboracms
Ulbora CMS is a self-contained CMS (no database needed) written in Golang. It uses a JSON datastore with content saved in both json files and in memory. You can download and upload a single binary backup file containing content, images, and templates as needed. It also has a built-in mail sender.
Stars: ✭ 42 (+133.33%)
Mutual labels:  content, content-management
Pagekit
Pagekit CMS
Stars: ✭ 5,455 (+30205.56%)
Mutual labels:  content, content-management
Distributor
Share content between your websites.
Stars: ✭ 282 (+1466.67%)
Mutual labels:  content, content-management
solidus dev support
A collection of tools for developing Solidus extensions.
Stars: ✭ 14 (-22.22%)
Mutual labels:  extension, solidus
Grav
Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony
Stars: ✭ 13,067 (+72494.44%)
Mutual labels:  content, content-management
biskuit
A modular and lightweight CMS built with Symfony components and Vue.js
Stars: ✭ 37 (+105.56%)
Mutual labels:  content, content-management
Flextype
Hybrid Content Management System with the freedom of a headless CMS and with the full functionality of a traditional CMS
Stars: ✭ 436 (+2322.22%)
Mutual labels:  content, content-management
K2
K2 - the powerful content extension for Joomla
Stars: ✭ 119 (+561.11%)
Mutual labels:  extension, content-management
Spring Content
Cloud-Native Storage and Enterprise Content Services (ECMS) for Spring
Stars: ✭ 151 (+738.89%)
Mutual labels:  content, content-management
Cash
HTTP response caching for Koa. Supports Redis, in-memory store, and more!
Stars: ✭ 122 (+577.78%)
Mutual labels:  content, static
solidus virtual gift card
Virtual gift cards for your Solidus store.
Stars: ✭ 22 (+22.22%)
Mutual labels:  extension, solidus
Unite Cms
Really flexible headless CMS, built on top of Symfony and GraphQL.
Stars: ✭ 242 (+1244.44%)
Mutual labels:  content, content-management
Grav Plugin Admin
Grav Admin Plugin
Stars: ✭ 316 (+1655.56%)
Mutual labels:  content, content-management
Lokum
Manage a website’s content using Trello
Stars: ✭ 26 (+44.44%)
Mutual labels:  content, content-management
Contentify
Contentify is an esports CMS based on the PHP framework Laravel
Stars: ✭ 189 (+950%)
Mutual labels:  content, content-management
docs
Documentation site for LFE
Stars: ✭ 23 (+27.78%)
Mutual labels:  content, static
assemble-core
The core assemble application with no presets or defaults. All configuration is left to the implementor.
Stars: ✭ 17 (-5.56%)
Mutual labels:  static
block-site
Chrome extension that blocks access to distracting websites to improve your productivity.
Stars: ✭ 81 (+350%)
Mutual labels:  extension
appflowy
AppFlowy is an open-source alternative to Notion. You are in charge of your data and customizations. Built with Flutter and Rust.
Stars: ✭ 24,929 (+138394.44%)
Mutual labels:  content-management
Netlify
A VS Code extension that displays your Netlify build statuses and more!
Stars: ✭ 23 (+27.78%)
Mutual labels:  extension

Solidus Static Content

CircleCI

A fork of the Spree extension for compatibility with Solidus.

Good, clean content management of pages for Solidus. You can use it to:

  • Add and manage static pages such as an About page.
  • Show a static page instead of existing dynamic pages such as the home page, products pages, and taxon pages.

Installation

Add solidus_static_content to your Gemfile:

gem 'solidus_static_content'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g solidus_static_content:install

Usage

Using the 'Pages' option in the admin tab, you can add static pages to your Solidus store. The page content can be pulled directly from the database, be a separate layout file or be rendered as a partial.

In the admin tab, use the 'New page' option to create a new static page.

The title, slug, body, and meta fields will replace their respective page elements on load. The title, slug and body element are all required fields.

Body text provided without a layout/partial being specified will be loaded in the spree_application layout after it is pulled from the database.

Layout and partial rendering

To render an entire page without the spree_application layout, specify a relative path to the layout file (e.g. spree/layouts/layout_file_name). Note that the name of this file will not be prefixed with an underscore as it is a layout, not a partial.

To render a partial, specify the path in the layout file name and check the 'Render layout as partial' option. The path specified in the layout area will not have an underscore, but it will be required in the filename.

Also note the availability of the render_snippet helper which finds a page by its slug and renders the raw page body anywhere in your view.

Options

Use the 'Show in' checkboxes to specify whether to display the page links in the header, footer or sidebar. The position setting alters the order in which they appear.

Finally, toggle the visibility using the 'Visible' checkbox. If it is unchecked, the page will not be available.

Development

Testing the extension

First bundle your dependencies, then run bin/rake. bin/rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using bin/rake extension:test_app.

bundle
bin/rake

To run Rubocop static code analysis run

bundle exec rubocop

When testing your application's integration with this extension you may use its factories. Simply add this require statement to your spec_helper:

require 'solidus_static_content/factories'

Running the sandbox

To run this extension in a sandboxed Solidus application, you can run bin/sandbox. The path for the sandbox app is ./sandbox and bin/rails will forward any Rails commands to sandbox/bin/rails.

Here's an example:

$ bin/rails server
=> Booting Puma
=> Rails 6.0.2.1 application starting in development
* Listening on tcp://127.0.0.1:3000
Use Ctrl-C to stop

Releasing new versions

Your new extension version can be released using gem-release like this:

bundle exec gem bump -v VERSION --tag --push --remote upstream && gem release

License

Copyright (c) 2014 Peter Berkenbosch and contributors, released under the New BSD License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].