Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional table field for images in episodes #4

Open
klodeckl opened this issue May 10, 2012 · 7 comments
Open

Additional table field for images in episodes #4

klodeckl opened this issue May 10, 2012 · 7 comments
Assignees

Comments

@klodeckl
Copy link
Collaborator

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.

@ghost ghost assigned noelboss Jun 8, 2012
@newsdesigner
Copy link

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
Copy link
Owner

Added this field with 0.3.6

@klodeckl
Copy link
Collaborator Author

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
Copy link
Owner

noelboss commented Apr 1, 2013

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
Copy link
Owner

noelboss commented Apr 1, 2013

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

@klodeckl
Copy link
Collaborator Author

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.

@klodeckl klodeckl reopened this Apr 10, 2013
@newsdesigner
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants