alchemy_cms 2.4.1 → 2.5.0.b2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. data/.travis.yml +1 -1
  2. data/README.md +18 -17
  3. data/alchemy_cms.gemspec +5 -10
  4. data/app/assets/images/alchemy/icons.png +0 -0
  5. data/app/assets/stylesheets/alchemy/archive.scss +27 -0
  6. data/app/assets/stylesheets/alchemy/base.scss +0 -51
  7. data/app/assets/stylesheets/alchemy/elements.scss +37 -2
  8. data/app/assets/stylesheets/alchemy/icons.scss +4 -0
  9. data/app/assets/stylesheets/alchemy/modules.scss +4 -0
  10. data/app/assets/stylesheets/alchemy/sitemap.scss +1 -1
  11. data/app/assets/stylesheets/alchemy/tables.scss +1 -1
  12. data/app/assets/stylesheets/alchemy/variables.scss +1 -0
  13. data/app/controllers/alchemy/admin/pages_controller.rb +1 -0
  14. data/app/controllers/alchemy/admin/pictures_controller.rb +22 -8
  15. data/app/controllers/alchemy/admin/resources_controller.rb +1 -1
  16. data/app/controllers/alchemy/admin/sites_controller.rb +6 -0
  17. data/app/controllers/alchemy/base_controller.rb +8 -0
  18. data/app/controllers/alchemy/elements_controller.rb +33 -3
  19. data/app/controllers/alchemy/messages_controller.rb +47 -40
  20. data/app/controllers/alchemy/pages_controller.rb +8 -31
  21. data/app/controllers/alchemy/pictures_controller.rb +64 -30
  22. data/app/helpers/alchemy/admin/base_helper.rb +7 -0
  23. data/app/helpers/alchemy/admin/pages_helper.rb +12 -0
  24. data/app/helpers/alchemy/elements_helper.rb +2 -0
  25. data/app/helpers/alchemy/pages_helper.rb +30 -10
  26. data/app/helpers/alchemy/url_helper.rb +1 -0
  27. data/app/models/alchemy/content.rb +1 -2
  28. data/app/models/alchemy/element.rb +47 -2
  29. data/app/models/alchemy/language.rb +27 -14
  30. data/app/models/alchemy/page.rb +1 -1
  31. data/app/models/alchemy/picture.rb +46 -41
  32. data/app/models/alchemy/site.rb +44 -0
  33. data/app/views/alchemy/admin/elements/_element_head.html.erb +1 -0
  34. data/app/views/alchemy/admin/languages/index.html.erb +23 -0
  35. data/app/views/alchemy/admin/pages/edit.html.erb +27 -1
  36. data/app/views/alchemy/admin/pages/fold.js.erb +1 -0
  37. data/app/views/alchemy/admin/partials/_upload_form.html.erb +2 -0
  38. data/app/views/alchemy/admin/pictures/_picture.html.erb +24 -2
  39. data/app/views/alchemy/admin/pictures/_tag_list.html.erb +5 -4
  40. data/app/views/alchemy/admin/pictures/create.js.erb +1 -9
  41. data/app/views/alchemy/admin/pictures/info.html.erb +42 -0
  42. data/app/views/alchemy/admin/resources/_form.html.erb +0 -2
  43. data/app/views/alchemy/admin/resources/_resource.html.erb +2 -1
  44. data/app/views/alchemy/admin/resources/index.html.erb +2 -1
  45. data/app/views/alchemy/elements/show.html.erb +1 -6
  46. data/app/views/alchemy/elements/show.js.erb +4 -10
  47. data/app/views/alchemy/essences/_essence_link_view.html.erb +1 -0
  48. data/app/views/alchemy/search/_form.html.erb +9 -6
  49. data/app/views/alchemy/search/_result.html.erb +1 -1
  50. data/bin/alchemy +13 -120
  51. data/config/alchemy/config.yml +7 -11
  52. data/config/alchemy/modules.yml +24 -12
  53. data/config/authorization_rules.rb +6 -2
  54. data/config/initializers/dragonfly.rb +20 -0
  55. data/config/locales/alchemy.de.yml +57 -28
  56. data/config/locales/alchemy.en.yml +18 -4
  57. data/config/routes.rb +4 -2
  58. data/db/migrate/20121121162313_switch_from_fleximage_to_dragonfly.rb +21 -0
  59. data/db/migrate/20121205155004_create_alchemy_sites.rb +14 -0
  60. data/db/migrate/20121211163003_add_public_to_alchemy_sites.rb +6 -0
  61. data/lib/alchemy/capistrano.rb +7 -2
  62. data/lib/alchemy/ferret_search.rb +84 -0
  63. data/lib/alchemy/picture_attributes.rb +29 -0
  64. data/lib/alchemy/seeder.rb +10 -16
  65. data/lib/alchemy/upgrader.rb +59 -8
  66. data/lib/alchemy/version.rb +1 -1
  67. data/lib/alchemy_cms.rb +7 -4
  68. data/lib/rails/generators/alchemy/deploy_script/templates/deploy.rb.tt +3 -0
  69. data/lib/rails/generators/alchemy/elements/elements_generator.rb +5 -1
  70. data/lib/rails/generators/alchemy/page_layouts/page_layouts_generator.rb +1 -0
  71. data/lib/rails/generators/alchemy/scaffold/files/{pages.html.erb → application.html.erb} +0 -0
  72. data/lib/rails/generators/alchemy/scaffold/scaffold_generator.rb +11 -20
  73. data/lib/rails/templates/alchemy.rb +1 -7
  74. data/lib/tasks/{database.rake → alchemy/db.rake} +1 -1
  75. data/lib/tasks/{install.rake → alchemy/install.rake} +9 -14
  76. data/lib/tasks/{upgrade.rake → alchemy/upgrade.rake} +1 -1
  77. data/spec/controllers/elements_controller_spec.rb +24 -9
  78. data/spec/controllers/pictures_controller_spec.rb +11 -8
  79. data/{app → spec/dummy/app}/views/alchemy/elements/_article_editor.html.erb +0 -0
  80. data/{app → spec/dummy/app}/views/alchemy/elements/_article_view.html.erb +0 -0
  81. data/{app → spec/dummy/app}/views/alchemy/elements/_headline_view.html.erb +0 -0
  82. data/{app → spec/dummy/app}/views/alchemy/elements/_news_view.html.erb +0 -0
  83. data/{app → spec/dummy/app}/views/alchemy/elements/_searchresult_view.html.erb +0 -0
  84. data/{app → spec/dummy/app}/views/alchemy/page_layouts/_standard.html.erb +0 -0
  85. data/spec/dummy/config/alchemy/elements.yml +86 -0
  86. data/spec/dummy/config/alchemy/page_layouts.yml +26 -0
  87. data/spec/dummy/config/application.rb +1 -1
  88. data/spec/dummy/db/migrate/20121121162313_switch_from_fleximage_to_dragonfly.rb +21 -0
  89. data/spec/dummy/db/migrate/20121205155004_create_alchemy_sites.rb +14 -0
  90. data/spec/dummy/db/migrate/20121211163003_add_public_to_alchemy_sites.rb +6 -0
  91. data/spec/dummy/db/schema.rb +21 -6
  92. data/spec/factories.rb +6 -2
  93. data/spec/integration/translation_integration_spec.rb +4 -18
  94. data/spec/models/element_spec.rb +4 -4
  95. data/spec/models/picture_spec.rb +37 -20
  96. data/spec/models/site_spec.rb +69 -0
  97. data/spec/routing_spec.rb +115 -115
  98. data/spec/spec_helper.rb +1 -3
  99. data/spec/support/alchemy/specs_helpers.rb +4 -4
  100. data/vendor/assets/javascripts/jquery_plugins/jquery.html5uploader.js +1 -1
  101. metadata +72 -96
  102. data/app/assets/stylesheets/alchemy/standard_set.css +0 -440
  103. data/app/views/alchemy/elements/_bild_editor.html.erb +0 -1
  104. data/app/views/alchemy/elements/_bild_text_editor.html.erb +0 -7
  105. data/app/views/alchemy/elements/_bild_text_view.html.erb +0 -9
  106. data/app/views/alchemy/elements/_bild_view.html.erb +0 -9
  107. data/app/views/alchemy/elements/_claim_editor.html.erb +0 -1
  108. data/app/views/alchemy/elements/_claim_view.html.erb +0 -1
  109. data/app/views/alchemy/elements/_contactform_editor.html.erb +0 -4
  110. data/app/views/alchemy/elements/_contactform_view.html.erb +0 -78
  111. data/app/views/alchemy/elements/_download_editor.html.erb +0 -4
  112. data/app/views/alchemy/elements/_download_view.html.erb +0 -7
  113. data/app/views/alchemy/elements/_footnote_editor.html.erb +0 -1
  114. data/app/views/alchemy/elements/_footnote_view.html.erb +0 -5
  115. data/app/views/alchemy/elements/_header_editor.html.erb +0 -1
  116. data/app/views/alchemy/elements/_header_view.html.erb +0 -1
  117. data/app/views/alchemy/elements/_headline_editor.html.erb +0 -1
  118. data/app/views/alchemy/elements/_image_mosaic_editor.html.erb +0 -3
  119. data/app/views/alchemy/elements/_image_mosaic_view.html.erb +0 -14
  120. data/app/views/alchemy/elements/_intro_editor.html.erb +0 -1
  121. data/app/views/alchemy/elements/_intro_image_text_editor.html.erb +0 -3
  122. data/app/views/alchemy/elements/_intro_image_text_view.html.erb +0 -16
  123. data/app/views/alchemy/elements/_intro_view.html.erb +0 -3
  124. data/app/views/alchemy/elements/_news_editor.html.erb +0 -3
  125. data/app/views/alchemy/elements/_searchresult_editor.html.erb +0 -4
  126. data/app/views/alchemy/elements/_sitemap_editor.html.erb +0 -3
  127. data/app/views/alchemy/elements/_sitemap_view.html.erb +0 -38
  128. data/app/views/alchemy/elements/_sitename_editor.html.erb +0 -1
  129. data/app/views/alchemy/elements/_sitename_view.html.erb +0 -1
  130. data/app/views/alchemy/elements/_subheadline_editor.html.erb +0 -1
  131. data/app/views/alchemy/elements/_subheadline_view.html.erb +0 -5
  132. data/app/views/alchemy/elements/_text_editor.html.erb +0 -1
  133. data/app/views/alchemy/elements/_text_view.html.erb +0 -3
  134. data/app/views/alchemy/page_layouts/_contact.html.erb +0 -14
  135. data/app/views/alchemy/page_layouts/_external.html.erb +0 -0
  136. data/app/views/alchemy/page_layouts/_intro.html.erb +0 -14
  137. data/app/views/alchemy/page_layouts/_layout_footer.html.erb +0 -14
  138. data/app/views/alchemy/page_layouts/_layout_header.html.erb +0 -14
  139. data/app/views/alchemy/page_layouts/_news.html.erb +0 -14
  140. data/app/views/alchemy/page_layouts/_newsletter_layout.html.erb +0 -1
  141. data/app/views/alchemy/page_layouts/_search.html.erb +0 -14
  142. data/app/views/alchemy/pictures/show.gif.flexi +0 -19
  143. data/app/views/alchemy/pictures/show.jpg.flexi +0 -19
  144. data/app/views/alchemy/pictures/show.png.flexi +0 -19
  145. data/app/views/alchemy/pictures/thumbnail.png.flexi +0 -13
  146. data/app/views/alchemy/pictures/zoom.jpg.flexi +0 -3
  147. data/app/views/alchemy/pictures/zoom.png.flexi +0 -3
  148. data/app/views/layouts/alchemy/pages.html.erb +0 -51
  149. data/config/alchemy/elements.yml +0 -274
  150. data/config/alchemy/page_layouts.yml +0 -75
  151. data/config/asset_packages.yml +0 -30
  152. data/config/initializers/localeapp.rb +0 -9
  153. data/lib/rails/generators/alchemy/plugin/files/translation.pot +0 -3
  154. data/lib/rails/generators/alchemy/plugin/files/translation_de.po +0 -3
  155. data/lib/rails/generators/alchemy/plugin/files/translation_en.po +0 -3
  156. data/lib/rails/generators/alchemy/plugin/plugin_generator.rb +0 -37
  157. data/lib/rails/generators/alchemy/plugin/templates/authorization_rules.rb +0 -34
  158. data/lib/rails/generators/alchemy/plugin/templates/config.yml +0 -30
  159. data/lib/rails/generators/alchemy/plugin/templates/init.rb +0 -1
  160. data/lib/rails/generators/alchemy/plugin/templates/plugin.rb +0 -0
  161. data/lib/rails/generators/alchemy/plugin/templates/routes.rb +0 -10
  162. data/lib/tasks/fleximage.rake +0 -154
  163. data/spec/dummy/app/views/layouts/.gitkeep +0 -0
