Page 2 of 2

Posted: Mon 10. May 2004, 10:20
by frold
macangelo wrote:ok, I'm ready. Is there a (foolproof) howto telling me which files to replace and which not?

Thanks a lot

Macangelo
nope sry...

you have to make a fresh install I guess or you could use a program like http://www.winmerge.org

Posted: Mon 10. May 2004, 10:40
by macangelo
I remember reading something about a bigger update at the end of May. Wouldn't it be clever to wait?

have a great day!
Macangelo

Posted: Mon 10. May 2004, 10:49
by frold
macangelo wrote:I remember reading something about a bigger update at the end of May. Wouldn't it be clever to wait?

have a great day!
Macangelo
well it up to you...

Spaw Styles not displaying in browser

Posted: Mon 10. May 2004, 23:16
by jsw_nz
Frold,

I got the drop down list to display in spaw and the styles actually display within the editor quite nicely.

However when I display the final page in my browser the css definition is not present and therefore the styled text displays according to defaults. I changed this line, not sure if this was needed, in the spaw_control.config.php file

// add javascript inline or via separate file: changed
$spaw_inline_js = true;

Still no proper display of inline styles. So basically the source code for the final page is correct in the body:

<P class=spawstyle2>Content for&nbsp;Contact 1</P>

but the css style definition is not being exported to the page's header:

Any idea what I am doing wrong?

Cheers, jsw

Posted: Tue 11. May 2004, 05:19
by macangelo
Hi frold,

I just did the upgrade. Since I have another problem to solve first (for which I might start another thread in the troubleshooting section) I get back to this one later. But I will keep reading...

Have a great day

macangelo

Posted: Wed 12. May 2004, 00:22
by jsw_nz
Frold, pSouper, Dexxus, Macangelo..........

Have any of you experienced the same problems, namely that the style shows up successfully in the editor but does not export in the css definitions, not getting rendered in the browser. I am not sure if this is an issue of the style getting over-ridden, but to the best of my understanding of the source code of the final rendered page, the css style is not being explicitly defined. This is such a nice feature, I am wondering if it is something I am doing wrong on my end, or this is a more general reproducible problem.

Cheers, jsw

Posted: Wed 12. May 2004, 02:12
by DeXXus
Okay, this is a WAG, as I only have access to the phpWCMS source code right now, not an actual installation :roll:

I found a reference to possibly similar discussion:
http://sourceforge.net/forum/message.php?msg_id=2547809

So, accordingly, as an experiment, perhaps someone could try modifying "spaw_control.config.php" like this:

Change:

Code: Select all

$spaw_default_css_stylesheet = $spaw_dir.'wysiwyg.css';
To:

Code: Select all

$spaw_default_css_stylesheet = $phpwcms["root"].'phpwcms_template/inc_css/frontend.css';
or something similar??

Great

Posted: Wed 12. May 2004, 03:45
by jsw_nz
Good Call Dexxus!

You are absolutely right. so in order to use the styles in this workaround they need to be declared in the frontend.css.

I went ahead and copied and pasted the the defaults from the:

include\inc_ext\spaw\wysiwyg.css into the phpwcms_template\inc_css\frontend.css file

On first try it did not work. Went ahead and edited:

spaw\spaw_control.class.php and explicitly declared:

Code: Select all

$spaw_default_css_stylesheet = $phpwcms["root"].'phpwcms_template/inc_css/frontend.css';
on line 57 (right after the same global declaration)
seems to work for me, although there may be a more elegant solution.
The nice part about this is you can easilty edit the frontend but the changes will need to be made manually to the array in spaw_control.config.php

Code: Select all

$spaw_dropdown_data['style']['style1'] = 'Style 1'; 
$spaw_dropdown_data['style']['style2'] = 'Style 2';
//
$spaw_dropdown_data['style']['myNewStyle in frontend.css'] = 'myNewStyle';
At the end of the day, this works. Thanks!

jsw

Nice solution...

Posted: Tue 18. May 2004, 20:26
by Harpo
This is nice solution; thanks for working this out. I tried it and it was just what I needed.

But how does this go with the FCK editor??

See my post:
http://www.phpwcms.de/forum/viewtopic.php?t=2002

IMHO this is something for the FAQ.