...
These files describe contexts, category profiles and userId definition. Here is the structure of this file (for more information, look at dtd esup-lecture.dtd):
element channelConfig in esup-lecture.xml:
| Bloc de code |
|---|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE channelConfig SYSTEM "lecture-config.dtd" >
<channelConfig>
<!-- contexts definition -->
<context> ... </context>
<context> ... </context>
...
<!-- category profile definition -->
<categoryProfile> ... </categoryProfile>
<categoryProfile> ... </categoryProfile>
...
</channelConfig>
|
element context:
| Bloc de code |
|---|
<context
name = "Démonstration Esup-Lecture"
id = "default">
<description>Context de démo</description>
<refCategoryProfile refId="demo1"/>
<refCategoryProfile refId="demo2"/>
...
</context>
|
You can use a specific context by configuring your portlet with a portlet preference. This portlet preference must have a name "context" and a value equals to the id you want for this portlet. If you don't define any context preference for your portlet then context with id "default" is used. With this mechanism you can define many channels with many contexts definitions in your portal environment with just one instance of the portlet.
...