Wiki source code of Global Layouts

Last modified by Normann P. Nielsen on 2012/12/30 18:18

Show last authors
1 Atlassian Description:// "Defines the appearance of the dashboard and a user's profile."//
2
3 Found In: Confluence Administration -> Look And Feel -> Layouts -> Main/Space/Blogpost ... Layout
4
5 This is where You define the look of Pages, Spaces, Blog Posts etc for all objects in the Confluence Site.
6
7 Please also notice these can be changed per space (**not recommended) -** refer to [[Layouts for a space>>Main.atlassian.atlassian-confluence.styling-confluence.layouts-for-a-space]]
8
9 Notice, the editing is directly and there is currently no versioning, so be carefull :)
10
11 As this is not via the RTE, scipting (like in [[Macro(s)>>Main.atlassian.atlassian-confluence.styling-confluence.macro-s]] ) are used, and rendering a Macro is like:
12
13 $helper.renderConfluenceMacro("{jiraissues|max=100|page=10}")
14
15 Hence Macro and Wiki Markup in a mix..
16
17 **Main Layout**
18
19 Here I put stuff like the slimbox and facebook stuff, but these could also be placed in the [[Custom HTML>>Main.atlassian.atlassian-confluence.styling-confluence.custom-html]]
20
21
22 {{code}}
23 ##Lightbox inclusion
24 <script type="text/javascript" src="/slimbox/js/slimbox2.js"></script>
25 <link rel="stylesheet" href="/slimbox/css/slimbox2.css" type="text/css" media="screen" />
26
27 ##Facebook Stuff
28 ## http://developers.facebook.com/docs/reference/plugins/like/
29 <meta property="og:title" content="$title" />
30 <meta property="og:type" content="blog" />
31 <meta property="og:site_name" content="Mos-Eisleys Hjemmeside" />
32 <meta property="og:description" content="" />
33 <meta property="og:image" content="http://www.mos-eisley.dk/download/attachments/4161541/npn.jpg" />
34 {{/code}}
35
36 **Page- and Blog Post Layout**
37
38 This is where I include the Footer and Related Content [[Macro(s)>>Main.atlassian.atlassian-confluence.styling-confluence.macro-s]] - ensuring they are shown on all pages:
39
40
41 {{code}}
42 $helper.renderConfluenceMacro("{related-content}")
43 $helper.renderConfluenceMacro("{me-footer}")
44 {{/code}}
45
46
47
48 {{include reference="Main.atlassian.atlassian-confluence.styling-confluence.global-layouts.scopes.WebHome"/}}