using flash as logo in plone?
Has anyone used flash as their logo in plone? I have not been able to configure a template to display this. Does anyone have a working example of how this is done? any help would be greatly appreciated :) -jm
Hi, Am So, den 07.11.2004 schrieb John Menke um 6:55:
Has anyone used flash as their logo in plone? I have not been able to configure a template to display this. Does anyone have a working example of how this is done?
any help would be greatly appreciated :)
Well. Flash creates a HTML file where you can copy the essential parts. Make sure you use the correct URL where the .swf file is mentioned in the code and place the file there. Make sure the mime-type is correct (should be if you just upload). There is nothing special with flash or other embedding in Zope. If you dont really know how this all works... well maybe you just stick to images. Your users will probably appreciate it ;-) Regards Tino
i know how to write the tags for flash that's not the problem. It's the location of the flash file that is giving me problems i think. Can you use relative paths to .swf files from within Zope? In one example I looked at they had something like this src="/swf/logo.swf" - i added this file in my file system relative to the zope_home but i still cannot see it. Can anyone bring me up to speed on using file system objects in Zope? -jm -----Original Message----- From: Tino Wildenhain [mailto:tino@wildenhain.de] Sent: Sunday, November 07, 2004 5:58 AM To: John Menke Cc: zope Subject: Re: [Zope] using flash as logo in plone? Hi, Am So, den 07.11.2004 schrieb John Menke um 6:55:
Has anyone used flash as their logo in plone? I have not been able to configure a template to display this. Does anyone have a working example of how this is done?
any help would be greatly appreciated :)
Well. Flash creates a HTML file where you can copy the essential parts. Make sure you use the correct URL where the .swf file is mentioned in the code and place the file there. Make sure the mime-type is correct (should be if you just upload). There is nothing special with flash or other embedding in Zope. If you dont really know how this all works... well maybe you just stick to images. Your users will probably appreciate it ;-) Regards Tino
On Nov 7, 2004, at 5:54 AM, John Menke wrote:
i know how to write the tags for flash that's not the problem. It's the location of the flash file that is giving me problems i think.
Can you use relative paths to .swf files from within Zope?
Plone is going to resolve paths according to the skin search order.
In one example I looked at they had something like this src="/swf/logo.swf" - i added this file in my file system relative to the zope_home but i still cannot see it.
I just tested this with uploading the dot-swf file into /portal_skins/custom/ (you could also embed with an absolute URL.) Then I modified the /portal_skins/global_logo by pasting the embed code between these tags <h1 id="portal-logo" metal:define-macro="portal_logo"> </h1>
Can anyone bring me up to speed on using file system objects in Zope?
You can add filesystem directories by adding LocalFS objects in portal_skins and then adding those as layers in the properties tab of portal_skins. btw, you should direct your Plone questions on the Plone list. -- David
David, thanks for getting back to me
I just tested this with uploading the dot-swf file into /portal_skins/custom/ (you could also embed with an absolute URL.)
i selected add file and created a new file called portallogo it points to my flash file
Then I modified the /portal_skins/global_logo by pasting the embed code between these tags
i don't have a /portal_skins/global_logo in my portal_skins folder when viewed from the Zope management console
<h1 id="portal-logo" metal:define-macro="portal_logo"> </h1>
You can add filesystem directories by adding LocalFS objects in portal_skins and then adding those as layers in the properties tab of portal_skins.
I'm new so all the above still has me wondering what the actual URL value is going to be... In my flash tag there are 2 places for urls and in a file based system they point to same url src="http://mysite/myfolder/myswf.swf" I'm still unclear as to the exact syntax to use for the value in src... Thanks for answering I will post to Plone in the future. Site has been down off and on all weekend. -jm
Solution: 1. Create Folder and upload .swf into that folder ie sample path = /myfolder/logo where logo is the name of file object and myfolder is the name of the folder 2. edit the global_logo template and for the url portions of the Flash tag use this: <h1 ... <object ... <param name="movie" tal:attributes="VALUE context/myfolder/logo/absolute_url"/> ... </object> </h1> the absolute_url property is what finally did it :) thanks to all -jm
Hi, Am So, den 07.11.2004 schrieb John Menke um 22:16:
Solution:
1. Create Folder and upload .swf into that folder
ie sample path = /myfolder/logo
where logo is the name of file object and myfolder is the name of the folder
2. edit the global_logo template and for the url portions of the Flash tag use this:
<h1 ... <object ... <param name="movie" tal:attributes="VALUE context/myfolder/logo/absolute_url"/> ... </object> </h1>
the absolute_url property is what finally did it :)
Well, thats a bit overdone. <param name="movie" value="/path/to/myfolder/logo" /> would work as well (path is without the hostname what you see in the ZMI) This way you dont need to call the function in every page you show. Regards Tino
Am So, den 07.11.2004 schrieb John Menke um 14:54:
i know how to write the tags for flash that's not the problem. It's the location of the flash file that is giving me problems i think.
Can you use relative paths to .swf files from within Zope? In one example I looked at they had something like this src="/swf/logo.swf" - i added this file in my file system relative to the zope_home but i still cannot see it. Can anyone bring me up to speed on using file system objects in Zope?
Well, Zope by default (and purpose) does not access filesystem for URLs. Plone has a lot of filesystem based stuff but this does not work via direct access. Zope creates objects out of them at start. (simplified) Just create a Folder object in Zope and add a File object, then upload your SWF. Point the URL in the skin (for plone) to that URL and voila. It might be confusing if you change a file system based skin and point to an URL in the object tree. But then, plone is a product for zope, not zope :-) HTH Tino
participants (3)
-
David Siedband -
John Menke -
Tino Wildenhain