I have a basic Drupal instance installed on my local server. One of the requirements I have is that users should be able to post comments on a node/article using static options given to them.
For e.g., if a user opens an article, in the comment section, rather then showing them free text option to comment, a set of fixed text strings is presented to them like, "Great Job", "This is a great post", "Bravo!", also a set of images like an image of a chocolate, image of flowers is shown. To leave a comment, user has to select either a string or an image for comments.
Is there any drupal module that provides this functionality, or any way I can do this (I have basic/beginner knowledge on how to create a module for Drupal).
Thanks in advance!
You can achieve this by deleting comment_body field from Comment fields tab of content type & adding new field of type List(Text) with options of fixed text. Check screenshot below:
Step 1:
Step 2:
Step 3:
Probably Rate module helps you.
This module provides flexible widgets for your node and comments. You have to create a Custom rate.
It has dependencies with Voting Api. If you have a basic level with Drupal I think you can do it. You only need to install this module and dependencies, and then create a Custom rate for some content type.
Related
I want to have a template when people from support group want to add bugs.
Here is an example (https://github.com/photonstorm/phaser/issues/new) in GitHub that I want to implement in Phabricator if possible.
Phabricator supports customizing forms, including the 'create task' form. There are a couple of ways to go about it and they are covered in the documentation.
The simplest way to customize forms is to provide default values in the URL for the links you provide, for example, say you link to the bug submission form from your documentation. You can supply the template text as part of the link itself. This can result in long ugly URLs but that can be masked by using a url shortening service.
I'll use Wikimedia's phabricator as an example of how this works. If you want to make a link to the create task form with your template text pre-filled, you construct a url like the following:
https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?description=[insert template text here]
The other way to do this, which doesn't require you to store the template text in the url, is to edit the form and specify a default value for the description field. Editing forms is covered in the phabricator upstream documentation so I won't go into that, instead I refer you to the documentation section under the heading creating new forms.
I am building a website using drupal which allows users to create projects and then invite other users to join their projects.
I have created a content type- "project" for the main task. I can successfully edit this content type and publish it, however, when I get to the screen pictured here: http://imgur.com/t49pl the "view" tab is always empty. Any ideas?
what tulvit said, however...
I would recommend creating a View to display this content anyway. anything generated by the node is always difficult to present as you want, so to solve this issue, just create a View to output the content.
I'm doing an intranet for a company that has multiple projects going on internally.
The idea is that each project has only 3 distintive things: its homepage, a small theme variation and its posts. Everything else is shared: every user can post into every section, it's just a way of visually dividing information.
Each project will have a path:
[...].com/projects/project1
[...].com/projects/project2
[...].com/projects/project3
My initial idea is the only 2 content types to have an extra (select type) field which is SECTION. Then, I make a .tpl for each homepage with the variations and calling the views that filter posts by this SECTION field.
This would would work but I'm missing 2 aspects: will I be able to use the section field value in the path auto module? Say I post a node with "corporate" as SECTION value. Will I be able to make it to [...].com/projects/corporate/post-title ?
Second issue is I don't know how to make [...].com/projects/corporate/post-title to load the theme for the "corporate" SECTION
Is my SECTION field approach right or is there a better solution? If anyone know an answer here or article somewhere that addresses this scenario please just point me to it.
Organic groups may be somewhat of an overkill but it could work http://drupal.org/project/og
I use i18n and I10n_client to translate English to Dutch in my web page, however some interface variables are not changing.
I searched 'Body' and tried to replace it with its Dutch word, but it doesn't take effect no matter what I do
http://imageshack.us/photo/my-images/831/searchbody1.png/
and
http://imageshack.us/photo/my-images/576/searchbody2.png
How can I change this type of built in interfaces? I can't change "Title" as well :(
you can download the translation file from
http://localize.drupal.org/
and import it in site_name/admin/build/translate/import
I hope it will help
Dutch is enough for me so I change the problematic labels to Dutch directly in the Edit content type form (go to Admin -> Content -> Content types, select edit for the one you want to change).
By setting a Title and Body label in the "Submission form settings" fieldset.
There is a bug report open for this, see http://drupal.org/node/1016006
I had the same problem with a german/chinese/english site. This is what helped for me
A very helpfull module is translation table. A perfect
table to do mass translation of
content types, cck taxonomy and menus
Goto /admin/build/translate/refresh
to recreate missing strings
How can I embed a node on the front page in Drupal 6. The node basically has the image upload field along with title and description. I want it to some how appear on the homepage alongwith a "views" which shows the uploaded images at the bottom.
What I want is to give the users an ability to create content which is right now available at .../node/photo/add. I want to somehow show this box which lets one create content i.e. upload photo with title and description on the homepage.
It's basically just an attempt at creating something like imageshack as an experiment.
I am pretty n00b when it comes to drupal so please be more descriptive.
Jukebox's solution works as a point-and-click method. If you want to do it with code, it's more like this:
create a glue module Handbook | Example Blog Post
turn it on in admin/build/modules
create a menu item using hook_menu() that will become the page
embed the node with node_view()
embed the view (blog post)
in admin/settings/site-information set your page to the
You can use the Node Blocks module to, well, turn your node into a block. This means that you can go to the /admin/build/block page and place your node in a particular region.
After installing the module, edit the Content Type of the node you want to turn into a block. Under Workflow Settings, Available As Block, choose Enable.
Now you can go to /admin/build/block and you can see some new blocks. Just choose the one you want and place it in the region of your choice. You can also configure that block's visibility settings from there as well.
If your planning on having a more complicated home page at any point in the future I'd highly recommend using Panels to do this. It will allow you to arrange your front page with views and nodes in a grid method.