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.

minghui.yu's picture

Is it possible to set number of values of an individual field in a compound field to "multiple"?

I got a problem when developing a compound field (Drupal 6, cck 2). It has an Imagefiled, a few textarea/textfield/checkboxes, etc.

However, I realize that I must enable users to upload multiple images. The compound field as an entire field can be set to "unlimited" number of values , but not the individual field in the compound field.

In other words, all individual fields in this compound filed, other than the image field, can only have just one value; the compound field as a whole, can only have one value, too. But the image filed must be able to have unlimited number of values.

Read more
Garrett Albright's picture

On-the-fly remote image fetching

I've got a tricky problem, and I'm hoping folks more familiar with the CCK/Views ecosystem can help me formulate a plan of attack.

My module pulls listings from a remote database of real estate listings and imports them as nodes, with each field in the remote listing corresponding to a CCK field on the nodes, so the listings can easily be displayed, sorted and filtered with Views - it works pretty well. Each listing can also have several images, and I'd like to be able to use CCK and Views to display those images as well with full ImageCache magic.

Read more
xjm's picture

Proposal for a module: TAC fields

I'm considering developing a module to extend the functionality of TAC to role/field combinations. TAC works wonderfully for controlling access to whole nodes based on their taxonomy, but it's all-or-nothing; the module currently has no way of leveraging the per-field access control offered by Content Permissions.

I don't think the functionality belongs in TAC itself, as my proposed module is an additional layer of complexity that's specific to CCK content types.

Read more
aleclerc's picture

CCK Node Reference to custom feed

I'm working with 2 types of nodes, 'alert' and 'area'. I've pre-populated a bunch of area data which contains various information such as coordinates, etc. Each 'alert' has, among other information(title,scope), a node reference to an 'area'.

I'm trying to create a feed like this:

<alerts>
  <alert>
  <title>Title</title>
  <scope>Public</scope>
  ....
  <area>
     <coordinates></coordinates>
     ...etc....
  </area>
  ....
  </alert>
  <alert>...</alert>
</alerts>
Read more
brbrbr's picture

Locatio mapper feedapi georss for ckk

I have been looking into the location mapper for the feedapi.
My rss feeds are provided by a affiliate-datafeeds to rss converter. This feed includes categories and georss information. I found the following issues:

  1. RSS does not have other geo fields except the georss tags
  2. The location mapper does not allow mapping other fields then the georss (makes sence after the first issue)
  3. When solving 1 and 2 the locatiomodule will still attempt to find ‘better’ coordinates and throw away the provided onces
Read more
igor.ro's picture

Using views in cck formatters

In my last project I develop module that may be intersted to community.
The problem was that I need to show list of images (imagefield) from nodes (type A) that references to node (type B) in on full node view page in the node body region. Also I was need to show list of nodes (type C) that have same taxonomy as current viewed node.

The decigion was to run view in the formatter code for nodereference field and to pass in this view value of this field as argument.
What do you think about this solution?

Read more
Anonymous's picture

Simpletest and CCK types

Hey all,

Ive been exploring the wonderful Drupal framework for some weeks now, been reading alot about modules, module development and theming. In the last few weeks i have developed some small modules that i want to test using the Simpletest module.
Ive read the documentation and the tutorial to get some sense of how to set up Simpletest for my modules. So i thought i would start by making some functional tests for my custom CCK types. So far i haven't had much luck, ive been wrestling Simpltest for a while now and its not returning the love so far :P

Read more
mikeytown2's picture

CCK node reference & cache expiration for boost

