Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
build error trying to override my tasks portlet
dcjung
Hi,
I'm a newbie to java and am trying to override the my tasks portlet by copying the original and removing the "New Job" link. I found the servlet "my_tasks_portlet_jsp.java" and commented out the code. Then I renamed the servlet and its class declaration to "tasks_portlet_jsp", registered it in the web.xml file, placed the servlet into \iw-home\local\config\lib\content_center\customer_src\src\com\corp\custom and tried to run make_toolkit.ipl. The script throws an error whenever it encounters a reference to a module from the package com.interwoven.ui.base.ui.widget which gets imported into the servlet with this line:
import com.interwoven.ui.base.ui.widget.*;
I suspect I may have the wrong path?? Thanks in advance.
Dan Jung
St Paul Travelers
Find more posts tagged with
Comments
Migrateduser
Dan,
In general, if all you want to do is remove a link from a ContentCenter page, you should use the iwov-delete tag in ui_custom.xml (see UI config guide for details), not modify the java code directly.
In the case of the "New Job" link in the tasks portlet, we haven't given you a way to iwov-delete it. We should look into doing that! In the meantime, one suggestion would be to replace the New Job link with a different link by overriding the link id in ui_custom.xml.
Hope that helps.
Michelle Neuringer
Interwoven Engineer
Migrateduser
see bug 53010.
Michelle Neuringer
Interwoven Engineer
dcjung
Michelle,
Thanks for the reply. The reason we're trying to delete the "New Job" link is because in CC Std, it does nothing. Our available_templates.cfg has a bunch of jobs with the branch list tag on them to restrict access to start jobs by branch. (E.g. <branch_list>
<branch value="/main/Intranet/ClaimPortal/TCCCRC" include="yes" />
</branch_list> )
If we remove this branch list from our jobs, then New Job will display a list of the jobs to start. But we want to lock down which jobs specific users can start which is how we've implemented it in TS 5.5.2. (They need to select their appropriate workarea before saying "New Job") My question: is there a way to detect the "workarea vpath" a logged in user is on? I believe in theory we can create a CS client object in Java that has this info? Any suggestions would be appreciated.
Thanks,
Dan
P.s. can't seem to find bug 53010 ...
Migrateduser
The actionlist in the Work-in-Progress portlet (containing "Import" and "Submit" links) knows the current workarea vpath--which means the workarea that is currently selected in the "Content" dropdown.
Could that be of use to you?
Michelle Neuringer
Interwoven Engineer
dcjung
Good point. I checked the source code and it indeed does have the workarea vpath. You mentioned "one suggestion would be to replace the New Job link with a different link by overriding the link id in ui_custom.xml", is there an example of this somewhere? Maybe write a page that "New Job" links to and with javascript (!) it parses the string to get the vpath, and append it to the new job URL CCI command. The final url would be
http://{servername}/
iw-cc/command/iw.ccstd.new_job?vpath=//{servername}/default/main/Internet/Bond/WORKAREA/Bond_WorkArea which I could then redirect the user to? Do you see any holes in this plan?
Thanks,
Dan
Migrateduser
First, I'd recommend looking at the UI Customization Guide and the customer_samples toolkit. There should be some examples of how to override and add links.
Second, one suggestion is to add a new link to the actionlist in the Work-in-Progress portlet through normal customization means.
Good luck!
Michelle Neuringer
Interwoven Engineer
Migrateduser
this bug has been fixed... you can expect it in a future service pack.
Michelle Neuringer
Interwoven Engineer
Drew_The_Goat
Hi Michelle,
We are facing the same issue with New Job link in CCS. Ideally, there should be a way to remove it as it does not work with available_templates.cfg- is that already filed as a bug?
In the meantime if the link must appear, we will have to redirect it to something else. What is the handle to the link ID in the ui_custom.xml? Is it
http://server/iw-cc/command/iw.ccstd.new_job?
What is the correct syntax to handle this link? Unfortunately, the customer example customizations do not contain this link, and I have been unable to find in in the ref_ files. Overall, it has been some effort figuring out how to access the various link IDs. There really needs to be some standard documentation on the UI customization- it should include ALL the CCS/CCP functions, their link IDs and locations, and should have a clear index to find them. So far the main way I have been learning about them is reading through all the various ref_*.xml files and experimenting.
I can go on about the lack of documentation for 6.1, and the hassles it is creating for us as customers, but this subject has been covered extensively in other posts.
Thanks,
Drew
Migrateduser
Drew,
We've given you the ability to remove the link in SP1. I recommend you install that patch!
Michelle Neuringer
Interwoven Engineer
Drew_The_Goat
Hi Michelle,
That's good news. We are currently in UAT testing for 6.1 without SP1 so we will look at installing that down the line.
Thanks,
Drew
lhdavis
Windows 2000, TS 6.1 SP1. We accomplished this by adding the following entry into ui_custom.xml and running make_toolkit.ipl.
<!-- CC Std: Remove "New Job" from Tasks component -->
<globals>
<iwov-delete>
<link id="_iw.ccstd.common.new_job.link"/>
</iwov-delete>
</globals>
Luke Davis
Open Technology Group, Inc.
luke.davis@med.va.gov