Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

For uPortal Version 4.0.4+

...

For additional information on database-persisted fragments see define fragments as database entities

    1. Take each <dlm:fragment> element in your dlm.xml file and surround it with a complete <fragment-definition> element (full example below).  
    2. Paste these elements each in their own file with a .fragment-definition.xml extension
    3. Then use the command: > ant data-import -Ddir=<path.to.fragment-def.dir>  to import your fragment definitions into the portal database.

...

 

Code Block
languagehtml/xml
titleexample.fragment-definition.xml
<?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

...