Forums / Developer / Movie credits

Movie credits

Author Message

Vathanan Kumarathurai

Tuesday 02 January 2007 3:27:45 am

I am developing a site where I have to store and display some movie information.

How do I handle the credits information for a movie?

A credit will consist of a role and a person, and the credits will be a list of these pairs, e.g.

<i><Role> <Person></i>
Director - Martin Scorsese
Casting - Ellen Lewis

My guess is that I need to develop a Credits datatype similar to Authors datatype. The difference will be that the Role and Person in Credits will be fetched from pre-defined lists (from database) and will not be stored as freetext but as a reference to elements in the pre-defined lists.

Is this the way to do it? Or am I on a wrong track? Have you any developed something similar that you are willing to share?

Any feedback will be appreciated.

/vathanan

"Ninety percent of everything is crap"
~Sturgeon's law

kracker (the)

Tuesday 02 January 2007 4:19:07 am

Neat idea! That should prove to be fun to implement.

//kracker

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

André R.

Tuesday 02 January 2007 4:41:56 am

Will this database of persons be inside eZp?
And is the roles fixed or different from movie to movie? (Is this going to be a dynamic representation of the whole credit list pr move?)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Vathanan Kumarathurai

Tuesday 02 January 2007 5:08:53 am

Hi André

All the information will be inside eZ.

The name of the roles are fixed but the number of roles for a movie differ from movie to movie. It is as you write the whole credit list I want to implement, eg. credit list for movies in imdb.com.

/vathanan

"Ninety percent of everything is crap"
~Sturgeon's law

Vathanan Kumarathurai

Tuesday 02 January 2007 5:29:49 am

HI André

I don't know if this helps to understand the problem better but if I were to develop this scenario in eZ<b>2</b> I will create the following database tables and columns (columns in <>):

eZMovie: <ID> <Name>
eZPerson: <ID> <Name>
eZRole: <ID> <Name>
eZMoviePersonRoleLink: <MovieID> <RoleID> <PersonID>

/vathanan

"Ninety percent of everything is crap"
~Sturgeon's law

André R.

Tuesday 02 January 2007 5:30:57 am

Ok, then you might be on the right track (to create a custom datatype for it)
If it was only director and a couple of other roles I would have suggested one object realtionlist pr role or something.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Vathanan Kumarathurai

Tuesday 02 January 2007 5:47:35 am

Hi André

Do you know of any datatype that I could look into for help to develop this?

I have browsed the Authors, Country, and Category datatypes. The Authors datatype stores the values as 'freetext'. I haven't yet figured out how the other two store the values.

/vathanan

ps. kracker> Fun .. yes ... but also a lot of work I guess. :)

"Ninety percent of everything is crap"
~Sturgeon's law

kracker (the)

Tuesday 02 January 2007 6:34:02 am

I never said it would be <b>easy</b> ...
there are many ways to implement different kinds of functionality. not all of them are quickly implemented.
stay fluid, creative and inventive ...
I don't see what the problem is ...

//kracker
<i>don*t b*tch</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

André R.

Tuesday 02 January 2007 6:45:44 am

I'm not the right person to ask for datatype stuff.
You can even implement it without creating a new datatype.
Create a folder structure like this

roles(folder)
|-director(folder)
| |- Joe (person)
| |- Martin (person)
|-actor
| |- Sandy
| |- Martin (second node placement)
|- art director

And then a object relation from movie to person, and where parent node name is role.
But you'll need to add a new node placement to existing persons all the time and I't wouldn't be that easy to maintain.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

eZ debug

Timing: Jan 18 2025 15:15:37
Script start
Timing: Jan 18 2025 15:15:37
Module start 'content'
Timing: Jan 18 2025 15:15:38
Module end 'content'
Timing: Jan 18 2025 15:15:39
Script end

Main resources:

Total runtime1.5185 sec
Peak memory usage4,096.0000 KB
Database Queries214

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 587.5391180.8516
Module start 'content' 0.00651.3604 768.3906671.4688
Module end 'content' 1.36690.1515 1,439.8594344.4609
Script end 1.5184  1,784.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2360210.0002
Check MTime0.00140.0907210.0001
Mysql Total
Database connection0.00070.043710.0007
Mysqli_queries1.412993.04742140.0066
Looping result0.00220.14262120.0000
Template Total1.488198.020.7441
Template load0.00230.148820.0011
Template processing1.485897.851520.7429
Template load and register function0.00020.011710.0002
states
state_id_array0.00170.115210.0017
state_identifier_array0.00230.150020.0011
Override
Cache load0.00200.1295710.0000
Sytem overhead
Fetch class attribute can translate value0.00120.080740.0003
Fetch class attribute name0.00110.0716120.0001
XML
Image XML parsing0.00380.248940.0009
class_abstraction
Instantiating content class attribute0.00000.0025180.0000
General
dbfile0.00420.2768420.0001
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 43
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs