开发者

Fb like share box in drupal website

I am making a drupal website and have a content type "quotation". The standard way of taking input in drupal is going to the create content in the menu which is not very user friendly considering your normal user.

I want to have an option to create content (i.e quotation) like in facebook, twitter or any other social networking site. A share box where someone can type in his status and can directly create content.开发者_开发问答

Also, I have two vocabularies associated with my content type and I want to accommodate them as well while using minimum space. So, how should I go about the problem.

Is there any module in Drupal which can help me in doing so or I have to write Jquery code myself.


two vocabularies associated with my content type and I want to accommodate them as well while using minimum space.

Lol, sounds tough. If you want to use minimal space you'll need to simplify the workflow, ie, remove a vocabulary or 2.

You can also do something like this:

$('#node-edit').focus(function (){
// set your node form vocab to display:none and then show them when user actually uses the form
    $('.vocab-wrappers').show();
// set your node form  buttons to display:none and then show them when user actually uses the form
    $('#node-form buttons').show();
});

To hide the vocabularies/buttons until the user is editing the content.

To get a facebook like effect, I suggest you use: http://drupal.org/project/formblock This should get you the form and the ability to place it anywhere.

You can use form alter to hide certain parts of the form, or a form alter module, there's various options if you look in drupal modules. http://drupal.org/project/nodeformcols

You also want http://drupal.org/project/auto_nodetitle to make the title optional, and hidden from the form.

Lastly, theme the node form in CSS/JS, making the texarea smaller and whatever other stuff you would like, recommend setting display:none on the field labels.

This should give you the correct idea for making a decent facebook-like form setup.


This should be possible: http://drupal.org/node/464906

I've never tried it myself though.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