Nvu Site Manager Extender 0.2
By glazou on Monday 1 August 2005, 13:36 - Nvu - Permalink
A nice little extension for Nvu 1.0.
Nota bene: apparently, people want to be able to insert a flash object into the markup. Could someone jump on that and write an extension adding "Insert Flash" menu and toolbarbutton both opening a dialog to handle that?

Comments
Regarding extensions. I have the feeling that people like to know which features will be implemented in the next version before they write their own extension. This way we all can be sure we don't duplicate our effort.
It would be nice if you could publish (in the new post) what are your next plans - Nvu roadmap. At least for next few weeks or months.
I'm especially interested if it's worth for me to implement global search/replace, links validation/update in my Site Manager extender. Then if it has sense to create new Templates extension because I know you wrote you will implement DW like template functionality.
Un objet QuickTime peut être tout aussi utile dans une page web, qu'un objet Flash.
Aucun problème pour qui veut le faire directement dans le code (avec l'aide de Pageot) par exemple. Mais une extension qui prenne ça en charge en ravirait plus d'un.
Pour info, Pageot :
www.qtbridge.com/
À +
@Peter : compliments for your interesting extension !
You should submit it to this new site www.babelzilla.org/forum/...
to get many locale folders, because you work deserves to be spread
<< write an extension adding "Insert Flash" menu and toolbarbutton >>
I see a couple of problems with this (as I know only the basic way to embed flash in browser):
1. HTML does not support the <object> tag, and hence the page will not be HTML 4.01 strict.
2. Due to #1, Nvu might not like the code and try to "validate" it itself. Consequences: don't know! Could result in loss in that part of code, etc.
3. For transitional mode I had tried embedding flash file using the code recommended on macromedia.com TN 4150. Nvu shows a white space for the part of movie 400x550px.
4. XHTML supports object, however the problem still comes when I load the page in Nvu, i.e. blank page.
Help in this area would be highly appreciated.
PS: Nvutut was downloaded more than 500 times in July.
.... Tried to make flashplayer work in Nvu, couln't do it. If the flashplayer doesn't work in Nvu, adding an extension to embed the code is useless if one can't see the flash movie play in Normal mode (for experienced users I think even a dummy icon would be enough at that place).
<object> is part of HTML 4.01 : www.w3.org/TR/html401/str...
It's not surprising since XHTML 1.0 is HTML 4.01 rewriten in XML.
<embed> however doesn't exist, so the code recommended by macromedia is wrong according to specifications.
Thanks for the link. I went back the file and found out that I forgot to enclose the <object> element in a block. Reading the spec, its good information.
Now only if we could make the plugin work in Nvu...
I suffered a lot with this, so I would like to share and learn.
Here are my 2 cents (xhtml only):
<object data="my_flash.swf" type="application/x-shockwave-flash" height="xxx" width="yyy">
<param name="movie" value="my_flash.swf" />
</object>
This is valid, and enough for most UA.
Except IE. IE needs more to warn the user that (s)he needs flash install/upgrade.
I ended up using the "sacrificial lamb (tm)" method, wich consist of adding this into your home page:
<div style="display: none;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="download.macromedia.com/p...
It does its job for IE, any other UA will just ignore it (and if it's not enough, display none will do it).
Still, this is a (dirty) hack. I would gladly hear about anything better.
Regards,
- Olivier G
hum... My comment got mangled.
Is this a small bug in Dotclear?
I suspect the #fragment part to trigger it...
By advance, sorry about that kind of spam/live-test:
<ul><li><a href="server/#test">I should not end up in the url</a></li><li>Nor me...</li></ul>
Regards,
- Olivier G
Olivier, thanks for the tip. But I was still talking about flash and Nvu. Browser comes later. I was concerened if Nvu will retain the code as it doesn't if the code is not standardized. Sebastien pointed out that object element was there in HTML4.01 and also in XHTML. So now the concern is how to get a preview (in Normal and Preview modes) or an icon as a place holder for flash media in WYSIWYG mode.