modificat URL
[my-sputnik-wiki.git] / @Root.lua
blobda878037c0cce15a4476169119bfa87a9899e331
2 fields = [[-- Think twice before editing this ------------------------
3 fields = {0.0, proto="concat", activate="lua"}
4 title = {0.1 }
5 category = {0.2 }
6 actions = {0.3, proto="concat", activate="lua"}
7 action_hooks = {0.31, proto="concat", activate="lua"}
8 config = {0.4, proto="concat", activate="lua"}
9 markup_module = {0.41, proto="fallback"}
10 templates = {0.5, proto="concat", activate="list"}
11 translations = {0.51, proto="concat", activate="list"}
12 prototype = {0.6 }
13 permissions = {0.7, proto="concat"}
14 html_main = {0.701, proto="fallback"}
15 html_head = {0.702, proto="fallback"}
16 html_menu = {0.703, proto="fallback"}
17 html_logo = {0.704, proto="fallback"}
18 html_search = {0.705, proto="fallback"}
19 html_page = {0.706, proto="fallback"}
20 html_content = {0.7061, proto="fallback"}
21 html_body = {0.707, proto="fallback"}
22 html_header = {0.708, proto="fallback"}
23 html_footer = {0.708, proto="fallback"}
24 html_sidebar = {0.709, proto="fallback"}
25 html_meta_keywords = {0.70901, proto="fallback"}
26 html_meta_description = {0.70902, proto="fallback"}
27 redirect_destination = {0.70903}
28 xssfilter_allowed_tags = {0.7091, proto="concat", activate="lua"}
29 http_cache_control = {0.710, proto="fallback"}
30 http_expires = {0.711, proto="fallback"}
31 content = {0.8 }
32 edit_ui = {0.9, proto="concat"}
33 admin_edit_ui = {0.91, proto="concat"}
34 child_defaults = {0.92, proto="concat", activate="lua"}
35 icon = {0.93, proto="fallback"}
36 breadcrumb = {0.94 }
37 save_hook = {0.95, proto="fallback"}
39 -- "virtual" fields (never saved) ------------------------
40 version = {virtual=true}
41 prev_version = {virtual=true}
42 raw = {virtual=true}
43 history = {virtual=true}
44 name = {virtual=true}
46 title = "@Root (Root Prototype)"
47 category = ""
48 actions = [[show = "wiki.show"
49 show_content = "wiki.show_content"
50 history = "wiki.history"
51 edit = "wiki.edit"
52 configure = "wiki.configure"
53 post = "wiki.post"
54 rss = "wiki.rss"
55 diff = "wiki.diff"
56 code = "wiki.code"
57 raw = "wiki.raw"
58 raw_content = "wiki.raw_content"
59 login = "wiki.show_login_form"
60 sputnik_version = "wiki.sputnik_version"
61 save = "wiki.save"
62 preview = "wiki.preview"
63 preview_content = "wiki.preview_content"
64 reload = "wiki.reload"
66 config = [[
68 markup_module = "markdown"
69 templates = "sputnik/templates"
70 translations = "sputnik/translations"
71 prototype = ""
72 permissions = [[ deny(all_users, all_actions)
73 allow(all_users, show) -- show, show_content, cancel
74 allow(all_users, edit_and_save) -- edit, save, preview
75 allow(all_users, "post") --needed for login
76 allow(all_users, "login")
77 allow(all_users, history_and_diff)
78 allow(all_users, "rss")
79 allow(all_users, "xml")
80 deny(Anonymous, edit_and_save)
81 allow(Admin, "reload")
82 allow(Admin, "configure")
84 html_main = [==[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
85 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
86 <html xmlns="http://www.w3.org/1999/xhtml">
87 <head>
88 $head
89 </head>
90 <body>
91 $body
93 <script type="text/javascript" src="$js_base_url{}sputnik/scripts.js"></script>
94 $do_javascript_links[[<script type="text/javascript" src="$href"></script>
96 $do_javascript_snippets[=[
97 <script type="text/javascript">/* <![CDATA[ */ $snippet /* ]]> */</script>
98 ]=]
99 </body>
100 </html>
101 ]==]
102 html_head = [=[ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
103 <meta name="keywords" content="$html_meta_keywords"/>
104 <meta name="description" content="$html_meta_description"/>
105 <title>$site_title: $title</title>
106 <link type="text/css" rel="stylesheet" href="$css_base_url{}sputnik/style.css" media="all"/>
107 $do_css_links[[<link type="text/css" rel="stylesheet" href="$href" media="$media"/>
108 ]]$do_css_snippets[[
109 <style type="text/css" media="$media">$snippet</style>
111 <link rel="shortcut icon" href="$favicon_url"/>
112 <link rel="alternate" type="application/rss+xml" title="_(RECENT_EDITS_TO_SITE)" $site_rss_link/>
113 <link rel="alternate" type="application/rss+xml" title="_(RECENT_EDITS_TO_NODE)" $node_rss_link/>
114 $if_no_index[[<meta name="ROBOTS" content="NOINDEX, NOFOLLOW"/>
115 ]]]=]
116 html_menu = [==[ <ul id='menu' class="level1">$do_nav_sections[=[
117 <li class='$class level1' id='$id'>
118 <a title="$accessibility_title" $link>$title</a>
119 <ul class='$class level2'>$subsections[[
120 <li class='$class level2'><a title="$accessibility_title" $link>$title</a></li>]]
121 <li style="display:none">&nbsp;</li>
122 </ul>
123 </li>]=]
124 </ul>
125 ]==]
126 html_logo = [[ <a class="logo" href="$home_page_url">
127 <img src="$logo_url" alt="_(LOGO)" />
128 </a>
130 html_search = [[ <form action="$base_url" class="search">
131 <input class="hidden" type="hidden" name="p" value="sputnik/search"/>
132 <input class="search_box" type="text" name="q" size="16"
133 title="_(TOOLTIP_FOR_SEARCH_BOX)" value="$search_box_content"/>
134 <input class="search_button" type="image" src="$icon_base_url{}icons/search.png" alt="_(BUTTON)"/>
135 </form>
137 html_page = [=[ <div id="breadcrumbs">
138 <ul>
139 $do_breadcrumb[[
140 <li class="first"><a $link>$title</a></li>]],[[
141 <li class="follow"><a $link>▹&nbsp; $title</a></li>]]
142 </ul>
143 <span class="toolbar">
144 $do_toolbar[[
145 $if_icon[====[<a $link title="$title"><img src="$icon_base_url{}$icon" alt="_(BUTTON)"/></a>]====]
146 $if_text[====[<a $link>$title</a>]====]
148 </span>
149 </div>
150 <div class="title">$if_title_icon[[
151 <img src="$title_icon" class="title_icon" alt="type icon ($title_icon)"/>]]
152 <a name="title" title="_(CURRENT_PAGE)" $show_link >$title</a> $if_old_version[[<span class="from_version">($version)</span>]]
153 </div>
154 <div class='content'>
155 $do_messages[[<p class="$class">$message</p>]]
157 $content
158 </div>
160 html_content = [[Not used by default.
162 html_body = [=[ <div id='doc3' class='yui-t0'>
164 <div id="login_form" class="popup_form" style="display: none"></div>
165 <div id='hd'>
166 $header
167 </div>
168 <div id='bd'>
169 <div id="yui-main" $if_old_version[[style='background-color:#ddd;']]>
170 <div class="yui-b" id='page'>
171 $page
172 </div>
173 </div>
174 <div class="yui-b" id="sidebar">
175 $sidebar
176 </div>
177 </div> <!--#bd-->
178 <div id='ft'>
179 $footer </div>
180 </div> <!--#docN-->
181 <br/>
183 html_footer = [[ _(POWERED_BY_SPUTNIK) | <a style="font-size: .7em" href="http://validator.w3.org/check?uri=referer">XHTML 1.1</a>
185 html_header = [=[ <div id="login" style="vertical-align: middle;">
186 <!--login and search (in the upper right corner) -->
187 $if_search[[$search]]<br/><br/>
188 $if_logged_in[[<span style="border: 1px solid read;">_(HI_USER)
189 <a title="_(LOGOUT)" $logout_link><img style="vertical-align: text-bottom" src="$icon_base_url{}icons/logout.png" alt="_(BUTTON)"/></a></span>]]
190 $if_not_logged_in[[<a class="login_link" $login_link>_(LOGIN)</a> _(OR) <a $register_link>_(REGISTER)</a>]]
192 </div>
193 <div id="logo">
194 $logo
195 </div>
196 <div id="menu_bar">
197 $menu<!--br/><br/-->
198 </div>
200 html_sidebar = ""
201 html_meta_keywords= " "
202 html_meta_description= " "
203 redirect_destination= ""
204 xssfilter_allowed_tags= ""
205 http_cache_control= ""
206 http_expires = ""
207 content = [=[This is the root proto-page. The content of this form is ignored, but
208 it's fields are inherited by all other pages. E.g., if you were to set
210 actions = [[show_content = "wiki.show_content_as_lua_code"]]
212 on this page, _all_ pages would default to displaying their content as
213 if it was Lua code. (Note that any page that sets `show_content` to
214 its own value, and any pages that inherit from it, will continue to
215 work as they did before.) I.e., this page only affects the default
216 values. Handle with care.
219 edit_ui = [[-------------------------- basic fields ----------------
220 content_section = {1.0, "div_start", id="content_section", open="true"}
221 content = {1.3, "textarea", rows=15, no_label=true}
222 content.editor_modules = {
223 "resizeable",
224 "markitup",
226 content_section_end = {1.4, "div_end"}
228 -------------------------- advanced fields -------------
229 advanced_section = {2.0, "div_start", id="advanced"}
230 page_name = {2.21, "readonly_text"}
231 title = {2.22, "text_field"}
232 breadcrumb = {2.23, "text_field"}
233 category = {2.24, "select", options = {}}
234 prototype = {2.25, "hidden", no_label=true, div_class="hidden"}
235 advanced_section_end = {2.3, "div_end"}
237 --- info about the edit --------------------------------
238 edit_info_section = {3.00, "div_start", id="edit_info_section", open="true"}
239 minor = {3.1, "checkbox", value=false}
240 summary = {3.2, "textarea", rows=3, editor_modules = {"resizeable"}}
241 edit_info_section_end = {3.3, "div_end"}
243 admin_edit_ui = [[-------------------------- basic fields ----------------
244 --page_params_hdr = {1.0, "header"}
245 content_section = {1.00, "div_start", id="content_section", open="true"}
246 page_name = {1.1, "readonly_text"}
247 title = {1.2, "text_field"}
248 breadcrumb = {1.3, "text_field"}
249 content = {1.4, "textarea", editor_modules = {"resizeable"}, rows=15, no_label=true}
250 content_section_end = {1.5, "div_end"}
252 -------------------------- advanced fields -------------
253 advanced_section = {2.0, "div_start", id="advanced_section"}
254 category = {2.01, "select", options = {"Foo", "Bar"}}
255 prototype = {2.02, "text_field"}
256 redirect_destination = {2.022, "text_field"}
257 permissions = {2.03, "textarea", rows=3, editor_modules = {"resizeable", "validatelua"}}
258 actions = {2.04, "textarea", rows=3, editor_modules = {"resizeable", "validatelua"}}
259 config = {2.05, "textarea", rows=3, editor_modules = {"resizeable", "validatelua"}}
260 markup_module = {2.0501, "text_field"}
261 html_meta_keywords = {2.051, "text_field"}
262 html_meta_description = {2.052, "text_field"}
263 save_hook = {2.053, "text_field"}
264 advanced_section_end = {2.06, "div_end"}
266 html_section = {2.100, "div_start", id="html_section", state="open"}
267 html_main = {2.101, "textarea", rows=3, editor_modules = {"resizeable"}}
268 html_head = {2.102, "textarea", rows=3, editor_modules = {"resizeable"}}
269 html_body = {2.103, "textarea", rows=3, editor_modules = {"resizeable"}}
270 html_header = {2.104, "textarea", rows=3, editor_modules = {"resizeable"}}
271 html_menu = {2.105, "textarea", rows=3, editor_modules = {"resizeable"}}
272 html_logo = {2.106, "textarea", rows=3, editor_modules = {"resizeable"}}
273 html_search = {2.107, "textarea", rows=3, editor_modules = {"resizeable"}}
274 html_page = {2.108, "textarea", rows=3, editor_modules = {"resizeable"}}
275 html_content = {2.108, "textarea", rows=3, editor_modules = {"resizeable"}}
276 html_sidebar = {2.109, "textarea", rows=3, editor_modules = {"resizeable"}}
277 html_footer = {2.110, "textarea", rows=3, editor_modules = {"resizeable"}}
278 xssfilter_allowed_tags = {2.111, "textarea", rows=3, editor_modules = {"resizeable"}}
279 html_section_end = {2.112, "div_end"}
281 http_section = {2.201, "div_start", id="http_section", state="open"}
282 http_cache_control = {2.202, "textarea", rows=3, editor_modules = {"resizeable"}}
283 http_expires = {2.203, "textarea", rows=3, editor_modules = {"resizeable"}}
284 http_section_end = {2.209, "div_end"}
286 guru_section = {2.30, "div_start", id="guru_section"}
287 templates = {2.31, "text_field"}
288 translations = {2.32, "text_field"}
289 fields = {2.33, "textarea", rows=3, editor_modules = {"resizeable", "validatelua"}}
290 edit_ui = {2.34, "textarea", rows=3, editor_modules = {"resizeable", "validatelua"}}
291 admin_edit_ui = {2.35, "textarea", rows=3, editor_modules = {"resizeable", "validatelua"}}
292 guru_section_end = {2.36, "div_end"}
294 --- info about the edit --------------------------------
295 edit_info_section = {3.00, "div_start", id="edit_info_section", open="true"}
296 minor = {3.1, "checkbox", value=false}
297 summary = {3.2, "textarea", rows=3, editor_modules = {"resizeable"}}
298 edit_info_section_end = {3.3, "div_end"}
300 child_defaults = [[--talk = [==[
301 --title = "Discussion of $id"
302 --prototype ="@Discussion"
303 --]==]
306 breadcrumb = ""
307 save_hook = ""