[geeklog-devel] Static Pages Plugin and advanced editor
Samuel Leathers
sam at theleathers.net
Fri Apr 30 10:08:17 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm not sure if this is a bug, by design or something missing in my
configuration. When I create a new static page, it defaults to a Post
Mode of HTML formatted, rather than looking at the value of
advanced_editor in the gl_userprefs SQL table. A story on the other
hand, correctly looks at the gl_userprefs, and displays the FCK editor
by default for users that have it checked in their preferences.
I've been poking around in plugins/staticpages as well as
public_html/staticpages/index.php, trying to find where it's deciding
the selected value for Post Mode. When you edit a page that's already
been set to advanced editor, it pulls up the FCK editor by default, so
somewhere in the page it must be doing a query of the content of that
page in the database to determine what Post Mode to set. If I could find
that part of the code, it would be fairly easy to modify the query, if
it's a new page to look ato the gl_userprefs to get a default value.
Can someone give me some guidance that's worked with the staticpages
plugin before? I'm at a loss at this point.
Sam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJL2uRRAAoJEF7J+Z7XDXx/njoH/007PxCMA10fTmPifoI6tdYk
bjASRDu/TwpNXJVmlJQfxSygfWfeRcybf6sut/1myM75kjxZlHI8kPkEdUJ5N+b2
BEyOSSZKhwPpQH/0C4/c6uWEJhLew+oHBUx2eLEm7KY1NffTXyPdfAbNsAeaw/SE
0yBcN9SMqwFSDuEYEMRKbh1fAOMFeN6n4xj0efTt2ZxMep/dGg2oUjuYzNoEAOHa
ffDF4y+SIXWu62V5V0QrGzKapTrVhU08Cg067Xs5YqFb0WFcS3co0oFWEZ6emmir
IJU00Yq2GDmxdkAVbiBgH3KWgfCNwsF6nHOqg+PwDnVIpZF2ZFD6LyfenJicxtY=
=Iw2a
-----END PGP SIGNATURE-----
More information about the geeklog-devel
mailing list