Canviats headers, afegit rss
[my-sputnik-extensions.git] / sputnik / node_defaults / @BlogEntry.lua
blob0ee6819ce3277393034df424d2ba27356b7074d6
1 module(..., package.seeall)
3 NODE = {
4 content = "",
5 category = "prototypes",
6 actions= [[
7 edit = "wiki.edit"
8 show = "blog.show_blog_entry"
9 ]],
10 permissions = [[
11 deny(Anonymous, edit_and_save)
12 ]],
13 fields = [[
14 author = {1.1}
15 creation_time = {1.2}
16 tags = {1.3}
17 short_desc = {1.4}
18 ]],
19 edit_ui = [[
20 blog_section = {1.401, "div_start", id="comment_section", closed="true"}
21 short_desc = {1.402, "textarea", rows=15, no_label=false, editor_modules = {"resizeable"}}
22 content = {1.403, "textarea", rows=15, no_label=true, editor_modules = {"resizeable"}}
23 blog_section_end = {1.404, "div_end"}
24 ]],
25 save_hook = "blog.save_page"
28 NODE.html_head = [==[
29 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
30 <meta name="keywords" content="$html_meta_keywords"/>
31 <meta name="description" content="$html_meta_description"/>
32 <title>$site_title: $title</title>
33 <link type="text/css" rel="stylesheet" href="$css_base_url{}sputnik/style.css" media="all"/>
34 $do_css_links[[<link type="text/css" rel="stylesheet" href="$href" media="$media"/>
35 ]]$do_css_snippets[[
36 <style type="text/css" media="$media">$snippet</style>
38 <link rel="shortcut icon" href="$favicon_url"/>
39 <link rel="alternate" type="application/rss+xml" title="_(RECENT_EDITS_TO_NODE)" $node_rss_link/>
40 $if_no_index[[<meta name="ROBOTS" content="NOINDEX, NOFOLLOW"/>
41 ]]]==]
43 NODE.html_header = [===[
44 <div id="login" style="vertical-align: middle;">
45 <!--login and search (in the upper right corner) -->
46 $if_search[[$search]]<br/><br/>
47 </div>
49 <div id="menu_bar">
50 $menu<!--br/><br/-->
51 </div>
52 ]===]