You need to hook Plugins::filter('atom_get_collection_content_type',
$params['content_type']), which is called by the atom handler just
before getting the posts to show in the feed. You can use it to add
your custom content type to the content types shown in the feed.
Here's the code from the podcast plugin to add the podcast content
type to the atom feed:
public function filter_atom_get_collection_content_type
( $content_type )
{
$content_type = Utils::single_array( $content_type ); // if
$content_type is a string, convert it to an array
$content_type[] = Post::type( 'podcast' ); // add the custom content
type to the array of content types
return $content_type; // return the array to the atom handler
}
I hope this helps.
Rick
On Sep 13, 10:10 am, slogmen <
slog...@gmail.com> wrote:
> thanks @mikelietz, yes you helped me a little bit!
>
> My main problem is to Integrate the custom posts well in the atom
> feed. I didn't found anything in wiki and api. Can somebody help me?
>
> Regards,
> Thomas
>
> On Sep 1, 9:01 pm, mikelietz <
cod...@gmail.com> wrote:
>
> > This is the easiest question, but, to remove the silos, in
> > action_form_publish:
>
> > $form->remove($form->silos);
>
> > Not sure about the others. Why do you want to change the label for the
> > content-element?
>
> > There is $form->content_type->value which can be tested against
> > Post::type( 'whatever' )
>
> > Take a look at this (older rev) of the unfinished plugin_directory
> > plugin, especially around action_form_publish in 239 and
> > action_publish_post in 347 for using info fields.
>
> >
http://trac.habariproject.org/habari-extras/browser/plugins/plugin_di...