Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI like include in customview.html 2

Status
Not open for further replies.

20050215

Programmer
Feb 15, 2005
4
AT
Hello Everyone,

I am absolutely new to LL and was surprised when ascertained the fact that it is not possible (for me at the moment ;o) to use simple SSI, ASP or PHP instructions in customview.html. In particular I tried to include a file containing piece of HTML code with the statement:

<!-- #include file="file.inc" -->

The problem to solve is: in case the common header of the customview.html files in a directory tree has to be altered, how to avoid manual editing all files concerned? In the "normal" HTML the above works without any problem. I tested Apache 2.0.52 and IIS 5. Same code run within customview.html does not show any output.
Please, can someone tell me what is necessary to do to make LL execute embedded SSI, ASP, JSP and/or PHP insrtructions? The web server LL is running on is IIS 5, OS WIN2K server, LL version is 9.2 SP1.

Thanks a million,
Nikolay
 
Unfortunately customview.html is just for doing simple client javascripting and HTML tags.No server side processing is allowed by design.If that was allowed
a livelink user could compromise security by embedding
direct calls(Oscript calls)in that file.The customview.html
is streamed line by line to your screen.You could ceartinly experiment by putting some stuff in your livelinksupport directory but I doubt it.But if you want to do certain appearance gimmicks you could do so by xmlexport and style sheets

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Well, if what you are saying is true this is really a big flaw of LL. The security exculpation is not satisfactorily enough, after all access to files and directories can be restricted to a priviledged group of users. Anyway, aparently I'll have to live with that although the fact that a simple change in the header used in, let's say, 1000 files leads to manual editing of those files is very hard to justify.
As I mention in my first mail I'm new to this application and do not know how to xmlexport in LL. On the other hand a colleague of mine just wrote a note that he has succeeded to include SSI instructions in customview.html in LL running on Apache web server. For reference fere is what he writes:

*************************************
Hi Nikolay,

I just got the SSI running in <customview.html> on my local installation of Livelink. The only catch is that I use Apache, which is very configurable. I suppose that the same can be accomplished in IIS, but you have to ask admin to do it for you.

What I have done is to configure Apache to use the INCLUDES output filter (which is what kicks in the mod_includes module) not on certain file extension --typically sthml or html-- but on certain MIME types --text/html to be precise, because this is what Livelink returns on its pages. You do this in Apache2 with the command

AddOutputFilterByType INCLUDES text/html

inside the <directory> directive that applies to the <livelink.exe> executable. It works very nicely. Now the same would need to be done on IIS, which I leave as an exercise for the reader ;-) I have also asked a question on a discussion group (livelinkteam@yahoogroups.com) to see if someone ventures details about the web server configuration. I'll let you know if anything comes out...

Regarding the SSI commands, I'd say it will be easier to operate with

<!--#include virtual="/absolute/web/path/to/your/file.html"-->

than with

<!--#include file="file.html"-->

because it is not nice to park your files with the Livelink CGI executables or to write complex paths to your files' locations.

HTH,

**************************************

Thanks for your reply, appnair!
Nikolay
 
This is not a "security flaw" as you suggest, the customview.html component as it stands does not include this functionality - although if enough users request it then it may be included.

You can however use the Customview to directly call an server side page such as an ASP/PHP/PL/ASPX etc using simple Javascript document.location changes or you can use IFRAMES to the same effect.

Other options to configure the look and feel of your Livelink install include the Appearance module - free with 9.5 - XML Skinks or CustomizationsRT (see
 
Thanks, I'll try to find a solution using java. Seems that this could work out.

Cheers
 
I am very grateful to ggriffit for the hint and C. for the practical solution - thank you so much!

Here is the piece of code that did the job (by courtecy of C.):

<iframe src =" align="middle"
frameborder="0"
height="100"
width="300"
marginheight="10"
marginwidth="10"
scrolling="no">
</iframe>

Of course the align, height etc. stuff is to be used according to the particular needs and please exchange the URL with something meaningful ;o)

Enjoy!
 
Very good answers.Shows people need to think differently form OT talk

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top