alchemy_cms

https://github.com/magiclabs/alchemy_cms

Ruby

AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻‍♂️

Alchemy::Page::PageElements#element_definition_names

All names of elements that are defined in the corresponding
page and cell definition.

Assign elements to a page in +config/alchemy/page_layouts.yml+ and/or
+config/alchemy/cells.yml+ file.

== Example of page_layouts.yml:

  - name: contact
    cells: [right_column]
    elements: [headline, contactform]

== Example of cells.yml:

  - name: right_column
    elements: [teaser]

Source | Google | Stack overflow

Edit

git clone [email protected]:magiclabs/alchemy_cms.git

cd alchemy_cms

open app/models/alchemy/page/page_elements.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Alchemy--Page--PageElements-element_definition_names-for-pr


# Commit to git

git add app/models/alchemy/page/page_elements.rbgit commit -m "better docs for Alchemy::Page::PageElements#element_definition_names"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Alchemy--Page--PageElements-element_definition_names-for-pr

hub pull-request


# Celebrate!