
commbits
New User
May 10, 2006, 5:43 AM
Post #2 of 23
(24548 views)
Shortcut
|
|
Re: [ross] Uploading Images Through the WYSIWYG Editor
[In reply to]
|
Can't Post
|
|
Great tutorial and a neat solution! You mention that "...you must have an image_select publishing tag as the last field on all of your pages." In fact, this is not necessary. In "...tiny_mce/plugins/advimage/image.htm", line 65, the onClick says: onClick="PopUpWindow('http://www.yoursite.com/cgi-bin/pp/pp.cgi?add_file_select=1&thispagenum=1&fieldnum=300&allowupload=1&display_upload=1&display_url=1&WYSIWYG=1', '440','240')" The critical part is thispagenum=1. We only need one image_select publishing tag on page number 1. Page numbers are shown in "...cgi-bin/pp/data/page.dat". In fact, one could create a "phantom" page with just the image_select tag, add it in Page Publisher, get its number, and write this number in the thispagenum= field above. One step further would be to train users to use this phantom page, which then becomes an "Image management" page simply to maintain their image repository. The main reason is the image delete function, which is not available in the advimage hack from Ross.
|