-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubar.xml.in
79 lines (70 loc) · 3.27 KB
/
ubar.xml.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE actionMappings SYSTEM "ubar.dtd">
<actionMappings>
<!-- when the request is "", find the action with the below name -->
<defaultAction name="Home" />
<!-- common results that do not change across actions -->
<globalResults>
<result name="ERROR">error</result>
<result name="JSON">json</result>
<result name="IMG">img</result>
</globalResults>
<!-- templates to render page within, add template=TEMPLATE_NAME to an action def to use -->
<templates>
<template name="default" path="templates.default">
<param name="section" value="" />
<param name="subSection" value="" />
</template>
<template name="portfolio" extends="default">
<param name="section" value="portfolio" />
</template>
</templates>
<!-- common sets of required permissions for an action, may appear more than once in an action def, additive -->
<permissionGroups>
<permissionGroup name="default">
<permission name="view" />
</permissionGroup>
<permissionGroup name="authorized">
<permission name="view" />
</permissionGroup>
<permissionGroup name="admin">
<permission name="view" />
<permission name="update" />
<permission name="delete" />
</permissionGroup>
</permissionGroups>
<!-- action definitions, must have a name to refer to by, dot separated path to class def -->
<!-- if no action class def, try to just do view -->
<!-- @type - type of action, may be "page", "json", "dispatcher"
"page" renderes a page in markup and requires a valid view def
"json" renders assembled data as json notation using a standard json serialization
"dispatcher" requires that you redirect to another action after completing the work if the given action
-->
<!-- @view - location of php file to render the view. this should have access to public methods of the action and base action -->
<actions>
<action name="Home" view="pages.home" template="default">
<permissionGroup name="default" />
<permissions>
<permission name="update" />
<permission name="delete" />
</permissions>
<results>
<result name="STATIC_CONTENT" type="url">http://www.skylist.net</result>
<result name="ERROR" type="action">Error</result>
<result name="ALT_VIEW">pages.misc.testPage</result>
<result name="JSON" type="json" />
</results>
</action>
<action name="Contact" view="pages.contact" template="default" titleKey="contact.title" />
<action name="Resume" view="pages.resume" template="default" />
<action name="Blog" path="Blog" view="pages.blog" template="default" />
<action name="Privacy" view="pages.privacy" template="default" />
<action name="Bio" view="pages.bio" template="default" />
<action name="Framework" view="pages.framework" template="default" />
<!-- portfolio -->
<action name="Portfolio" view="pages.portfolio" template="portfolio" titleKey="portfolio.title" />
<action name="FineArt" view="pages.portfolio.fineArt" template="portfolio" titleKey="fineArt.title" subSection="fineArt" />
<!-- TODO: do most complex action def possible to test things out -->
<action name="Test" path="Test" view="pages.test" template="test" title="Test Title Should Be Overriden" titleKey="test.title" />
</actions>
</actionMappings>