Re: outputting articles in a certain format.

From: Date: Thu, 24 Oct 2002 14:16:16 +0000
Subject: Re: outputting articles in a certain format.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121271@lists.php.net to get a copy of this message
I tend to have the text as "raw" as possible... that way I can style the content, apply a layout to it, etc etc over and over again without effecting the content. To use a well used term, separate content from presentation. But, if you want bold, italics, paragraphs, headings, etc, then yes, some form of mark-up will need to be applied to the text by the writer. Commonly, this is done by allowing the writer to use a small sub-set of tags, like <P>, <B>, <A>, & <I>. Things like nl2br() also help minimise what the writer needs to know. You can't really avoid them needing to know SOMETHING about mark-up. The other option is a (usually) Java based GUI, which allows users to add text via a web page (as with any CMS), but additionally allows bold tags, pictures, and general formatting of the text to be done in a Microsoft Word-like interface. http://www.editize.com/ comes to mind, but there are heaps more I'm sure. Justin French on 24/10/02 10:03 PM, rolf vreijdenberger (rolfvreijdenberger@hotmail.com) wrote: > Hi, I have often seen articles on the internet with a certain layout. > THese seem to by dynamically generated from a database as there are > name/value pairs appended behind the url. > My question: > How can you control the layout? > The way I do it is by specifying tags in the database, that is an > impossibility for people that don't have html knowledge. > Yet I see layout with different text styles like bold, seperated in > paragraphs, and diverse pictures. (like this) > <B>hello</b> > normal text > <BR><BR> > <b>another header</b> etc > > I understand that it is possible to just link to properly formatted html > pages in the database, but I would like people without knowledge of html to > generate text based pages > > thanks in advance > -- > Rolf Vreijdenberger > De Pannekoek en De Kale > Maystraat 6 > 2593 VW Den Haag > T: 06-24245719 > E: rolf@depannekoekendekale.nl > W: www.depannekoekendekale.nl > >

« previous php.general (#121271) next »