For those who wish to discuss CCK development.
persistent forms?
I need to create several different content types that users will be able to have always present on a personal page. For example one form may simply have a field for miles driven today. Another may have a scale for rating mood from one to five. There will be five or more of these.
The users should be able to go to a personal page and see the forms they have chosen to appear on this page (perhaps displayed in blocks with the formblock module) and enter the information. Only the content types they have chosen should appear on this page.
Read moreCCK values from an external datasource
In our project we need to have a select box which lets the user choose among a list of items coming from an external data source (XML based webservice). It would be interesting to be able to retrieve the values of a CCK field from an external data source instead to "hardcode" the full list of values. A way to do it could be to specify, in the field setting, the XML end point and an xPath expression to map the values contained in the XML as values of the CCK field.
Any feedback on this?
Read moreUpdating CCK fields in code
are there methods for updating fields on content from with code? something similar to drupal_write_record but with cck support.
Read moreabout creating private and public radio button option with cck
I am new in drupal.
I have stories in which I have to put the option of radio button with private and public options.
Can I achieve this using CCK
If it is possible then please suggest its solution.Thanks in advance.
Read moreControlling a (custom content type) gallery page with a CCK block of thumbnails
Hi
I posted this on the drupal.org forum but I'm not getting much love so hope someone will take interest in this group :)
I am using CCK to upload and display my images: CCK, ImageAPI, ImageField, ImageCache and also CCK Blocks and CCK Block reference to display a block of thumbnails on the left hand side of the page generated from the images in the main content area.
I have set up a new content type: Gallery Page where I have used imagefield to create an upload for that page, ImageCache handles the resizing to thumbnails and cck block displays the thumbnails.
Read moreNode Reference with autocomplete
Hi.
Does there exist a tutorial about the CCK Node Reference fields?
I've created two content types, Father and Son. A Father can have many Sons.
I've added a new Node (Father) Reference field to Son.
I've also added an "Add new Son" link (node/add/son?field_father=123) when the user is on a Father-node page.
Now, I don't know how to autocomplete that Node Reference field with the nid of the Father node.
Could anyone help me?
I'll write a tutorial if it doesn't exist and I succeed to make this work.
Thanks anyway, Giovanni
Read moreCCK option field with dynamic option
I would like to create a cck field with dynamic options based on user's tag's input on the same form, can anybody help/showing me how to do this ? many thx
Read moreHelp shape a Content Types and Views book
I am currently in the very beginning stages of writing a book on Drupal Content Types that will focus on Core, CCK, and Views. I have a first draft of the outline that I am working on. I would love to get community feedback to help shape the book at this very early stage.
http://alanio.net/blog/2009/02/first-draft-drupal-book-outline-content-t...
Thank you,
Alan
Advanced Drupal Views with Victor Kane & Chris Charlton
Victor Kane & Chris Charlton teach Advanced Drupal Views in Venice, CA.
LA Drupal resident members get a special $50 off (email for bulk ticket pricing).
Learn all the new concepts in the Views 2 module for Drupal, inside and out, even some object oriented design details to take back to work.
Learn about the new architecture in Views 2, learn Relationships, the new user interface, and become a master of the new multiple Display configurations.
TICKETS ON SALE NOW. Hurry, tickets will go fast! http://drupal-la-training-2009-march-15.eventbrite.com/
This workshop shows how you'll get the most out of display options like blocks and pages, plus how to theme your views with PHP templates. Take away masterful tips like how to embed views (meaning views within views), and some magical views that only a developer can love.
Read moreNode Reference selection widget
I have just published a new module which might be of interest to some of you:
http://drupal.org/project/nodereference_views_select
From the project page:
Read moreProvides a widget for Node Reference which displays the node teasers instead of a select box, and allows choosing the referenced nodes
from a Modal panel. The list is optionally sortable, depending on JQuery UI Sortables. The modal supports pagination, exposed filters
and exposed sorting, all using AJAX.
Can I add a node reference from "wrong side"?
I posted this earlier in the d.o forum, but I'm realizing this is probably a better place for my question.
I've been reading and reading about node referrer, node relativity, node reference, etc. and I'm stuck.
What I want to be able to do is allow users to add a node reference from either side of the relationship. Unless somebody can convince me it is a good idea, I would rather not have the reference recorded in two places (ie both nodes referencing each other).
Here is an example.
- I create a 'person' content type and an 'event' content type
Cloning a content type
Hello:
Is there a feature to clone an existing content type on the same drupal installation. Here's what i'm trying to achieve.
content type - job_posting_1 with certain groups and fields within them. This represents an application for a job posting and students can apply for the posting
now i want to create a new job posting for my company with a similar structure (but it may have minor changes to some fields). so is it possible to
clone job_posting_1 to job_posting_2.
Implementing hook_field outside cck field modules
I would like to implement extra functionality on specific CCK fields operations. For example, I have a link CCK field in some content type. When a value, eg a website link, is entered in that field, I automatically want to set up a feed using that link. To do this, I am now altering the entire node form using hook_nodeapi(), filtering out the correct content type and then reading the field value. I thought it would be nicer to hook up my custom action (creating the feed from the link) directly to the CCK field.
Read moreContext specific fields
I am working on porting a minimal version of the Bibliography module to CCK. I am doing this as the Biblio module doesn't serve my exact needs. On of the UI elements that the Biblio module does that I would like to mimic is a context specific fields for data entry depending on the selected publication type.
Read moreAction needed for the "After/before deleting a post" trigger
I have a node type A (parent) and a node type B (child). B-nodes have a mandatory CCK nodereference field that points to a parent A-node.
A1
|-B1
|-B2
|-B3
Currently it is possible to delete the parent A-node and all child B-nodes immediately become inconsistent (a mandatory nodereference field points to an non-existing parent). CCK does not address this flaw and I need a workaround. Reading through the documentation I found out that it might be possible to create a custom action (in D6) that will delete all child nodes when (before) the parent is deleted.
Read moreAdd more CCK text fields without save / re-edit in Drupal 5
Drupal 6 has this natively -- an "Add more" button that adds additional fields. In Drupal 5, you have to save the node, then edit it, and only then do you have three more text fields to input.
I'm looking for a module or a form_alter snippet or whatever that can do something similar in Drupal 5. Anyone got pointers?
Read moreFetching CCK nodes spanning multiple Content Types
CCK: 6.x-2.1
Drupal: 6.8
I am working on a module that needs to fetch sets of nodes based on various criteria (I don't think the criteria isn overly important for this discussion). The content nodes may span all content types installed on the site. I need to fetch a list of all the nodes matching my requirements and all of their fields/content.
I need this basic functionality:
$result = db_query('SELECT * FROM {node} WHERE #my conditions are met#');
while($row = db_fetch_object($result)){
$node = node_load($row->nid);
... do stuff ...
}UID access from CCK userreference.module to CCK compute example
I've been searching for an example of getting the UID out of the CCK user reference module and used in the CCK compute module with no luck. Either I'm searching for the wrong stuff, in the wrong places, or an example of this is not out there. Can anyone help me out?
A generic example is fine, but my specific need is to take the 2 users selected from the cck user reference module and on the same node compute a field that takes the first and last names from a custom profile and concatenates them.
Read morefield_setValue()...
I've been trying to figure out a generic way to set the value of CCK defined fields from my custom module code. Is there any form of a hook_field_setValue($item) or the like?
My module exposes an API to create content defined by CCK. I want to be able to take the inputs to the api function and "convert" them to well-formed CCK arrays. My hope would be this function would invoke the appropriate validate functions, etc... Is there such an animal?
Read moreCCK with Views does not show certain fields unless logged in as admin
I have been searching the forums/groups/blogs for the last 2 days but cant seem to find anything to help, maybe Ive just overlooked something obvious.
Read more