@@ -1,13 +0,0 @@
1
- @picture.operate do |image|
2
- if @crop
3
- image.crop(
4
- :from => params[:crop_from],
5
- :size => params[:crop_size]
6
- )
7
- image.resize(@size) unless @size.nil?
8
- else
9
- image.resize(@size, :crop => @default_crop) unless @size.nil?
10
- image.image_overlay(@overlay[:file], :alignment => @overlay[:alignment]) unless @overlay.nil?
11
- end
12
- image
13
- end
@@ -1,3 +0,0 @@
1
- @picture.operate do |image|
2
- image
3
- end
@@ -1,3 +0,0 @@
1
- @picture.operate do |image|
2
- image
3
- end
@@ -1,51 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <!-- Your site title-prefix (That is YourSite in "YourSite - CurrentPage" is taken from a layout-page by default.
5
- Alternatively you can hardcode it here -->
6
- <%= render_meta_data(:title_prefix => sitename_from_header_page, :title_seperator => "-") %>
7
- <!-- Paths here are relative to app/assets/stylesheets.
8
- alchemy/standard_set, though, is located in Alchemy-source and doesn't have to be present in your app,
9
- but you can copy it over and customize it of course. -->
10
- <%= stylesheet_link_tag "alchemy/standard_set", :media => :screen %>
11
- <%= stylesheet_link_tag "alchemy/standard_set", :media => :print %>
12
- <!-- Here is also the place for custom javascripts. Put them in app/assets/javascripts/yourscript.js (or yourscript.js.coffee)
13
- and include them like this (remove the \):
14
- <\%= javascript_include_tag "yourscript" %> -->
15
- </head>
16
- <body>
17
- <div id="page">
18
- <div id="language_select">
19
- <!-- Render links with flags for all public languages -->
20
- <%= language_switches(:linkname => :code) %>
21
- </div>
22
- <div id="breadcrump">
23
- <!-- Renders a breadcrumb/ariadne-path. For customizing see docs for render_breadcrumb (link?) -->
24
- <%= render_breadcrumb :seperator => "<span>&nbsp;<&nbsp;</span>" %>
25
- </div>
26
- <div id="navigation">
27
- <!-- Renders main navigation. For customizing see docs for render_navigation (link?)
28
- You can overwrite app/views/navigation/_renderer.html.erb and app/views/navigation/_link.html.erb
29
- if you want to roll out your own markup -->
30
- <%= render_navigation :all_sub_menues => true %>
31
- </div>
32
- <!-- Most important call here!
33
- This yields (=inserts) all content of the current page.
34
- Markup depends on page_layout, elements and essences and can be changed in app/views/alchemy/... -->
35
- <%= yield %>
36
- <div class="footer">
37
- <!-- Renders elements that are called "footnote" (name-attribute in elements.yml)
38
- from page_layout "layout_footer" (name-attribute in page_layout.yml) -->
39
- <%= render_elements(
40
- :from_page => 'layout_footer',
41
- :only => ['footnote']
42
- ) %>
43
- </div>
44
- </div>
45
- <!-- This is used in Alchemy's backend to prevent navigating to other pages through the preview window -->
46
- <%= alchemy_preview_mode_code %>
47
- <!-- Renders a menu_bar when a user with sufficient rights visits a page -->
48
- <%= alchemy_menu_bar %>
49
- </body>
50
- </html>
51
-
@@ -1,274 +0,0 @@
1
- # == In this configuration you setup Alchemy´s element layouts.
2
- #
3
- # Use rails generate alchemy:scaffold to generate this file for your app.
4
- #
5
- # Elements containing all necessary basic tools for displaying and editing content inside Alchemy.
6
- # They consists of composed contents (different essence-types) as shown in the illustration of an elements-sheme below.
7
- #
8
- # == Schema of an element
9
- #
10
- # =================================
11
- # # Content 1 (EssenceText) #
12
- # # #
13
- # # Content 2 (EssencePicture) #
14
- # # #
15
- # # Content 3 (EssenceRichtext) #
16
- # =================================
17
- #
18
- # == Example of a basic element layout
19
- #
20
- # - name: a_unique_name (Used for the partial name in +app/views/elements+ and translated as Element.display_name)
21
- # unique: Bool //pass true if this element only can be displayed once on page
22
- # contents:
23
- # - name: head
24
- # type: EssenceText
25
- # - name: text
26
- # type: EssenceRichtext
27
- #
28
- # As already mentioned above, there are different content-types wich can be defined for each content in an element.
29
- #
30
- # Defining these types is used to render predefined views in the element.
31
- #
32
- # == Content-Types:
33
- #
34
- # * EssenceText (Used to store a String (max. 255 Chars.) i.e. a headline, or productname. The editor is renderd as a single-lined input field. The view output will be sanitized and escaped. So it's XSS save.)
35
- # * EssenceRichtext (Used to store editable richtext. Editor is rendered as a textarea with TinyMCE Editor.)
36
- # * EssencePicture (Used to store pictures assigned through the library. The editor view provides a lot of options (i.e. image cropper). The view renders the assigned picture, resizes it, crops it and caches the result.)
37
- # * EssenceFile (Used to store attachments assigned through the library. The view renders download link.)
38
- # * EssenceAudio (Used to store attachments assigned through the library. The view renders an flash audio player.)
39
- # * EssenceVideo (Used to store attachments assigned through the library. The view renders an flash video player.)
40
- # * EssenceFlash (Used to store attachments assigned through the library. The view renders the embeded flash object.)
41
- # * EssenceDate (Used to store a DateTime object. The view output is passed through Rails I18n Library, so it will be fully localized.)
42
- # * EssenceHtml (Used to store HTML code. The view output renders the raw, not sanitized or unescaped String. So be careful!)
43
- # * EssenceSelect (Used to store a String (max. 255 Chars.) value. The editor view is displayed as a select box)
44
- # * EssenceBoolean (Used to store a Boolean (true or false) value. The editor view is displayed as a check box)
45
- # * EssenceLink (Used to store an URL. The link button opens the same link overlay as the link button in the EssenceRichtext TinyMCE editor.)
46
- #
47
- # After finishing the setup of your element layouts, you need to generate the files for the elements before using them in Alchemy.
48
- #
49
- # For creating these files, use the following command in your terminal:
50
- #
51
- # rails g alchemy:elements
52
- #
53
- # or:
54
- #
55
- # rails g alchemy:elements --skip
56
- #
57
- # to skip existing elements
58
- #
59
- #
60
- # All new elements will be created as two different partials in +Rails.root/app/views/elements+.
61
- #
62
- # For each element there is an editor-view wich will be rendered when editing them in Alchemy and another view for the website´s frontend.
63
- #
64
- # app/views/elements/_elements_name_editor.html.erb
65
- # app/views/elements/_elements_name_view.html.erb
66
- #
67
- # For most contents in an element you can specify additional options, so they get rendered in a specific way.
68
- # These options can be defined as symbols, but its too much to list them up here.
69
- # You can find these options described in the application_helper.rb, most of them at the render_essence method.
70
- #
71
- # == Setting a content as preview-text for the element
72
- #
73
- # You can set a content-essence as preview-text for its element like this:
74
- #
75
- # take_me_for_preview: true
76
- #
77
- # == Adding contents dynamically in the frontend
78
- #
79
- # You are able to add content-essences dynamically to the element from the Alchemy frontend.
80
- #
81
- # You just have to make contents available for adding them.
82
- #
83
- # === Example:
84
- #
85
- # - name: headline
86
- # unique: false
87
- # contents:
88
- # - name: headline
89
- # type: EssenceText
90
- # - name: big_text
91
- # type: EssenceRichtext
92
- # available_contents:
93
- # - name: big_text
94
- # type: EssenceRichtext
95
- #
96
- # And add a +<%= render_create_content_link(element, 'big_text') %>+ helper to your element editor partial.
97
- #
98
- # Now an Alchemy user can add as many additional +big_text+ contents as s/he wants.
99
- #
100
- # If you have more then one additional content defined you should use the:
101
- #
102
- # <%= render_new_content_link(element) %>
103
- #
104
- # helper. This opens an overlay from where the user can choose which content to add.
105
- #
106
- # === Translate element names
107
- #
108
- # Element names are passed through the +I18n+ library. So you can translate them in your config/locales language yml file.
109
- #
110
- # === Example:
111
- #
112
- # de:
113
- # alchemy:
114
- # element_names:
115
- # contact: Kontakt
116
- # search: Suche
117
- #
118
- # == Validations:
119
- #
120
- # You can validate the presence of a content. Just pass validate and one of the supported vaidatiosn methods to your content definition:
121
- #
122
- # - name: article
123
- # display_name: Standard-Artikel
124
- # contents:
125
- # - name: intro
126
- # type: EssenceText
127
- # validate:
128
- # - presence
129
- #
130
- # Now the user has to enter a value inside of the intro EssenceText textfield to save the element.
131
- # Currently supported validations are:
132
- #
133
- # * presence
134
- # * uniqueness
135
- #
136
- - name: article
137
- taggable: true
138
- contents:
139
- - name: intro
140
- type: EssenceText
141
- - name: headline
142
- type: EssenceText
143
- settings:
144
- deletable: true
145
- - name: image
146
- type: EssencePicture
147
- - name: text
148
- type: EssenceRichtext
149
- settings:
150
- deletable: true
151
- available_contents:
152
- - name: text
153
- type: EssenceRichtext
154
- - name: headline
155
- type: EssenceText
156
-
157
- - name: intro_image_text
158
- unique: true
159
- contents:
160
- - name: headline
161
- type: EssenceText
162
- - name: image
163
- type: EssencePicture
164
- - name: text
165
- type: EssenceRichtext
166
-
167
- - name: text
168
- contents:
169
- - name: text
170
- type: EssenceRichtext
171
-
172
- - name: bild
173
- contents:
174
- - name: image
175
- type: EssencePicture
176
-
177
- - name: bild_text
178
- contents:
179
- - name: image
180
- type: EssencePicture
181
- - name: text
182
- type: EssenceRichtext
183
-
184
- - name: headline
185
- contents:
186
- - name: headline
187
- type: EssenceText
188
-
189
- - name: image_mosaic
190
- picture_gallery: true
191
- contents:
192
- - name: caption
193
- type: EssenceText
194
- - name: show_caption
195
- type: EssenceBoolean
196
-
197
- - name: footnote
198
- unique: true
199
- contents:
200
- - name: note
201
- type: EssenceRichtext
202
-
203
- - name: sitename
204
- unique: true
205
- contents:
206
- - name: name
207
- type: EssenceText
208
-
209
- - name: claim
210
- unique: true
211
- contents:
212
- - name: claim
213
- type: EssenceText
214
-
215
- - name: header
216
- unique: true
217
- contents:
218
- - name: image
219
- type: EssencePicture
220
-
221
- - name: intro
222
- contents:
223
- - name: intro
224
- type: EssenceRichtext
225
-
226
- - name: subheadline
227
- contents:
228
- - name: subheadline
229
- type: EssenceText
230
-
231
- - name: download
232
- contents:
233
- - name: file
234
- type: EssenceFile
235
- settings:
236
- deletable: true
237
- available_contents:
238
- - name: file
239
- type: EssenceFile
240
-
241
- - name: news
242
- contents:
243
- - name: date
244
- type: EssenceDate
245
- - name: news_headline
246
- type: EssenceText
247
- rss_title: true
248
- - name: body
249
- type: EssenceRichtext
250
- rss_description: true
251
-
252
- - name: searchresult
253
- unique: true
254
-
255
- - name: contactform
256
- unique: true
257
- contents:
258
- - name: mail_from
259
- type: EssenceText
260
- validate:
261
- - presence
262
- - name: mail_to
263
- type: EssenceText
264
- validate:
265
- - presence
266
- - name: subject
267
- type: EssenceText
268
- take_me_for_preview: true
269
- validate:
270
- - presence
271
- - name: success_page
272
- type: EssenceSelect
273
- validate:
274
- - presence
@@ -1,75 +0,0 @@
1
- # == This file defines the page_layouts for new pages.
2
- #
3
- # Please make your own page_layouts for your app in your own Rails.root/config/alchemy/page_layouts.yml file.
4
- #
5
- # === DSL:
6
- # - name: String # The name of the layout used for views and inside the database. You can render a layout with the render_page_layout(name) helper.
7
- # unique: Bool # Pass true and the user can only choose this layout once inside a language tree.
8
- # hide: Bool # Pass true to hide this layout from the user.
9
- # elements: Array # A list of element names that can be placed on this layout i.e. [text, picture]. Elements are defined inside the elements.yml file.
10
- # insert_elements_at: String # Pass top to insert elements at top of the list. Default: bottom
11
- # autogenerate: Array # A list of element names that are autogenerated after creating the Page.
12
- # searchresults: Bool # Pass true to enable rendering the searchresults of the fulltext-search.
13
- # layoutpage: Bool # Layoutpages are outside the normal pagetree and can be used to place "global" language independent Elements.
14
- # cache: Bool # Pass false to disable the caching for this pages.
15
- # feed: Bool # Pass true to enable a RSS feed of news elements from this page.
16
- # redirects_to_external: Bool # Pass true to disable normal page rendering and redirect to a external page instead.
17
- # controller: controller_name # Controller to use instead of the default PagesController
18
- # action: action_name # Controllers action to use instead of the default PagesController#show
19
- #
20
- # === Translate page layout names
21
- #
22
- # Page layout names are passed through the I18n library. So you can translate them in your config/locales language yml file.
23
- #
24
- # Example:
25
- #
26
- # de:
27
- # alchemy:
28
- # page_layout_names:
29
- # contact: Kontakt
30
- # search: Suche
31
- #
32
- - name: intro
33
- unique: true
34
- elements: [header, intro_image_text]
35
- autogenerate: [header, intro_image_text]
36
-
37
- - name: standard
38
- elements: [article, claim, header, bild, bild_text, text, intro, headline, image_mosaic, download]
39
- autogenerate: [header, claim, article]
40
- taggable: true
41
-
42
- - name: contact
43
- unique: true
44
- cache: false
45
- elements: [headline, text, contactform]
46
- autogenerate: [headline, text, contactform]
47
-
48
- - name: news
49
- feed: true
50
- unique: true
51
- insert_elements_at: top
52
- elements: [headline, news]
53
- autogenerate: [news]
54
- feed_elements: [news]
55
-
56
- - name: search
57
- unique: true
58
- cache: false
59
- elements: [headline, text, searchresult]
60
- autogenerate: [searchresult]
61
- searchresults: true
62
-
63
- - name: layout_header
64
- unique: true
65
- layoutpage: true
66
- taggable: true
67
- elements: [sitename, header]
68
-
69
- - name: layout_footer
70
- unique: true
71
- layoutpage: true
72
- elements: [footnote]
73
-
74
- - name: external
75
- redirects_to_external: true
@@ -1,30 +0,0 @@
1
- ---
2
- javascripts:
3
- - jquery-1.6.2.min
4
- - jquery-ui-custom-1.8.16.min
5
- - jquery_ujs
6
- - jquery_plugins/jquery.dialogextend.min.js
7
- - jquery_plugins/jquery.in-place-edit.js
8
- - jquery_plugins/jquery.Jcrop.min.js
9
- - jquery_plugins/jquery.sb.min.js
10
- - jquery_plugins/jquery.scrollTo-1.4.2-min.js
11
- - jquery_plugins/jquery.ui.nestedSortable.js
12
- - jquery_plugins/jquery.ui.tabspaging.js
13
- - alchemy/alchemy.base
14
- - alchemy/alchemy.element_editor_selector
15
- - alchemy/alchemy.image_cropper
16
- - alchemy/alchemy.link_overlay
17
- - alchemy/alchemy.page_sorter
18
- - alchemy/alchemy.growler
19
- - swfupload/swfupload
20
- - swfupload/queue
21
- - swfupload/handlers
22
- - swfupload/fileprogress
23
-
24
- stylesheets:
25
- - alchemy/base
26
- - alchemy/elements
27
- - alchemy/flags
28
- - alchemy/jquery-ui.alchemy
29
- - alchemy/jquery.Jcrop
30
- - alchemy/jquery.sb