开发者

How do I put a custom version of node/add form in a view using customfield in drupal 6?

开发者 https://www.devze.com 2023-01-01 16:34 出处:网络
I\'m trying to add a pre-filled \'add reply\' form to a view of nodes. Reply is a content-type (reply) with certain fields that need to be prefilled based on what is in the view. This way a user can s

I'm trying to add a pre-filled 'add reply' form to a view of nodes. Reply is a content-type (reply) with certain fields that need to be prefilled based on what is in the view. This way a user can see only the selected fields from the node/add/reply.

At the moment I'm building the forms manually - copy the form from node/add, do some modifications using php & views customfield, but I would like to be able to just push default values to some fields and hide some others and then make drupal render it with all the javascript glory like date开发者_StackOverflow社区 select etc.

Can this be done?


How about using Form Block to place the node add form on a page in a block below a view.

About conditional defaults... I guess javascript.

0

精彩评论

暂无评论...
验证码 换一张
取 消