cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

FOSI : Changing graphic path automatically

Newbie

FOSI : Changing graphic path automatically

Hi,

Base on this example:



Is it possible in FOSI to modify the "fileref" attribute automatically?
The graphic path that needs to be use is located somewhere else, so I
need the stylesheet to modify the attribute value automatically for
different reason. Or, is there a better way to approach this?

Example:


Or


Best Regards,

Patrick Lemieux
InterDoc
Tags (2)
5 REPLIES 5
Highlighted

Re: FOSI : Changing graphic path automatically


Patrick,



I don't think the FOSI by itself can
do what you want. Especially if the paths vary from graphic to graphic.
You might be able to make it work with a combination of a <specval>
using the 'system-var' or 'system-func' values (see help 544). You
will have to be able to tell the variable or the function when to point
to the correct location. You will need some firm rules to determine
what path to use when.




Now if this is a case where all the
paths change from one to another, then the problem is a bit easier. Say
if one path is for the web and another is for PDF rendering or edit window.
Read the entire help topic above for ideas.




If you want the FOSI to just know when
to make the change, then no, won't be happening.



Lynn
Highlighted

RE: FOSI : Changing graphic path automatically

Do you have duplicate filenames in different paths, or different file
names in different paths?
If you have different filenames in different paths, you can just add the
second path to the APTGRPATH environmental variable by appending it to
the existing path with a semi-colon delimiting the two paths. Epic will
use the first matching file name that it finds. If one of the paths,
especially the first path, is inaccessible, it will probably slow down
Epic performance considerably, depending upon the size of the
directories. Scrolling past graphic references could be painfully slow.

From your example, it looks like you might have duplicate filenames in
different paths. If this is the case, then having two APTGRPATH
variable values won't work.

How does anyone know where "test.gif" is located? Is it site-dependent
or what?
Highlighted

RE: FOSI : Changing graphic path automatically

Generally speaking, I think it is a bad idea to have graphics scattered
all over the place, with some on a network location, some on the local machine,
some in a website, etc. You should try to consolidate the location of the
graphics to as few locations as possible, so you can use the APTGRPATH
environmental variable to find them, then all you need to do is call out
the graphic filename in the graphic attribute that references the
filename. No paths are necessary.



face=Tahoma size=2
Highlighted

RE: FOSI : Changing graphic path automatically

Ok, sorry, bad example. Let's take this one instead:

<graphic<br/>fileref="http://localhost:8080/getcontent?object=346543432523"/>

This is a URL to a graphic located in a content management system...

I need to add a parameter at the end of the "fileref" attribute to make
it look like this ( If possible, in FOSI 😞

<graphic<br/>fileref="http://localhost:8080/getcontent?object=346543432523&format=EPS
"/>

What do you suggest me?
Highlighted

RE: FOSI : Changing graphic path automatically

Patrick,
While you might be able to get this to work in FOSI, perhaps by
doing some sort of rewriting of the tag, I'd say a better bet would be
to look an ACL solution using either the entity_path callback or the
graphicpathhook.

Brandon Ibach
Lockheed Martin Space Systems
Cocoa Beach, FL
321-784-7432

Announcements