{"id":23765828,"url":"https://github.com/solidusio-contrib/solidus_static_content","last_synced_at":"2025-04-09T15:00:21.420Z","repository":{"id":10599862,"uuid":"64498641","full_name":"solidusio-contrib/solidus_static_content","owner":"solidusio-contrib","description":":page_facing_up: Content management for your Solidus store.","archived":false,"fork":false,"pushed_at":"2025-04-01T18:42:50.000Z","size":691,"stargazers_count":22,"open_issues_count":3,"forks_count":43,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-02T10:14:32.289Z","etag":null,"topics":["cms","content","content-management","extension","solidus","static"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solidusio-contrib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-29T17:29:52.000Z","updated_at":"2025-04-01T18:42:55.000Z","dependencies_parsed_at":"2025-01-08T08:12:28.152Z","dependency_job_id":"6cb6af44-9dfe-4e93-906f-672141394a4f","html_url":"https://github.com/solidusio-contrib/solidus_static_content","commit_stats":{"total_commits":424,"total_committers":90,"mean_commits":4.711111111111111,"dds":0.7971698113207547,"last_synced_commit":"78f07b0b3194528b265d22155da92573fec6a98e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidusio-contrib%2Fsolidus_static_content","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidusio-contrib%2Fsolidus_static_content/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidusio-contrib%2Fsolidus_static_content/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidusio-contrib%2Fsolidus_static_content/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solidusio-contrib","download_url":"https://codeload.github.com/solidusio-contrib/solidus_static_content/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055272,"owners_count":21040153,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cms","content","content-management","extension","solidus","static"],"created_at":"2024-12-31T23:18:27.318Z","updated_at":"2025-04-09T15:00:21.342Z","avatar_url":"https://github.com/solidusio-contrib.png","language":"Ruby","readme":"# Solidus Static Content\n\n[![CircleCI](https://circleci.com/gh/solidusio-contrib/solidus_static_content.svg?style=svg)](https://circleci.com/gh/solidusio-contrib/solidus_static_content)\n\nA fork of the [Spree extension](https://github.com/spree-contrib/spree_static_content) for\ncompatibility with [Solidus](https://solidus.io).\n\nGood, clean content management of pages for Solidus. You can use it to:\n\n- Add and manage static pages such as an About page.\n- Show a static page instead of existing dynamic pages such as the home page, products pages, and\n  taxon pages.\n\n## Installation\n\nAdd solidus_static_content to your Gemfile:\n\n### Starter Frontend\n\nBundle your dependencies and run the installation generator:\n\n```shell\nbundle\nbin/rails generate solidus_static_content:install --frontend=starter\n```\n\nPlease, be aware that the installation only works with the default\nimplementation of the starter frontend. Any customization to the files that\nwill be modified by the installer might break the installation procedure.\nIf that happens, try to adapt the installed code on top of the customizations\nof the store.\n\n### Legacy Frontend\n\nIf you are using the legacy `solidus_frontend` gem, please run this command instead:\n\n```shell\nbin/rails generate solidus_static_content:install\n```\n\n## Usage\n\nUsing the 'Pages' option in the admin tab, you can add static pages to your Solidus store. The page\ncontent can be pulled directly from the database, be a separate layout file or be rendered as a\npartial.\n\nIn the admin tab, use the 'New page' option to create a new static page.\n\nThe title, slug, body, and meta fields will replace their respective page elements on load. The\ntitle, slug and body element are all required fields.\n\nBody text provided without a layout/partial being specified will be loaded in the\n`spree_application` layout after it is pulled from the database.\n\n### Layout and partial rendering\n\nTo render an entire page without the `spree_application` layout, specify a relative path to the\nlayout file (e.g. `spree/layouts/layout_file_name`). Note that the name of this file will not be\nprefixed with an underscore as it is a layout, not a partial.\n\nTo render a partial, specify the path in the layout file name and check the 'Render layout as\npartial' option. The path specified in the layout area will not have an underscore, but it will be\nrequired in the filename.\n\nAlso note the availability of the `render_snippet` helper which finds a page by its slug and renders\nthe raw page body anywhere in your view.\n\n### Options\n\nUse the 'Show in' checkboxes to specify whether to display the page links in the header, footer or\nsidebar. The position setting alters the order in which they appear.\n\nFinally, toggle the visibility using the 'Visible' checkbox. If it is unchecked, the page will not\nbe available.\n\n## Development\n\n### Testing the extension\n\nFirst bundle your dependencies, then run `bin/rake`. `bin/rake` will default to building the dummy\napp if it does not exist, then it will run specs. The dummy app can be regenerated by using\n`bin/rake extension:test_app`.\n\n```shell\nbundle\nbin/rake\n```\n\nTo run [Rubocop](https://github.com/bbatsov/rubocop) static code analysis run\n\n```shell\nbundle exec rubocop\n```\n\nWhen testing your application's integration with this extension you may use its factories.\nSimply add this require statement to your spec_helper:\n\n```ruby\nrequire 'solidus_static_content/factories'\n```\n\n### Running the sandbox\n\nTo run this extension in a sandboxed Solidus application, you can run `bin/sandbox`. The path for\nthe sandbox app is `./sandbox` and `bin/rails` will forward any Rails commands to\n`sandbox/bin/rails`.\n\nHere's an example:\n\n```shell\n$ bin/rails server\n=\u003e Booting Puma\n=\u003e Rails 6.0.2.1 application starting in development\n* Listening on tcp://127.0.0.1:3000\nUse Ctrl-C to stop\n```\n\n### Releasing new versions\n\nYour new extension version can be released using `gem-release` like this:\n\n```shell\nbundle exec gem bump -v VERSION --tag --push --remote upstream \u0026\u0026 gem release\n```\n\n## License\n\nCopyright (c) 2014 [Peter Berkenbosch](https://github.com/peterberkenbosch) and\n[contributors](https://github.com/solidusio-contrib/solidus_static_content/graphs/contributors),\nreleased under the New BSD License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidusio-contrib%2Fsolidus_static_content","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidusio-contrib%2Fsolidus_static_content","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidusio-contrib%2Fsolidus_static_content/lists"}