For uPortal Version 4.0.4+
...
For additional information on database-persisted fragments see define fragments as database entities
- Take each <dlm:fragment> element in your dlm.xml file and surround it with a complete <fragment-definition> element (full example below).
- Paste these elements each in their own file with a .fragment-definition.xml extension
- Then use the command: > ant data-import -Ddir=<path.to.fragment-def.dir> to import your fragment definitions into the portal database.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8"?> <fragment-definition xmlns:dlm="http://org.jasig.portal.layout.dlm.config" script="classpath://org/jasig/portal/io/import-fragment-definition_v3-1.crn"> <dlm:fragment name="Academics" ownerID="academics-lo" precedence="350"> <dlm:audience evaluatorFactory="org.jasig.portal.layout.dlm.providers.GroupMembershipEvaluatorFactory"> <paren mode="OR"> <attribute mode="deepMemberOf" name="Students"/> </paren> </dlm:audience> </dlm:fragment> </fragment-definition> |
*NOTE: The format for <dlm:fragment> elements is identical to dlm.xml
...