The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniPlan General (http://forums.omnigroup.com/forumdisplay.php?f=37)
-   -   Changing the default templates? (http://forums.omnigroup.com/showthread.php?t=8655)

henry13 2008-07-14 03:14 AM

Changing the default templates?
 
Hello,
I need to tweak the default templates for the HTML export. It seems the only way is to create one from scratch. Are the ones the app currently uses available to use as starting points? I really don't want to code it all when all I need is to make the links to the calendar change from http:// to webcal://.

ETA: ok, i figured out how to get the starting point, now the links I need to change are in the tag: @ResourceCalendarLink@

How do I change this so the link goes to webcal:// instead of [url]http://?[/url]

Tom Bunch 2008-07-17 02:54 PM

Well Henry, I've been waiting quietly for someone smarter than me to come up with a good answer, but maybe there isn't one. Hopefully you found the "File -> Customize HTML Template..." menu item that will make a copy of the default template for you to work on (defaulting the save panel to a spot where the app will automatically find the new template).

But that doesn't solve your problem. The @ResourceCalendarLink@ tag is replaced by an anchor whose href is a relative URL and it's pretty much hard-coded. The only thing I could think of is that it might be possible to insert some javascript that does DOM traversal and patches up the link. Put an element id on the nearest container for the links as a shortcut to get you close, traverse its children to identify the anchors, and modify their attributes?

It all sounds frightfully simple (not!) but it's a bit beyond my javascript fu. Any volunteers?

-Tom


All times are GMT -8. The time now is 04:02 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.