Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
slapos.core
Commits
819e3e4d
Commit
819e3e4d
authored
Mar 01, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web: Make top bar configurable from web site properties.
parent
8985fc74
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
100 additions
and
2 deletions
+100
-2
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewVifibHostingConfiguration.xml
...ifib_hosting/WebSection_viewVifibHostingConfiguration.xml
+1
-0
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewVifibHostingConfiguration/my_layout_top_bar_widget_reference.xml
...stingConfiguration/my_layout_top_bar_widget_reference.xml
+96
-0
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_jauks_widget_library/WebSite_viewTopBarWidget.zpt
...s/vifib_jauks_widget_library/WebSite_viewTopBarWidget.zpt
+3
-2
No files found.
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewVifibHostingConfiguration.xml
View file @
819e3e4d
...
...
@@ -85,6 +85,7 @@
<string>
my_layout_sale_order_notification_reference
</string>
<string>
my_layout_login_password_notification_reference
</string>
<string>
my_layout_opentrade_deliver_notification_reference
</string>
<string>
my_layout_top_bar_widget_reference
</string>
</list>
</value>
</item>
...
...
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_viewVifibHostingConfiguration/my_layout_top_bar_widget_reference.xml
0 → 100644
View file @
819e3e4d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_layout_top_bar_widget_reference
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_string_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewWebFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Subscription Contract Reference
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_jauks_widget_library/WebSite_viewTopBarWidget.zpt
View file @
819e3e4d
...
...
@@ -6,6 +6,7 @@
current_web_site python:request.get('current_web_site', here);
logout_form_id python:current_web_site.getLayoutProperty('layout_logout_form_id','WebSite_logout');
login_form_id python:current_web_site.getLayoutProperty('layout_login_form_id','login_form');
top_bar_widget_reference python:current_web_site.getLayoutProperty('layout_top_bar_widget_reference','slapos-Top.Bar.Widget.Links');
language_list current_web_site/Localizer/get_languages_map;
dummy python: language_list.sort(key=lambda x: x['selected'], reverse=True);
available_language_list current_web_site/getAvailableLanguageList;">
...
...
@@ -48,9 +49,9 @@
</div>
<div id="menu">
<tal:block tal:define="message python:here.getDocumentValue(
'slapos-Top.Bar.Widget.Links'
).asStrippedHTML()"
<tal:block tal:define="message python:here.getDocumentValue(
top_bar_widget_reference
).asStrippedHTML()"
tal:content="structure message"
tal:condition="python:here.getDocumentValue(
'slapos-Top.Bar.Widget.Links'
)">
tal:condition="python:here.getDocumentValue(
top_bar_widget_reference
)">
</tal:block>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment