alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Element::Presenters#display_name_with_preview_text
Generates a preview text containing Element#display_name and Element#preview_text.
It is displayed inside the head of the Element in the Elements.list overlay window from the Alchemy Admin::Page#edit view.
=== Example
A Element described as:
- name: funky_element
display_name: Funky Element
contents:
- name: headline
type: EssenceText
- name: text
type EssenceRichtext
as_element_title: true
With "I want to tell you a funky story" as stripped_body for the EssenceRichtext Content produces:
Funky Element: I want to tell ...Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/models/alchemy/element/presenters.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--Element--Presenters-display_name_with_preview_text-for-pr
# Commit to gitgit add app/models/alchemy/element/presenters.rbgit commit -m "better docs for Alchemy::Element::Presenters#display_name_with_preview_text"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--Element--Presenters-display_name_with_preview_text-for-pr
hub pull-request
# Celebrate!