Home
The Toolkit for Online Communities
17205 Community Members, 0 members online, 1631 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : Context

Forum OpenACS Q&A: Context

Icon of envelope Request notifications

Collapse
Posted by Andrew Zeon on
For adp pages, you would put:

master>
property name="title">Calendars
property name="context">Calendar

What does the context mean?

Thanks.

By the way, how can I post html code with the message format as 
html? For the above I have just removed the first <.
Collapse
2: Response to Context (response to 1)
Posted by Peter Alberer on

Context could be a context_bar to be displayed by the master template or some info to help the master render a context bar.

To show html tags you can use the an "xmp" tag. look at the source code for this:

<p><b>Hi there</b></p>
Collapse
3: Response to Context (response to 1)
Posted by Vadim Makarov on
You can use &lt; and &gt; to render angle brackets < >

<xmp> tag blocks all HTML tags within it, which is not good if you want to apply some formatting or make a hyperlink in the displayed HTML source.

Collapse
4: Response to Context (response to 1)
Posted by Vadim Makarov on
...and to display &lt; without using <xmp> tag, you gotta have &amp;lt; in the source ;)

Here is a list of some &foo; codes (note that rendering of many signs and accented letters in this table depends on the encoding used, and on browser too; the table page itself doesn't set any encoding, so you can pick it in the browser and see how it changes).

Collapse
5: Response to Context (response to 1)
Posted by Andrei Popov on
It is enough to replace an opening angle bracket (`<') with &lt;.
Collapse
6: Response to Context (response to 1)
Posted by Andrew Piskorski on
Easier, use AOLserver's ns_quotehtml proc to escape your HTML text. Or for the OpenACS 3.x BBoard, also regsub out the backslashes with my silly little dtk_openacs_bboard_quotehtml proc.