Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
alecs_myu
erp5
Commits
8247a191
Commit
8247a191
authored
Oct 15, 2018
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: get web site theme for web page inside it
parent
2c4f2f46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getTemplateProxyParameter.py
...erp5_corporate_identity/Base_getTemplateProxyParameter.py
+6
-0
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getTemplateProxyParameter.py
View file @
8247a191
...
@@ -326,6 +326,12 @@ if pass_parameter is not None and pass_source_data is not None:
...
@@ -326,6 +326,12 @@ if pass_parameter is not None and pass_source_data is not None:
# XXX custom?
# XXX custom?
if
pass_parameter
==
"theme"
:
if
pass_parameter
==
"theme"
:
theme
=
None
theme
=
None
tmp
=
context
#check if web page is inside web site or web section
while
portal_type
==
'Web Page'
:
tmp
=
tmp
.
aq_parent
portal_type
=
tmp
.
getPortalType
()
if
portal_type
==
"Web Site"
or
portal_type
==
"Web Section"
:
if
portal_type
==
"Web Site"
or
portal_type
==
"Web Section"
:
pass_flag_site
=
True
pass_flag_site
=
True
product_candidate_list
=
callSelf
(
"product"
,
pass_source_data
,
pass_flag_site
)
product_candidate_list
=
callSelf
(
"product"
,
pass_source_data
,
pass_flag_site
)
...
...
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