Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How do you handle custom formatting (font-size, etc) of journal article
1339768, modificat fa 16 anys.
Liferay Legend
Apunts: 6441
Data d'incorporació: 23/09/08
Publicacions recents
We're operating a number of liferay installations for various customers and have mixed success in keeping the look and feel of journal articles consistent. The main reason is user/author/editor preferences for formatting their own articles and the "out of the box" available formatting options in the WYSIWYG editor.
As we're working with users and systems that are not (staffed with) full time editors, the editors are not too experienced with managing web content and (sometimes) like to format headings as "font-size: xx-large; font-weight: bold; color: #33333" instead of "<h1>". If they user almost proper formatting and think that <h1> is too large, they choose <h2> or <h3> as their top level heading. Also, paragraphs are often adjusted in size depending on the authors/editors personal screens, display settings and preferences.
Together with the default options of system-dependent font-sizes small, larger, xx-small this leads to desaster.
This is what we usually do:
I'm reluctant to take away all the formatting options from the editor, as problems like "pasted word content" or "h3 as top level heading format" would still remain.
I understand that the root problem is to educate the editors about proper semantic markup but I'm also interested in supporting technical means and configuration. I don't expect a silver bullet but would like to hear your experiences.
As we're working with users and systems that are not (staffed with) full time editors, the editors are not too experienced with managing web content and (sometimes) like to format headings as "font-size: xx-large; font-weight: bold; color: #33333" instead of "<h1>". If they user almost proper formatting and think that <h1> is too large, they choose <h2> or <h3> as their top level heading. Also, paragraphs are often adjusted in size depending on the authors/editors personal screens, display settings and preferences.
Together with the default options of system-dependent font-sizes small, larger, xx-small this leads to desaster.
This is what we usually do:
- With regard to LPS-3046 I'm changing the available font-sizes to a percentage-based list of choices instead of the display-dependent
- For certain content I offer structures/templates that take some formatting options away from the user - like positioning of images and formatting/placement of additional notes for the images. Due to the low volume of articles this is usually done after a number of common article forms is identifiable.
- With varying success I'm trying to teach users to not use the formatting options the editor offers
I'm reluctant to take away all the formatting options from the editor, as problems like "pasted word content" or "h3 as top level heading format" would still remain.
I understand that the root problem is to educate the editors about proper semantic markup but I'm also interested in supporting technical means and configuration. I don't expect a silver bullet but would like to hear your experiences.
1339768, modificat fa 16 anys.
Liferay Legend
Apunts: 6441
Data d'incorporació: 23/09/08
Publicacions recents
It's been a while since I posted this, but I'm still curious about other's experiences and procedures.
2401061, modificat fa 16 anys.
Liferay Legend
Apunts: 2034
Data d'incorporació: 05/03/09
Publicacions recents
I'm posting an improvement about limiting the formatting available from the control panel. We need this too! The default Web Content editor allows the changing of font colors, font faces, etc. Most of this is HIGHLY undesirable on a professional corporate web site.
1339768, modificat fa 16 anys.
Liferay Legend
Apunts: 6441
Data d'incorporació: 23/09/08
Publicacions recents
Great news, thanks for your feedback. May I ask where you intend to post? As a sidenote, if I'm not getting feedback about existing measures to sanitize HTML on this question I'm probably providing a hook to sanitize HTML to a whitelist soon.
2401061, modificat fa 16 anys.
Liferay Legend
Apunts: 2034
Data d'incorporació: 05/03/09
Publicacions recents
http://www.liferay.com:8080/web/guest/community/wiki/-/wiki/Main/Web+Content+Improvements
Please... feel free to add stuff.....
Please... feel free to add stuff.....
1339768, modificat fa 16 anys.
Liferay Legend
Apunts: 6441
Data d'incorporació: 23/09/08
Publicacions recents
Ok, thanks. I first understood that you're needing, implementing and posting a solution, it's an improvement suggestion ;-)
I'm currently thinking along some whitelist configuration in the article I linked. I'll probably not do interactive configuration in the control panel though.
I'm currently thinking along some whitelist configuration in the article I linked. I'll probably not do interactive configuration in the control panel though.
2401061, modificat fa 16 anys.
Liferay Legend
Apunts: 2034
Data d'incorporació: 05/03/09
Publicacions recents
WordPress actually has it. If you have "god rights" you can configure the tool bar in the editor for everyone else from the control panel. That said, WP is a PHP based application, but its widely deployed enough and has WordPressMU which can scale to thousands and thousands of blogs per instance so I have to believe that it's pretty robust.
2401061, modificat fa 16 anys.
Liferay Legend
Apunts: 2034
Data d'incorporació: 05/03/09
Publicacions recents
Community
Company
Feedback