CCK

Events happening in the community are now at Drupal community events on www.drupal.org.
JockeL's picture

Visa ikon istället för CCK-värde

Hej!

Jag försöker lista ut hur jag kan visa en ikon istället för värdet som visas i aktuell nod och i listningen med views.

Jag har innehållstypen "Produkt", och vill lägga till ett fält att fylla i om produkten är miljömärkt. En ensam checkbox eller liknande. Istället för att visa en text "Ja, miljömärkt" på produktsidan och i produktlistan så vill jag att svanen-loggan ska synas.

Några förslag?

Read more
cangeceiro's picture

Selling tickets based on a CCK date field

Hello folks,
I'm trying to work out a way to sell tickets to events in our calendar product. The idea would be that each event is also an ubercart product type. I'm using a cck date field to denote the event dates. Ideally we want to have this working so that a user could visit the event page, and purchase a ticket for a specific date as defined by this cck date field. The other caveat is that this needs to be automated, Requiring that a person enter in a new product for every date occurrence is just unfeasible in in this application.

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

Validar campo CUIT

Hola drupaleros !
Estoy usando cck y necesito agregar el campo CUIT a un tipo de contenido. Quisiera poder validar si el numero ingresado es un cuit valido. Para esto se que existe la siguiente funcion[0]. Existe la forma de pasarle los datos a cck para que los valide antes de salvar el contenido?

abrazos!
lukio

[0] Funcion validar CUIT:

function UfValidStrCuit($cuit,&$resultado)
{

$coeficiente[0]=5;
$coeficiente[1]=4;
$coeficiente[2]=3;
$coeficiente[3]=2;
$coeficiente[4]=7;
$coeficiente[5]=6;
$coeficiente[6]=5;
$coeficiente[7]=4;
$coeficiente[8]=3;
Read more
datatv's picture

Can't seem to add new fields to a content type

I just added two new fields to a content type and when I go to my Create Content form for that content type, the new fields are not in the form. I go back to check my fields in the content type creation and they are there and in the proper order. So why are they not showing up in the form?

Read more
datatv's picture

New Fields not appearing in Content Type

I'm creating a recipe book application so I created a new Content Type called Recipes and from that I went to add two new fields. One called Ingredients and one called Preparation. I give them both a name, a type of text and a widget of a text area for both. I move them above and beneath the body text area (now renamed Recipe) appropriately. Save it, go to add a page in Recipes but the form still shows the old format. No new fields. So where are they?

Read more
alanshort's picture

Multiple Loctions Displayed on Single Map

Dear All

I'm looking to recreate Google Map functionality I wrote for my site (http://www.racekites.com/locations/locations.asp) in asp using Drupal.

I have the modules installed and can display a single location to a single map.

Is it possible to send multiple (500+) locations to a single map using the standard GMap module ?

How can this be achieved ?

Cheers
A

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

Make Latitude & Longitude compulsory fields? and Location & gmap not working together properly...

Hi

Using the CCK, location, views, gmap and Gmap_location modules, I have 2 main problems;

  1. I CANNOT find a way to set the 'latitude & longitude' fields as 'required' on a CCK form

  2. Is there any way for these Location and Gmap modules to work together to 'validate' each other and not allow bizarre types of location data into a node type? (E.g. not allowing to form to save something like city: London, country: USA, GEO co-ordinates: tokyo)

This is what i have done...

I have installed the following modules: Location, Gmap, Gmap location, CCK, views.

Read more
Subscribe with RSS Syndicate content