Hello,
Well, this has been brought up a few times before, but I think my case is a little different.
I developed node_article.module. Now, I need to make it work with our own magazine!
At Free Software Magazine, we use our own article format for a number of reasons (the main one being automatic composition). An example of an article is at the bottom of this message.
Now, here is what I need to do:
1) Create a new filter which transforms the XML below into HTML
2) Create a new input format which uses the above filter
3) Make this filter available ONLY for node_article nodes
4) Make this filter the ONLY option for node_article nodes
Why 3)? Well, because in the site I will also have blogs, and probably won't want people to input their blogs using the article format.
Why 4)? Because I definitely won't want authors to hand in articles in any other format
For what I see, the input format is set by role, rather than node type. Is this _always_ the case? If the answer is "yes", then I'll need to hack node_article so that it only accepts a specific input type. But this won't solve 3) (that is, a person who is a blogger AND an author will be able to hand in blogs using the article format).
Any ideas about this one?
Thanks a million!
-------
Example of an article:
<article>
<contents>
<p>This is the article's introduction. This paragraph will display as a blurb on the home page or wherever else the article will display. It's crucial to make this section interesting, so that your readers won't stop reading the article.</p>