noelboss / Podcast

Podcast Extension for TYPO3 based on Extbase and Fluid
7 stars 6 forks source link

Additional table field for images in episodes #4

Open klodeckl opened 12 years ago

klodeckl commented 12 years ago

It would be great if there would be an option to integrate an image field (like in tt_news) for each episode. These image(s) can then be used for the poster image for a HTML 5 player or a list view of episodes.

newsdesigner commented 12 years ago

Perhaps we should constitute a basic question: Do we needed a second tt-news? I am a different opinion. We need an extension that extends tt_news by a podcast.

Why should Noel program an alternative to tt_news? The most podcasters use tt_news, news or T3BLOG in addition to the Podcast extension.

Image insertion, different views are components of tt_news, news or T3BLOG.

noelboss commented 12 years ago

Added this field with 0.3.6

klodeckl commented 12 years ago

Thanks, works. How about expanding the field, so more than one file could be added? And how about the fields imagecaption, imagealttext and imagetitletext? Should be there if there is an image field. The same like in tt_news. I would have made a screenshot but I can’t post it here.

Configuration/TCA/Episode.php:

$TCA['tx_podcast_domain_model_episode'] = array( 'ctrl' => $TCA['tx_podcast_domain_model_episode']['ctrl'], 'interface' => array( 'showRecordFieldList' => 'title,subtitle,description,file,publication_date,website,author,itunesblock,duration,mime,image,imagecaption,imagealttext,imagetitletext' ), 'types' => array( '1' => array('showitem' => '--div--;LLL:EXT:podcast/Resources/Private/Language/locallang_db.xml:tx_podcast_domain_model_episode,title;;1;;1-1-1,subtitle,description,file,image,imagecaption,imagealttext,imagetitletext;;2;;2, --div--;LLL:EXT:podcast/Resources/Private/Language/locallang_db.xml:tx_podcast_domain_model_episode.tab.meta,publication_date,website,author') ), … … 'image' => Array ( 'exclude' => 1, 'l10n_mode' => $l10n_mode_image, 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.images', 'config' => Array ( 'type' => 'group', 'internal_type' => 'file', 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], 'max_size' => '10000', 'uploadfolder' => 'uploads/pics', 'show_thumbs' => '1', 'size' => 3, 'autoSizeMax' => 15, 'maxitems' => '99', 'minitems' => '0' ) ), 'imagecaption' => Array ( 'exclude' => 1, 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.caption', 'l10n_mode' => $l10n_mode, 'config' => Array ( 'type' => 'text', 'cols' => '30', 'rows' => '3' ) ), 'imagealttext' => Array ( 'exclude' => 1, 'label' => 'LLL:EXT:tt_news/locallang_tca.xml:tt_news.imagealttext', 'l10n_mode' => $l10n_mode, 'config' => Array ( 'type' => 'text', 'cols' => '20', 'rows' => '3' ) ), 'imagetitletext' => Array ( 'exclude' => 1, 'label' => 'LLL:EXT:tt_news/locallang_tca.xml:tt_news.imagetitletext', 'l10n_mode' => $l10n_mode, 'config' => Array ( 'type' => 'text', 'cols' => '20', 'rows' => '3' ) ),

It would be even better, if it would be an own palette in the backend.

noelboss commented 11 years ago

Hey, since the image is used as the "poster" attribute of the html tag, there is no need for a title attribute. The image of the whole Podcast uses the title of the Podcast as title attribute. If you want to use the poster image as image in the html (if you modify the templates), you can also use the episode title as title attribute.

What do you think?

noelboss commented 11 years ago

I can think about adding the image for audio files too...

klodeckl commented 11 years ago

The title attribute could be used from the episode. But an alt text field would be necessary I think.

In the list view the output of the image tag makes sense.

newsdesigner commented 11 years ago

Individual episodes could be supplied with pictures. However, images are already included in the MP3-/MP4-files, otherwise they will not appear on devices. Images would slow down the loading of the podcast with many episodes.