Content Construction Kit (CCK)

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.

For those who wish to discuss CCK development.

yched's picture

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

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

(also posted on the development ML)

Read more
neelimamull's picture

Fetching individual field values from rows in views in drupal 7

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
edorado's picture

Relaciones entre nodos

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
edorado's picture

Conditional Fields

Saludos Comunidad.

Read more
emptyvoid's picture

Loading multiple user entities using a field API field value?

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
Shin-gdo_J's picture

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

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

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

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

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

Read more
Shin-gdo_J's picture

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

お久しぶりです。

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

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

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

Read more
mikeytown2's picture

Finding missing images on nodes in given time range

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
michielvub's picture

Matching Content Profile Node with Event Nodes

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
guozan's picture

write a simple field type for CCK

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
rpeters's picture

Creating a CCK field module

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
heshanlk's picture

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

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
level09's picture

Real Estate Management Based on Drupal 6

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
cwittusen's picture

Couple 2 fields together

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
greta_drupal's picture

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

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
paispita's picture

How to create a cck text field with php default value

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
awm's picture

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

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
awm's picture

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

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
NovaLove's picture

Invoking CCK widgets in a custom module?

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
segolas's picture

Copy values from a content to another content

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
Subscribe with RSS Syndicate content