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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Boilerplate graphics

GarethOakes
16-Pearl

Boilerplate graphics

Hi all,

Just wondering what the best method is for placing boilerplate graphics
(eg. a standard logo stamped on all documents).

I'm using a gentext graphic insert in my stylesheet, no worries, but I
have hard-coded the path to the graphics file. This brings obvious
problems with it.

I tried placing the graphics file in my doctype folder and using a
relative path filename to reference the graphics file but that didn't
seem to work.

I know you can set the graphics search path using "set graphicspath" -
is this considered the best way to store and reference boilerplate
graphics? If so, is there a simple method (ACL or whatever) to grab the
active doctype/customisation path in order to add it to the "set
graphicspath" list? (I'd hate to have to hardcode the customisation path
a second time, having put it in APTCUSTOM already)

Ideally I would like the logo graphic file to be stored somewhere within
my customisation folder structure and simply reference the filename from
my gentext graphic placement.

Cheers,
Gareth
6 REPLIES 6

Hey, Gareth...

You should be able to just drop the files into the "graphics"
subdirectory of your custom folder, which gets automatically added to
the graphicspath setting. You can then reference the file just by
name, with no path information.

For the record, the "graphics" subdirectory can have subdirectories,
as well, all of which get added to the graphicspath, followed by the
"graphics" directory, itself. This way, you can organize your
graphics a bit without having to put extra effort into maintaining the
configuration.

-Brandon 🙂

If you are using FOSI, another thing you could do, instead of using a filename for the graphic, is to declare a graphic entity in your FOSI and use a SYSTEM path to the file name and location or use a PUBLIC name and make sure your catalog has the path information.
Then you can use a FOSI putgraph in the e-i-c(s) where you want the graphic.
The term "gentext graphic insert" does not sound familiar to me in terms of FOSI code, so if you are not using FOSI - I don't know anything about Styler or how to do this in XSL-FO.

Hi Ed,

Yeah, doing this one in Styler. I thought about defining an entity in
the Stylersheet XML file but I wasn't convinced that if I put an entity
in by hand that Arbortext wouldn't helpfully strip it out for me in
unforeseen situations in the future 🙂

Sounds like a good tip for FOSI though, thanks.

-Gareth

Benton, Ed L wrote:
> If you are using FOSI, another thing you could do, instead of using a filename for the graphic, is to declare a graphic entity in your FOSI and use a SYSTEM path to the file name and location or use a PUBLIC name and make sure your catalog has the path information.
> Then you can use a FOSI putgraph in the e-i-c(s) where you want the graphic.
> The term "gentext graphic insert" does not sound familiar to me in terms of FOSI code, so if you are not using FOSI - I don't know anything about Styler or how to do this in XSL-FO.
>

Hi Gareth--

Brandon's suggestion is sound. But if you'd rather keep your logos in
your doctype directories, a simple ACL command in your doctype.acl file
should set you up:

append_graphics_path(doc_type_dir())

Good luck!

--Clay

Nice one! Thanks Clay. I had (almost) forgotten about that
doc_type_dir() command.

Hope all is well up in MN.

Cheers,
-G

Clay Helberg wrote:
> Hi Gareth--
>
> Brandon's suggestion is sound. But if you'd rather keep your logos in
> your doctype directories, a simple ACL command in your doctype.acl file
> should set you up:
>
> append_graphics_path(doc_type_dir())
>
> Good luck!
>
> --Clay
>

Thanks all for the help.

For the record it appears I must have stuffed up something in my custom
folder. Once I recreated all the folders and restarted Arbortext,
everything worked like it should! Eg. the "graphics" folder within my
custom folder was automatically added to the "graphicspath" setting.

-Gareth

Clay Helberg wrote:
> Hi Gareth--
>
> Brandon's suggestion is sound. But if you'd rather keep your logos in
> your doctype directories, a simple ACL command in your doctype.acl file
> should set you up:
>
> append_graphics_path(doc_type_dir())
>
> Good luck!
>
> --Clay
>
Top Tags