I could use some help with boost and CCK. Given nid, get all cck node references (this node points to X (not very useful, X hasn't changed)) & all cck back references (X points to this node (very useful, this node changed)). Flush all nodes, only going 1 level deep. Any help is greatly appreciated.

Boost issue: http://drupal.org/node/567650

Read more
pvhee's picture

Social networking accounts: unified approach to store in external account data in user content profiles?

Currently, drupal integration with networking sites happens through contrib modules that all store their settings in different ways. For example, both Facebook Connect and Twitter store combinations of drupal user IDs with external IDs (Facebook uid, and Twitter account name) in custom database tables, and both provide a custom interface to edit social network account information in a user profile. Consequently, views integration is custom and relies on the contrib module to implement it.

Read more
ebrittwebb's picture

How To: Generate Random URL

(Reposting...last post was deleted)

For certain content on a site, I want to implement "security by obscurity" by having the posts show up only in restricted views and by making the URLs for those posts a set of random, unguessable characters (like Microsoft does with GUID).

So, I need guidance in two parts:

  1. What module (presumably CCK-related) or trick will create a set of random, unguessable characters that I can then use as replacement token in pathauto?
Read more
mikeskibum's picture

2 content templates for 1 content type

I was reading "Flash With Drupal", Tidwell, in there there is a content type recipe. Is it possible to define 2 content templates for 1 content type, for example: if a cook (role) clicks on a recipe link, it will open up in cook.swf where he can view the recipe. If a chef clicks on the recipe link it will open in a different flash application, chef.swf, that can be used for editing the recipe.

Read more

Creating new nodes from reference fields

This is a list of modules which enable the creation of new content directly from a nodereference field. That is, if an "album" content type had a nodereference field for "performer," you could add new performers not already in the system at the time you create a new album.

Read more
betawebsolution's picture

Providing Service On Graphic Design

we are sending you our work profile just for reference. We are also thinking the same thing to go hike in our life. We are group of freelancer running this virtual company (betawebsolutio) for the past couple of years. We are planning to move this company in real and work for this company completely . We have very good experience holder in business development guys, designers , testers, coder (php flash) , and other open source developers. If you want to go further then add me skype for further talk .

Service Domain-

Read more
reikiman's picture

RSS Enclosure handling

Still working on my http://wwwatts.net site and am looking at what it will take to properly handle a podcast or other feed with enclosure tags. With my existing site the podcast entries get aggregated into an aggregate feed and the enclosure tags are carried along such that the aggregate feed is also a podcast aggregating the individual podcasts. This is a good thing (I think).

Read more
jayburgh's picture

Basic CCK Module Question

I love CCK, yet I have hunted for hours to no avail to find the answer to a simple question. Let's say I create a generic 'letter' content type with CCK to represent letters to newspapers and legislators. I have different CCK 'projects' for which I want my users to create instances of this 'letter' content type. I need a basic roadmap on how to build a module that when a user spanks a link from within a 'project' context, I can present them with a custom CCK 'letter' content form with some fields stuffed and others defaulted based on the project. Coding is not an issue.

Read more
kehan's picture

Discussion page on CCK admin pages

Hi All,
I've had some feedback from MediaWiki fans extolling the virtues of Wiki Templates (see http://en.wikipedia.org/wiki/Help:Template) which in my mind are kind of analogous CCK content types (ie content types defined by a user). One neat feature you get with templates is the ability to discuss their development using the mediawiki Talk page, and I was wondering if somebody has thought about doing this for CCK. Hey maybe it's possible to define a CCK type through a node? Maybe I'm just rambling, but I just thought I'd throw it out there.

Cheers,
Kehan

Read more
tema's picture

Content Subtypes module proposal (discussion)

Following text was moved from wiki page to discuss it. Use that wiki to form up a feature list and for task planning.

Inspired by Taxonomy fields module.

Often it's hard to make an “universal” set of fields to describe some real-world object with single content type. Many fields in many cases will be empty or filled in by default. The alternative is to make a lot of “pre-defined” types, but there are no useful tools to organize them and associate with a custom logic.

Read more

Content Subtypes module proposal (planned features and tasks)

Use this wiki to form up a feature list and for task planning. See discussion about this proposal.

Inspired by Taxonomy fields module.

Often it's hard to make an “universal” set of fields to describe some real-world object with single content type. Many fields in many cases will be empty or filled in by default. The alternative is to make a lot of “pre-defined” types, but there are no useful tools to organize them and associate with a custom logic.

Read more
Jabzebedwa's picture

Labels Won't Print

I have looked around and found this problem in a few posts, but haven't yet found the solution.

I've got a number of yes/no check boxes with labels. The check boxes show up in the Create Content page, but the labels don't. Nothing prints on the Content Page. All permissions are granted for all users.

What am I missing?

Ben

Read more
jmather's picture

Adding an edit link to an autocomplete node reference field.

I was hoping someone could point me in the right direction to add an "edit" link to a cck node reference field.

In this case the references are autocomplete fields and I want to add and "edit" link that would point to i.e. http://www.mysite.com/node/4/edit

I will probably use the popup api to make the link open as a popup. What I'm having trouble with is figuring out how to hook into the autocomplete textfield element.

Read more
Subscribe with RSS Syndicate content