When I first started with Drupal 7 I did not really know what this term meant so I just avoided that part of the setup. Of course as time went on, and I started to brave things like views, I started to want to group specific articles and pages so that I could list them using Views. Suddenly the relevance became clear. You need to tag / reference the article when you write it.
The standard installation of Drupal 7 comes with 'Article' as a content type and that has the ability to add tags, so basically one can tag an article and then list numerous articles by their tags using Views.
Taxonomy
So, firstly, you go to Structure / taxonomy where you are given the option to add a taxonomy term - either a new term or a subset of the existing terms - one of which is tag. To add a new tag, you simply 'add a term' under tags. Tags are useful for the standard 'Article' provided by Drupal 7 but are limited by the way you input them when adding them to the 'Article'
My preference is to use a reference specific to your site. Typically, I will use the shortened site name and add sub-references such as 'news' or 'issues' etc. These may also have many sub-levels if you want to add them, so when you make use of them, you can choose a level and everything below that also applies. For more detail :
Tagging an Article
If you want to tag an 'article' then you need to add terms under tags. One of the down sides of the standard 'article' content type is that it uses the 'type in a letter' system so if you don't know what you're looking for, it probably won't get tagged. Generally, I prefer to avoid making modifications to the standard content types and adding my own.
Adding a Content Type
This is a fairly straightforward procedure, and if you expect less computer literate people to be making use of your back end, its a very good way of limiting them to the features that you want them to see. Go to Structure / Content Types and add a content type. You can then decide for yourself what you want to use there -
You may or may not want the article to be promoted to the front page, or for the writer's name to be included there. Comment settings may be modified in advance as well as menu settings. This allows you to limit what the end user can do under permissions.
Adding a Reference Check Box to your Content Type
One of the big bonuses of adding your own content type is that you can add stuff to it without messing with the original 'Article' or 'Basic Page' content types. Effectively you can add a field for references which means that your end user just has to select a box to choose what type of article has been written.
Click on the 'Manage Fields' tag while editing your content type and add a new field. Give it a name (such as reference) and under 'field type' use 'term reference'. Under 'widget type' you can now decide if you want check boxes etc. Once you've chosen that, you will also be given the option of deciding what level of your reference tree you want to be made available to the user
For a full description with sexy screen shots go to http://www.drupalgardens.com/documentation/taxonomy/content .
Starting in January 2011, I decided to learn Drupal Innocently believing all the promises of operational modules after almost a year, I am only a little the wiser.... These are some notes
Showing posts with label captcha drupal 7. Show all posts
Showing posts with label captcha drupal 7. Show all posts
Thursday, January 8, 2015
Wednesday, July 11, 2012
Forms
There are a couple of options when it comes to adding forms to Drupal 7. One is called Multiple forms which which is an API that allows you to put multiple forms into one.
Another is Webform which is a fairly sophisticated option. This one allows you to set up a form in such a way that the inputs are not all one below the other. I tried using this for one of my projects but found that the main problem with is was that you are not easily able to print out the form in such a way that it can be read. The module seems to offer only one font size which is too small for a user to complete and submit a paper copy. On the up side, it sends an e-mail to the person who filled in the form and to any other address you ask it to.
The problem was such that I eventually had to resort to a PDF type form which wasn't available in a Drupal module (worth looking at - its called PDF fill and you can set up PDF forms that users can complete and print on line - and of course a lot cheaper than the Adobe alternative!). Price is $19.99.
More recently on my Marlinspike Guest Lodge site, I made use of another module called qforms . This is a great module if you need to put something together quickly that you can use immediately. It offers the basic forms requirements and if you use qforms extra (which at the time I tried it still had a few problems), you can get a few more forms components.
The possible down side of qforms is that the forms are all stored online and you need to go online to see the responses. For the guest house site this is actually a good thing as you have a record of your responses easily available.
I recently had someone spamming the form and wanted to put captcha onto it. If you haven't met the captcha module - even though the current version for DR7 is still in Beta 2, my experience is that it works very well. A few points though:
Remember that if you are Admin and you have set the system not to ask you for Captcha input, you need to log out to test it.
If you want to use it with qforms, you need to add an extra option to captcha to allow you to do this. You need to go to the configuration page and choose captcha and then add the form ID at the bottom of the list. The easiest way is to look at the source of your form and take the ID (which has dashes - something like 'qforms-submit-form' and to use this with underscores 'qform_submit_form'. Its as easy as that. You can see it in action on the Marlinspike Guest Lodge Contact form where I've included a detailed contact form as well as a standard contact form (in case the visitor just has a simple enquiry.
Another is Webform which is a fairly sophisticated option. This one allows you to set up a form in such a way that the inputs are not all one below the other. I tried using this for one of my projects but found that the main problem with is was that you are not easily able to print out the form in such a way that it can be read. The module seems to offer only one font size which is too small for a user to complete and submit a paper copy. On the up side, it sends an e-mail to the person who filled in the form and to any other address you ask it to.
The problem was such that I eventually had to resort to a PDF type form which wasn't available in a Drupal module (worth looking at - its called PDF fill and you can set up PDF forms that users can complete and print on line - and of course a lot cheaper than the Adobe alternative!). Price is $19.99.
More recently on my Marlinspike Guest Lodge site, I made use of another module called qforms . This is a great module if you need to put something together quickly that you can use immediately. It offers the basic forms requirements and if you use qforms extra (which at the time I tried it still had a few problems), you can get a few more forms components.
The possible down side of qforms is that the forms are all stored online and you need to go online to see the responses. For the guest house site this is actually a good thing as you have a record of your responses easily available.
I recently had someone spamming the form and wanted to put captcha onto it. If you haven't met the captcha module - even though the current version for DR7 is still in Beta 2, my experience is that it works very well. A few points though:
Remember that if you are Admin and you have set the system not to ask you for Captcha input, you need to log out to test it.
If you want to use it with qforms, you need to add an extra option to captcha to allow you to do this. You need to go to the configuration page and choose captcha and then add the form ID at the bottom of the list. The easiest way is to look at the source of your form and take the ID (which has dashes - something like 'qforms-submit-form' and to use this with underscores 'qform_submit_form'. Its as easy as that. You can see it in action on the Marlinspike Guest Lodge Contact form where I've included a detailed contact form as well as a standard contact form (in case the visitor just has a simple enquiry.
Subscribe to:
Posts (Atom)