alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Hints#hint
Returns a hint
To add a hint to a content pass +hint: true+ to the element definition in its element.yml
Then the hint itself is placed in the locale yml files.
Alternativly you can pass the hint itself to the hint key.
== Locale Example:
# elements.yml
- name: headline
contents:
- name: headline
type: EssenceText
hint: true
# config/locales/de.yml
de:
content_hints:
headline: Lorem ipsum
== Hint Key Example:
- name: headline
contents:
- name: headline
type: EssenceText
hint: Lorem ipsumEdit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/models/concerns/alchemy/hints.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--Hints-hint-for-pr
# Commit to gitgit add app/models/concerns/alchemy/hints.rbgit commit -m "better docs for Alchemy::Hints#hint"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--Hints-hint-for-pr
hub pull-request
# Celebrate!