noelboss / Podcast

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

Integrate Pagebrowser for episodes #3

Open klodeckl opened 12 years ago

klodeckl commented 12 years ago

I tried to implement a pagebrowser for the episodes, but get the following error message: Fatal error: Call to undefined method Tx_Extbase_Persistence_ObjectStorage::getQuery() in /srv/www/typo3/typo3_src-4.5.11/typo3/sysext/fluid/Classes/ViewHelpers/Widget/Controller/PaginateController.php on line 72

I tried this: <f:widget.paginate objects="{podcast.episodes}" as="paginatedEpisodes">
<f:for each="{paginatedEpisodes}" as="episode" reverse="false">
<f:cycle values="{1: 'odd' 2: 'even'}" as="zebraClass">
<f:render partial="episode" arguments="{episode: episode, zebraClass: zebraClass}" />
</f:cycle>
</f:for>
</f:widget.paginate>

Because Tx_Extbase_Persistence_ObjectStorage is used and not Tx_Extbase_Persistence_QueryResult?

I don’t want to have huge pages because of more than just a few episodes, otherwise it is useless in my opinion. See also: http://www.typo3.net/forum/beitraege/extbase_und_fluid/110155/beitrag/seite/#pid391210

newsdesigner commented 12 years ago

A page browser in list view would be very helpful. This solution also has drawbacks.

If the browser page can't be integrated, would help a list view and a view of each episode (Single/Episode View). I ask myself how the individual episodes can be linked. Maybe you have a solution?

Often, the podcasters still has a blog and want to link an entry with the episode. Another possibility is an entry/message in tt_news, which is linked to the episode. The third case is a external link to an episode in which a guest can be heard. The guest link to an episode from his website.

If we use a pagebrowser, the description for this episode is constantly changing the page, once we add new episodes. A link to the concret episode is not possible.

I would prefer a list view with a teaser text/lead. When a user clicks on a link, he would get the full text. It would be a workable solution for podcasting with many episodes.

klodeckl commented 12 years ago

I don’t think it’s a good idea to link it with tt_news. If you want to link to a special episode, you could use the extension linkhandler. In tt_news, you would have to do the same. And every single episode has one link to reach. I have done this now by using the browser extension, but I think, this should the podcast extension do if there are a lot of episodes.

noelboss commented 12 years ago

@klodeckl what did you do? Anything I can include? @newsdesigner It's a good idea to be able to link to certain episodes directly... Problem I have right now is that episodes are no entities right now with no repo...

klodeckl commented 12 years ago

@noelboss I just created a list view with pagebrowser and single view with html5 player using the extension browser (http://typo3-browser.de/). Nothing to directly include in the extension.

klodeckl commented 11 years ago

Are there any plans to implement this? I wanted to do so (see my first post) but till now I’m not so familiar to check it out…

noelboss commented 11 years ago

Hlleo kldeckl ;) At the moment no because the episodes are not of the correct kind to travers i think. If you have an idea how to implement I can do it when there is time :)

klodeckl commented 11 years ago

What do you mean with »travers«? The new news extension is also based on fluid and has a page browser. In my opinion a pagebrowser is necessary as well as a detail page for each episode if you have more than five episodes in a podcast. That’s why I still don’t use the frontend output of this extension.

newsdesigner commented 11 years ago

A very good idea. What do you think about a single view? It would allow to link individual episodes from Twitter & Co.

klodeckl commented 11 years ago

Yes, I mean a single view (detail page). And the page browser.