-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making Websites With October CMS - Part 34 - Backend Lists
- Loading branch information
Ivan Dorić
committed
Mar 25, 2017
1 parent
5a97ff1
commit fa9f7d4
Showing
4 changed files
with
97 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php if($record->poster){ ?> | ||
<img src="<?= $value->getThumb(80,80, 'crop') ?>"> | ||
<?php } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
columns: | ||
name: | ||
label: Name | ||
label: 'Movie name' | ||
type: text | ||
searchable: true | ||
sortable: true | ||
year: | ||
label: Year | ||
type: number | ||
sortable: true | ||
poster: | ||
label: Poster | ||
type: partial | ||
path: ~/plugins/watchlearn/movies/models/movie/_poster_column.htm | ||
genres: | ||
label: Genres | ||
type: text | ||
searchable: true | ||
select: genre_title | ||
relation: genres |