Bildlänk till extern URL, där URL anges när admin skapar artikeln...
Jag har en innehållstyp och en View för visning av referenser. I CCK har jag ett Imagefield för uppladdning av bild i artikeln.
Nu vill jag när jag skapar artikeln ha möjlighet att skriva i en extern URL så att bilden blir en bildlänk och vid klick öppnar den länkade externa URL:n med target="_blank". Olika url för varje ny artikel/referens alltså.
Read moreCreate Content Fields "on the fly"
Hi,
I'm building my user profiles with cck and the content_profile module. To explain my problem/question here's a little example:
The user profile containes fields to collect information about himself and his children (birthday, school and gender for each child). Because the quantity of children differ from family to family I don't know how many content fields are needed to be created in the first place (five children, six children … 20 children?).
Read moreAccess of Location data for a Computed Field
Hello
I have a node type with location data. I want to access latitude and longitude data to calculate Sunrise time in a computed field on the same node - but no success. The code in computed field is:
$lat = $node->$location[latitude];
$long = $node->$location[longitude];
$node_field[0]['value'] = date_sunrise(time(), SUNFUNCS_RET_STRING, $lat, $long, 90, -5);
I can access latitude data $location[latitude] in the theme override, and can calculate sunrise. I want to use the computed field in a View.
Any help will be appreciated.
Read moreViewreference and Panels via Page Manager
I ran across a problem with using a viewreference inside of a Panel via the cTools Page Manager. As there are numerous modules in the process chain, I am not sure where to report it. So I am starting here.
Essentially, when I try to add a node viewreference to pane, it looses it "Field Format" upon submission. These are the errors I get:
warning: Invalid argument supplied for foreach() in /home/drupal/drupal-6.15/sites/all/modules/cck/includes/panels/content_types/content_field.inc on line 172.
An illegal choice has been detected. Please contact the site administrator.
Is this possible using cck to define a content type like this?
I have 2 types of content, lodges and members.
Every member can only belong to 1 lodge, and every lodge will have many members.
I have created the members content type and it includes a node reference field that allows the selection 1 of the available lodges (I love that I could create a view to allow users to build the list of lodges).
And now on the lodge pages, I would like to display the members that have selected this lodge in their page.
How can I do this?
Many thanks for the help!
Read moreCCK are nevoie de ajutor pentru versiunea 3.X
Se pare ca branch-ul 6.3.x si portarea pe D7 a modulului cck are ceva probleme. Personal am folosit multigroup si cred ca e un pas important pentru CCK. Ar fi pacat sa nu ajunga la un release stabil. Din cate am citit pe acolo momentan e un singur tip care munceste markus_petrux. Dar mai bine cititi si voi.
Mai multe detalii aici http://drupal.org/node/690140 si aici http://drupal.org/node/494100
Ar fi frumos sa incercam macar. Ce spuneti ?
Examples of datetime field form validation w/Rules?
I'm working on a Drupal 6 site that includes the ability to book resources (meeting rooms, projectors, etc). When somebody submits a new reservation/booking, I need to validate the reserved time to make sure it doesn't fall outside of business hours. I was hoping to do this with the Rules module, as I'd like the ability to change the validation criteria via the Drupal web UI.
Read moreEmbedding a CCK attached file (imagecache) into a body text as a float
I'm trying to float the CCK body text around an image, but I just can't get it to work no matter what I try. Here is the current relevant code node.tpl.php:
<?php if ($node->field_vendorpic[0]): ?>
<?php print theme(
'imagefield_image',
$node->field_vendorpic[0],
$node->field_vendorpic[0]["alt"],
$node->field_vendorpic[0]["title"]);
?>
<?php endif; ?>
<?php print $node->content['body']['#value']; ?>
</div>Need some advice, ideas on node creation for directory
So, I have a website for a church. Each person (adult and children) have their own account.
I need to build a directory, with photos. This would be easy for a company directory, but we need 'family' photos to be available here and persons grouped together.
My initial idea goes something like this: create "family" nodes using address as the unifying data. And, that's about as far as I've gotten. I really can't wrap my head around how to do this. Please help me brainstorm!
Read moreTheming cck
Does anyone know of a way in the create content section to have two columns I have never seen it, but need to be able to do it. Thanks
Read more



