look at the rendering code use by ofbiz to get an html output for the
WYSIWYG.
=========================
BJ Freeman
Strategic Power Office with Supplier Automation
<http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist
Chat Y! messenger: bjfr33man
BJ Freeman sent the following on 12/15/2010 7:54 PM:
though widgets and ftl give you the components to display, the CSS is
the final determination of the display.
you can have (skins) themes that they select from, that are copied to a
specfic themename for that user, then assigned to them. you could use
webtools code to import the data, into their db. this ofcourse is a
customization.
Going into widgets and ftl's as a WYSIWYG is a Great development tool
but I would not expect users to be able to create and or modify those,
especially if your using multi-tenent shared code.
Getting into the Entities is not something I would allow a user to do.
you could consider putting a class on each field which could be effected
by the CSS. the WYSIWYG would then modify the CSS files in the selected
theme as far as a component/field showing, and placement, as well as
font and type.
=========================
BJ Freeman
Strategic Power Office with Supplier Automation
<http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist
Chat Y! messenger: bjfr33man
David van der Staak sent the following on 12/15/2010 3:55 AM:
Hello,
I'm trying to create a functionality which would allow a store owner
to dynamically edit their website via a WYSIWYG like editor.
The editor itself is nearly complete, but I'm unsure how to save the
changes.
The thing I thought of first, is try to interpret the files myself,
present them in a way the user can edit them graphically, then store
the files again. However, to make the changes effective a run-install
seems to be needed or at the very least a restart, which is less then
desirable.
I know the installation of those files is done at some point, and I
was hoping to be able to trigger that again or perhaps call it only on
the files that have been edited.
Could someone perhaps give me a few pointers on where to look?
Specifically, i'm editing the .ftl and .xml files which are related to
the looks and feel of the ecommerce store.
If it's possible to let ofbiz give me an interpretation of the files
that'd even be better. I'll have to adjust my editor ofcourse, but
that's manageable.
Regards
David van der Staak