/[drupal]/contributions/modules/patterns/patterns/sample.yaml
ViewVC logotype

Contents of /contributions/modules/patterns/patterns/sample.yaml

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1.2.8 - (show annotations) (download)
Fri May 15 09:50:20 2009 UTC (6 months, 2 weeks ago) by vaish
Branch: DRUPAL-6--1
Changes since 1.1.2.7: +8 -0 lines
#451188: added examples for permissions action
1 info:
2 title: YAML example
3 description: sample YAML pattern
4 author: Vaish
5 category: Examples
6 author_email: vnd@graviteklabs.com
7
8 modules:
9 - content
10 - text
11 - taxonomy
12 - adminrole
13
14 actions:
15 - tag: content
16 name: Article
17 type: article
18 comment: 0
19 status: 1
20 - tag: field
21 type: article
22 name: summary
23 label: Article Summary
24 option: text
25 widget: text_textarea
26 rows: 3
27 text_processing: 1
28 weight: -1
29 - tag: vocabulary
30 name: Article Keywords
31 nodes:
32 article: article
33 tags: 1
34 - tag: variable
35 name: site_footer
36 value: YAML file format Test
37 - tag: role
38 action_label: adminrole
39 value: administrator
40 - tag: permissions
41 role: administrator
42 0: administer blocks
43 1: access comments
44 2: post comments
45 - tag: permissions
46 role: administrator
47 value: access content, display source code, administer filters
48 - tag: form
49 form_id: adminrole_admin_settings
50 adminrole_adminrole: @adminrole@
51 - tag: node
52 action_label: aboutus
53 type: page
54 title: About Us
55 body: |
56 <p>By using | character on the line above, we are able to enter <strong>HTML</strong> mark up and have all the line breaks preserved.</p>
57
58 <p>Enter text in the exactly same way as you would do it in the regular node edit form.</p>
59
60 <p>
61 Unfortunately, indentation seems to be lost.
62 <ul>
63 <li>item 1</li>
64 <li>item 2</li>
65 <li>item 3</li>
66 </ul>
67 </p>
68 - tag: menu_item
69 menu: Primary Links
70 title: About Us
71 path: node/@aboutus@
72 weight: 5
73 - tag: variable
74 name: theme_settings
75 toggle_node_info_page: 0
76 toggle_node_info_story: 1
77 toggle_favicon: 0
78

  ViewVC Help
Powered by ViewVC 1.1.2