Help for this page

Select Code to Download


  1. or download this
    ---- file 1 ----
    package ORI::Schema::Result::Repo;
    ...
      { "foreign.repo_id" => "self.id" },
    );
    __PACKAGE__->many_to_many("contents", "contentlinks", "content");
    
  2. or download this
    ---- file 2 ----
    package ORI::Schema::Result::Contenttype;
    ...
      { "foreign.content_id" => "self.id" },
    );
    __PACKAGE__->many_to_many("repos", "contentlinks", "repo");
    
  3. or download this
    ---- file 3 ----
    package ORI::Schema::Result::Contentlink;
    ...
      "repo" => "ORI::Schema::Result::Repo",
      { id => "repo_id" },
    );
    
  4. or download this
    ---- within controller ----
        # Get the first 10 results (getting all crashes the system! )
    ...
        <td>[% repo.fulltext %]</td>
        <td>[% repo.mandate %]</td>
    [% END -%]
    
  5. or download this
    ---- within controller ----
        # Get the first 10 results (getting all crashes the system! )
    ...
     [% # How to I get the list of content types? -%]
        </td>
    [% END -%]