Plugins: Filter to make a content type not appear in the blog?

0 views
Skip to first unread message

parag0n

unread,
Mar 11, 2010, 4:51:26 AM3/11/10
to habari-dev
For my URL Bouncer plugin, i've created a new URL content type.

Everything is working well, except when a URL is added, it shows up in
the main blog list. Is there a filter i can hook in to to stop it
being shown? I basically want it to be only accessible by direct
links.

-Bob

rick c

unread,
Mar 11, 2010, 7:04:08 AM3/11/10
to habari-dev
By default, custom content types don't show on multiple post pages.
You would have to actively create a filter in the plugin to make them
do so, such as is done on http://wiki.habariproject.org/en/Dev:Creating_a_Content_Type
. If you followed the wiki page as an example, remove the
filter_template_user_filters($filters) function and your URL content
type won't show up anymore.

Rick

On Mar 11, 4:51 am, parag0n <para...@ivixor.net> wrote:
> For my URL Bouncer plugin, i've created a new URL content type
>

Bob Clough

unread,
Mar 11, 2010, 7:29:43 AM3/11/10
to habar...@googlegroups.com
Thanks, I worked it out after sending the mail, but before it had been moderated!

First off i did a hack to make the content type filter to only entries, then i was looking at the other filters and had a minor epiphany!

I'll edit the custom content type wiki page to make it clearer thats what the filter is doing.

-Bob

--
To post to this group, send email to habar...@googlegroups.com
To unsubscribe from this group, send email to habari-dev-...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/habari-dev

Reply all
Reply to author
Forward
0 new messages