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