Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xowiki
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
xowiki
Commits
bf129e54
Commit
bf129e54
authored
Apr 14, 2015
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- XoWiki Integration:
Added integration for companies and conf-items
parent
aa83cee8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
6 deletions
+56
-6
portlet.tcl
www/portlets/portlet.tcl
+12
-6
company-template.page
www/prototypes/company-template.page
+23
-0
conf-item-template.page
www/prototypes/conf-item-template.page
+21
-0
No files found.
www/portlets/portlet.tcl
View file @
bf129e54
...
...
@@ -34,13 +34,19 @@ set last_url_piece [lindex $url_pieces end]
set
user_id
[
ad_get_user_id
]
# Convert the name of the page into project_id, user_id or ticket_id
if
{
!
[
info
exists project_id
]}
{
set project_id
[
db_string pid
"select project_id from im_projects where project_nr = :last_url_piece"
-default
""
]
}
if
{
!
[
info
exists project_id
]}
{
set project_id
[
db_string pid
"select project_id from im_projects where project_nr = :last_url_piece"
-default
""
]
}
if
{
""
==
$project
_id
}
{
set project_id
[
db_string pid
"select max(project_id) from im_projects where parent_id is null"
-default
""
]
}
# Convert the name of the page into company_id, user_id or ticket_id
if
{
!
[
info
exists company_id
]}
{
set company_id
[
db_string pid
"select company_id from im_companies where company_path = :last_url_piece"
-default
""
]
}
if
{
""
==
$company
_id
}
{
set company_id
[
db_string pid
"select max(company_id) from im_companies"
-default
""
]
}
# Convert the name of the page into conf_item_id, user_id or ticket_id
if
{
!
[
info
exists conf_item_id
]}
{
set conf_item_id
[
db_string pid
"select conf_item_id from im_conf_items where conf_item_nr = :last_url_piece"
-default
""
]
}
if
{
""
==
$conf
_item_id
}
{
set conf_item_id
[
db_string pid
"select max(conf_item_id) from im_conf_items"
-default
""
]
}
if
{
""
==
$project
_id
}
{
set project_id
[
db_string pid
"select max(project_id) from im_projects where parent_id is null"
-default
""
]
}
# -------------------------------------------------------------
...
...
www/prototypes/company-template.page
0 → 100644
View file @
bf129e54
::xowiki::Page new -title "company-template" -text {
<p>This is some text at the very top of the page.</p>
>>right-col<<
<p>This is the beginning of the right column.</p>
<p>
{{adp portlets/portlet {portlet "Company Employees"}}} <br />
{{adp portlets/portlet {portlet "Company Contacts"}}} <br />
{{adp portlets/portlet {portlet "Company Offices"}}} <br />
</p>
<p>This is the end of the right column.</p>
>><<
<p>
<p>This is the beginning of the main or left column.</p>
{{adp portlets/portlet {portlet "Company Information"}}} <br />
{{adp portlets/portlet {portlet "Company Projects"}}} <br />
{{adp portlets/portlet {portlet "Company Notes"}}} <br />
{{adp portlets/portlet {portlet "Company Survey Component"}}} <br />
</p>
<p>This is the end of the main or left column.</p>
}
www/prototypes/conf-item-template.page
0 → 100644
View file @
bf129e54
::xowiki::Page new -title "conf-item-template" -text {
<p>This is some text at the very top of the page.</p>
>>right-col<<
<p>This is the beginning of the right column.</p>
<p>
{{adp portlets/portlet {portlet "Conf Item Members"}}} <br />
{{adp portlets/portlet {portlet "Conf Item Related Objects"}}} <br />
</p>
<p>This is the end of the right column.</p>
>><<
<p>
<p>This is the beginning of the main or left column.</p>
{{adp portlets/portlet {portlet "Conf Item Base Data"}}} <br />
{{adp portlets/portlet {portlet "Conf Item CVS Logs"}}} <br />
{{adp portlets/portlet {portlet "Conf Item Filestorage"}}} <br />
</p>
<p>This is the end of the main or left column.</p>
}
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