A long time ago, i have a post about hacking into the CCK module so we could have more options when settings the number of values per field in the field setting page.
Drupal – Increase Views Relationship Delta Limit
This is a dirty approach as mentioned by eosrei.
So in Drupal 7, we can do it by creating a custom module and alter the field_ui_field_edit_form. Let’s implement the following hook_form_FORM_ID_alter() in a custom module.
Continue reading Drupal 7 – Increase the number of values per field
When we create content type, sometimes we may want to have a combo field which is one single field contains more than one value. This can be done by using the Field collection module.
1. Download and enable the Field collection module.
Continue reading Drupal 7 – Combo field for content type
Previous: Drupal – Limit the number of values of a content type field by role @ 1
Another way to limit the number of values of content type field is adding an extra validation on the node create/edit form. Assume we have a content type called center and a media field called field_center_video.
1. Create a custom module and add an extra validation. Continue reading Drupal – Limit the number of values of a content type field by role @ 2
We can create a CCK selection list or checkboxes field with a list of allowed values in key|value pair. normally when you retrieve a node content, what you get is only the key instead of the value.
Suppose we have a content type called Silly Question(silly_question) with a field called Option(field_option) which has the following allowed values. Continue reading Drupal – Get CCK Allowed Value Label
By default, the CCK date field was in the following format.
You can get the timestamp from the above the string by the the PHP the strtotime() function. Continue reading Drupal – Get Timestamp from CCK Date Field
The relationship delta in Views helps you to link a specific referenced node. but it only has 1 to 10 options. I want to increase the delta limit, so let’s hack the CCK module. Yes, the CCK module instead of the Views module. =P
Open cck/includes/views/handlers/content_handler_relationship.inc and modify the $max_delta as follow. Continue reading Drupal – Increase Views Relationship Delta Limit
The module which i want to talk about in this post adds the Autocomplete feature to the CCK Text/Number fields. Continue reading Drupal – Autocomplete CCK Text and Number Field
In the content type setting, add a new CCK field as follow.
Continue reading Drupal – CCK Checkbox
You can make some JQuery UI function with the help of the JQuery UI module. For example, the Date module of CCK allows the Date Popup feature which required JQuery UI. The current support version for JQuery UI is 1.6.
1. Let’s download the Date and JQuery UI modules and extract them into sites/all/modules. We also need to download JQuery UI 1.6 library to sites/all/modules/jquery_ui. Continue reading Drupal – Using JQuery UI
The Ubercart module is a complete E-Commerce suite which turn your Drupal website into an online store. It is a very big module which contains a lot of features. In this article, i will try to show you those basics but actually i am not intimate with it very well.
Before you start, it is recommended that Imagecache, CCK Image field and Views are installed. This allows our store product image showing to the customers.
1. Download and install the Ubercart – core features. Continue reading Drupal – Build an Online Store with Ubercart