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)
Creating Custom Menu Items
jcopple
I am trying to add a Custom Menu Item into iw.cfg.
We current have custom items in the following formats:
custom_menu_item_newjob="File", "Test", "test.cgi", "all", "scrollbars=yes,resizable=yes,width=640,height=545"
and
custom_menu_item_userguide="View", "User Guide", "file:/iw/User_Guide.doc", "all", "scrollbars=yes,resizable=yes,width=640,height=545"
We are now trying to add another custom menu item that calls an ASP report page from within a branch in TeamSite.
Is this possible? or would we have to write a CGI script to call the ASP page and include the CGI script in the custom menu item.
Thanks,
Jayne
Find more posts tagged with
Comments
phbillard
Hi
I guess it is possible as long as the web server you will be calling can handle ASP (internal Teamsite Apache, or your proxy web server)
The syntax would be
custom_menu_item_report="View", "Report","
http://server
ort/yourpath/thepage.asp","all","scrollbars=yes,resizable=yes,width=640,height=545"
carnix
I haven't had any luck with calling ASP files directly as a custom menu item. My idea was to do make a callout for database management, which I find considerably easier to program in ASP (vbscript) than in Perl DBI. I put the ASP script on a different website, I tried putting it in httpd/iw-bin... nothing. (The ASP file was a generic hello world script for testing... so that wasn't the problem).
I also tried copying and pasting the .cgi wrapper as was needed in older versions for .ipl files, but no luck there either.
I didn't really feel like writing a CGI wrapper for the ASP page... seemed like more trouble than it was worth, but then, I didn't really look what that would take.
If you have any luck, I would LOVE to hear how you managed it, it would help me out a great deal as well:
e-mail at:
webmaster@care.org
Thanks
-mike
Michael Langford, Webmaster - CARE USA
151 Ellis Street, Atlanta, GA, 30303
http://www.care.org/
jcopple
I've tried adding in a custom menu item in the syntax suggested but whenever I select the menu item I get a TeamSite Wrapper error message of "Error: Error trying to open a pipe to E:\iw-home\httpd\iw-bin\http: [1]."
I can see that it is trying to find the http address I've supplied in the default location (E:\iw-home\httpd\iw-bin) but I can't seem to get it to work.
Migrateduser
What version of TeamSite are you running?
lissa
jcopple
We're using TeamSite 5.5.2
nipper
>I can see that it is trying to find the http address I've supplied in the default location (E:\iw-home\httpd\iw-bin) but I can't seem to get it to work.
Can you create a file in
E:/iw-home\httpd\iw-bin that redirects to your script ?
Will need to play with passing env variables and the second app will not run as the user but as iwui, there are
some posts how to get around that.
HTH
Andy
jcopple
To get around the problem I was having, I have created a file that redirects to my script and passes the workarea name to it.
I couldn't directly reference the file I wanted to, as it was dependant on the branch that the user was on.
Thanks to eveyone for their help.