Can not select input type and/or input filters do not apply to custom content types
| Project: | Content Construction Kit (CCK) |
| Version: | 4.7.x-1.x-dev |
| Component: | General |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I do not know why but I cannot get my input filters nor can I select an input type for a custom created node. I have created a content type called help for help pages. My site has an input filter called "Rich-text" which is used for tinyMCE to render text and images accordingly. My input filter works for type 'page' but when I try to use it for type 'help' it will not work, it just outputs the html from the tinyMCE editor. It also won't let me select the input type when creating or editing a node of type 'help'.
I would really like this to work because I have content types based per role and want them to work and not have to try to restrict my site do to this. I need it because it also uses the path auto module to create paths like mywebsite.com/help/node-title/
Any help would greatly be appreciated.

#1
I'm seeing something that's likely similar/related. I'm using the insert_views module to let me display views from Views.module within nodes, and it's just displaying the string [view:viewname] rather than rendering out the view when used in CCK nodes. If I add the [view:viewname] to a "standard" node type (like blog) then it works fine. I've got the proper input format selected when editing the CCK node.
Any ideas would be really appreciated. We're about to go live with our department's new website, and need to make heavy use of this...
#2
So you have Text processing: set to Filtered text (user selects input format) for that field and it's still doing this? This is a Text field? I'm using fresh DRUPAL-4-7 CCK/Drupal and input formats seem to work for me.
#3
Yes. The user can specify input format (the field is set to "Filtered text (user selects input format)"), and the proper input format (which includes the filter) is selected, but the filter isn't rendered out - just displayed as raw text. HTML from TinyMCE is rendered properly though (of course).
#4
Yeah I have created the custom types. I have 2 different input types. One is filtered HTML and the other is called Rich-text which is setup for use of tinyMCE. I have set rich-text as the default input type, but admin has access to all types. But when I create a page, logged in as admin (UID=1) it will not let me select an input format. And even though I use tinyMCE on those pages to create the page(assuming rich-text filter is default) it just outputs the html and is not rendering on the type. But if I use the default page type everything works fine.
#5
thought i'de bump this thread..
i can select an input type for a CCK content type i've created just like any other. however when i submit/view the filter is not being used, HOWEVER i've placed a breakpoint in my filter with zend studio and i can see the hook_filter is being called with op of 'process' and 'prepare' and my code is returning the correct modified string but when i view the CCK node it does not seem to processed all the way to the top.
if i do a node/add/page and select my filter it works...
ideas?
#6
in my node-content.tpl.php file "$node->body;" has the value of the content as it has been rendered via the filters however it has some extra theming, but $field_body[0]["value"] contains the non-filtered value.
so looks like the issue is that in CCK, $field_[fieldname] does not get filtered?
#7
ignore all that.
make sure you use
print $field_body[0]['view'];
not
print $field_body[0]['value'];
#8
seems like this was addressed already.