Images into Table Cells

4 posts by 2 authors in: Forums > CMS Builder
Last Post: March 12, 2009   (RSS)

Just bought the software - I only understand the very basics so far. Typically, I use Joomla, but wanted to give this tool a try.

I am trying to make this page editable for a client :
http://hotfitnessyoga.com/schedule.htm

Currently, I am working under yoga.sitehook.com/schedule.php before I transfer it over to his web address.

He would like to be able to edit the time, and be able to move the images around in the table as his class times change.

I have gotten it to where everything is editable in a WYSIWYG Single Record section type. However, it's not very attractive. The first column is stretched way out.

Worst of all, I can delete the image in a cell, but it won't let me cut and paste it to somewhere else. I can only drag the image from one cell to another - and then it makes the cell height stretch.

Is there a way to set it up to where he can edit the text and simply copy and paste the image?

Thanks in advance for any tips,
Ashley

Re: [Ashley1985] Images into Table Cells

By Dave - March 11, 2009

Hi Ashley, welcome to the CMS Builder forum! :)

There's a few ways to do it. Schedule grids like this are notoriously challenging for a variety of reasons. Even editing tables in a regular word processor can be difficult for many end users.

One way to do it is to have a single page editor with checkboxes for each time. If you want to let him change the time you could have textfields for Time A, Time B, etc. And then checkboxes for:
Monday Time A [ ]
Monday Time B [ ]
etc.

If you want to try the wysiwyg method some more here's some tricks with that. You can copy and paste an image by copying it (ctrl-c) and the clicking the "Paste from Word" button and pasting it in there. Not easy but possible.

You can also turn off that automatic "paste as text" feature by editing /cmsAdmin/lib/wysiwyg.php and commenting out these two lines (add the text in red):

//paste_use_dialog: true,
//paste_auto_cleanup_on_paste: true,

That will make it so you can copy and paste without the popup.

Hope that helps, let me know how it goes.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Images into Table Cells

Commenting out those two lines worked perfectly. Thank you so much!

As far as the single page editor with checkboxes, how does that work? Instead of the image, there would be a checkmark? Or is that customizable?

Is there a way for the backend user to put a checkmark, but for it to appear as the image on the website?

Thanks again for answering so quickly!