Content Construction Kit (CCK)

Events happening in the community are now at Drupal community events on www.drupal.org.

For those who wish to discuss CCK development.

CCK field modules maintainers - D6 upgrade path must read!!!

Posted by yched on September 6, 2008 at 2:52pm

To all CCK field modules maintainers :
please read http://drupal.org/node/304813

(also posted on the development ML)

Read more

Fetching individual field values from rows in views in drupal 7

Posted by neelimamull on May 28, 2014 at 1:52pm

i want to fetch individual field values from rows result to display as per the theme requirement.
For eg: i have created a view that outputs three field values like name ,short description image .
when i output views i get the result as a combined result. i want to fetch individual field values .

Read more

Relaciones entre nodos

Posted by edorado on February 21, 2013 at 2:00pm

Saludos. Necesito ayuda en un problema a ver si alguien lo ha logrado. Quiero realizar el booking de un hotel y quiero que cuando el usuario que navega por la pagina principal del sitio vea un hotel que le interese y pinche en un botón reservar que tiene cada hotel vaya a un tipo de contenido para realizar la reserva en el cual el usuario puede escoger los tipos de habitación, la cantidad de noches y de personas entre otras cosas.

Read more
Categories: ,

Conditional Fields

Posted by edorado on February 5, 2013 at 7:00pm

Saludos Comunidad.

Read more
Categories:

Loading multiple user entities using a field API field value?

Posted by emptyvoid on November 7, 2012 at 9:55pm

Hello,

So I have been spending several days reading about the entity API and the field API both provide examples on how to define an entity/field, the structure and schema, and display handlers.

Next I reviewed user_load_multiple but to my dismay it only accepts parameters that are fields in the schema definition for user entities. I can't automatically reference fields attached via the field API.

Has anyone successfully loaded multiple users based on a value in an attached field?

Read more

メンバー勤務表を作りたい(カレンダー表示) 【再掲】

Posted by Shin-gdo_J on September 8, 2012 at 1:41am

お久しぶりです。
(注記)なぜかうまく表示されていない(Newもついていないし)のであらためてポストさせていただきました。

カレンダー(モジュール)絡みでいくつか質問があります。
ある団体のサイトを作っており、その中に「複数メンバーのプロフィールページと、それにリンクする勤務表」を作りたいと考えています。

具体的に、ある病院にドンピシャの例があります。
http://pediatrics-chiba-u.org/outpatient.html
ここにあるように、マンスリータイプのカレンダーのそれぞれの日付の担当者名をクリックすると、その担当者のプロフィールに飛ぶようにしたいわけです。
ここのサイトでは、プロフィールページは複数の人が1ページにまとまっていて、ページ内のアンカーリンクに飛ぶようになっていますが、今回、せっかく Drupal で作るのですから、プロフィールは「1名1ページ(ノード)」で作り、そこへのリンクが張られるようにしたいわけです。
サイト自体のメインの「プロフィール紹介ページ」は、その各自プロフィールノードを Views でまとめて、上の病院サイト同様に複数人の概要を1ページにまとめて表示しようと思っています。

ちなみに、ここと同様には担当者は各日あたり一人であり、それがカレンダー上でプルダウンメニューで選択できればベストです。

Read more

メンバー勤務表を作りたい(カレンダー表示)

Posted by Shin-gdo_J on September 4, 2012 at 6:28am

お久しぶりです。

カレンダー(モジュール)絡みでいくつか質問があります。
ある団体のサイトを作っており、その中に「複数メンバーのプロフィールページと、それにリンクする勤務表」を作りたいと考えています。

具体的に、ある病院にドンピシャの例があります。
http://pediatrics-chiba-u.org/outpatient.html
ここにあるように、マンスリータイプのカレンダーのそれぞれの日付の担当者名をクリックすると、その担当者のプロフィールに飛ぶようにしたいわけです。
ここのサイトでは、プロフィールページは複数の人が1ページにまとまっていて、ページ内のアンカーリンクに飛ぶようになっていますが、今回、せっかく Drupal で作るのですから、プロフィールは「1名1ページ(ノード)」で作り、そこへのリンクが張られるようにしたいわけです。
サイト自体のメインの「プロフィール紹介ページ」は、その各自プロフィールノードを Views でまとめて、上の病院サイト同様に複数人の概要を1ページにまとめて表示しようと思っています。

ちなみに、ここと同様には担当者は各日あたり一人であり、それがカレンダー上でプルダウンメニューで選択できればベストです。

Read more

Finding missing images on nodes in given time range

Posted by mikeytown2 on July 19, 2012 at 12:09am

We had an issue where our NFS drive ran out of space and nodes where being created with bad file data. This occurred on 2012年5月21日. We needed a way to find all nodes that have bad file data. Below is that solution.

Note that this script will add indexes for the fid to CCK tables. If not doing this, the big query never finished.

Hope someone finds this useful :)

<?php

$joins = array();
$selects = array();
$indexes = array();
foreach (content_types() as $node_type => $info) {
foreach ($info['fields'] as $field_name => $field) {
// Skip if not a filefield.

Read more

Matching Content Profile Node with Event Nodes

Posted by michielvub on May 14, 2012 at 8:43pm

I am using Content Profile Module and Event Module to make modules and user profile nodes.
I want to have a main page that automatically gives a custom view of events for each user.

When login in / Registering the User needs to fill in some fields and taxonomy terms in there Content Profile. Depending on these content profile fields the "Event Block" needs to show an amount of Events that are intresting to the user.

The filter should do the following thing:

1.Get all the Event Nodes that are still Open for registration.

Read more

write a simple field type for CCK

Posted by guozan on February 27, 2012 at 2:36am

Hi ,I'm new to drupal module development, and want to write a simple field type for CCK, just to give a list for user to select, and then store the value. Drupal Verison is 6.22
To make it simple, I only write some hooks that I think may needed in the module....Situation is that,
the row in the table is created in the database, the page is presented correctly, but the field is not able to store data in the database, when I click submit, the page comes to be blank.

Here's the code for zebra.module. Did I forget some thing, thanks.

<?php

function zebra_field_info() {

Read more

Creating a CCK field module

Posted by rpeters on December 11, 2011 at 11:38pm

I wanted to create CCK field module. I am supposing there would be special considerations for cck field modules than a regular stand alone module. Where would be a good place to point me to?

Read more

Video module 7.x-2.1-alpha2, what you should know?

Posted by hypertext200 on September 14, 2011 at 4:30am

Original post : http://heididev.com/video-module-7x-2x-what-you-should-know

I released video module 7.x-2.1-alpha2 version on 11th of Sep. This major version completely redesign the video module and its core, I'm the only one worked on this release and seems our co-maintainers (6.x) had no time to contribute code to the 7.x yet. I'm very very happy about the progress of downloading and using video module. It has over 10,500+ usage now.

In this article I'm going to examine some new features added to the video module.

Read more

Real Estate Management Based on Drupal 6

Posted by level09 on August 17, 2011 at 9:19pm

I have pushed a new Property Management System built with drupal to github.

https://github.com/level09/smsar

it is easy to use and has some nice features. there is a nice theme provided as well based on bludprint css framework.

demo can be found at :

http://www.smsar.me

I have developed this long time ago, but I was using it commercially (selling it). didn't have time to create an installation profile, but it should be fairly easy to install and use.

Read more

Couple 2 fields together

Posted by cwittusen on August 4, 2011 at 9:46pm

I have a content type that is using node reference fields to pull in values from other content types; this final content type is to build a summary view of 2 other content types. My problem is that I want to pull in 7 values from one content type, tie those values to day's of the week. As shown in the example below

  1. Select 7 restaurants
  2. Select Day of the week that applies to each on of these restaurants, as in Monday belongs to McDonals, Tuesday belongs to Starbucks

Can anyone suggest how this can be done?

Read more

TIPS for managing high-volume CCK fields site (wiki style)?

Posted by greta_drupal on July 31, 2011 at 10:46pm

Greetings.

I am building a wiki site, which will have many CCK fields. I'm already feeling exhausted at the prospect of paging through a mile-long list of CCK fields when constructing views, for example. As this is a membership-only site, even the user profile has some 30 fields.

My plan is to create a unique content type for each category/topic (15+). Each content type will contain several common fields, so I've planned for that reuse of fields. Several fields will be conditional fields, some "other" combo fields.

Read more
2 comments Categories: ,

How to create a cck text field with php default value

Posted by paispita on July 22, 2011 at 12:43pm

Hello everybody.
I've been searching for quite a while now and still wasn't able to find an answer yet.

I'm using Drupal 7.4 and I created a new content type. There i want to add a simple text field that has a Default value where I can add PHP. Normally, the Default value shows only plain text.

To be more specific:
For the users I defined a field_city that they must complete when they sign up.
So for example i would have a user "john" from "Bucharest".

Read more

Adding to one view a variable filter (a result from another view )

Posted by awm on July 6, 2011 at 9:46pm

Here is what I need to do:
1.Check the Creation DATE of the most recent node (article)
2. Create a view that lists all the nodes such that node.created = Creation DATE.

In other words, I want to be able to pass a variable date to the filtering criteria. I know I could construct it from scratch using 2 db_query calls but I am looking for a more intuitive way that does not require a lot of customization.
I have been trying to use hook_view_query_alter and add_where() but with not much success because I do not want to create a module just to do this.

Read more
1 comment Categories:

D7 - Converting Title field in a cutom content type to a select List

Posted by awm on June 16, 2011 at 12:48am

Hello everyone,

I had a requirement to create a custom content type in D7 where the user can choose the title from a predefined select list.
I did create the content type but to my surprise the title field is not editable and no widget can be selected. However, I attempted to modify the title field by creating a module. I was successful to convert the title field to a select list with predefined options/values and it works fine when adding a new node. But when I try to edit an existing node, the previously selected title does not load but rather the default/empty option.

Read more

Invoking CCK widgets in a custom module?

Posted by NovaLove on May 27, 2011 at 4:15pm

I just joined today, and this is my first post, so apologies if I neglected to find a better place. (Tips are welcome and appreciated).

Read more

Copy values from a content to another content

Posted by segolas on May 13, 2011 at 9:56am

Hi,

I had created a "receipe" content with many "ingredients" field. I also have a "shoppinglist" content with a list of "ingredients" (same field of the receipe).

I need that when the user is viewing a receipe node (not editing) he could add one ingredient to his shopping list. I have already developed a module wich reads the content of the user' shopping list and displays it in a block.

I'm thinking of "templating" the ingredient fields (http://drupal.org/node/206980) with a (jquery) form which sends the form to /node//add.

Read more
Categories: , , ,
Categories:
Subscribe with RSS Syndicate content

Content Construction Kit (CCK)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /