This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

CCK: How to automate insertion of comma-separated data from a text field with multiple values?

Hello,

I'm a newbie with Drupal and could not find an answer to the following problem in the forum nor the documentation, hence this post.

I'm trying to use CCK to provide a single text field with the capability of inserting multiple values, separated by commas, or semi-colons. E.g.: entering "Doe, John; Doe, Jane" in the input field, it would split values by the separator, then proceed to the correct insertion of data.

Let's say John Doe and Jane Doe are "authors" -- not users, and the input field is displayed at the creation of an "article".

Block visibility without php

i am new to drupal. and have just gotten familiar enough with the system to do some things. i have added the nice_menus module and am trying to display mutiple menu blocks on seperate pages ... so the main page will show the main block menu then each page you goto after that will have a different block.. but i cannot get anything but the > <> to work... are the pages listed differntly? i have tried things like and node/12/* for everything under that node! and i do not know alot about php..

SELECT query and strange results

I am trying to search a node_ table and I am getting odd results. Some things that I search for return results while others that I know are in the db don't. For instance, if I search for "Viking" it will return all of the Viking Lodge units. If I search for "Franz" or "Klammer" it will not return the Franz Klammer Lodge units. If I search for "Lodge" it will return all results for both Viking Lodge and Franz Klammer Lodge.

At first I thought that it may have been a collation issue, but the site and the field are both utf8.

Chatroom Error

I'm trying to install a chatroom on my site. When I install the module, I get an error message stating:

OG semi-autonomy solutions

howdy,

I'm trying to create a social-network site. The important thing is that it should be very user friendly for average people who are not very technically literate.

For Organic Groups I want OG creators to be able to easily administer their group website as if they had a maximal autonomy over the way that it appears (of course the fixed global panel with global links will remain at the top, but colours will change according to the theme). And I wanted to see what kind of solution will Drupal community suggest.

When a user creates a Group, I want the group website to come with pre-installed navigation links at the top (below the Global-links panel): HOME (customizable group frontpage with summaries of different aspects of OG website), PROJECTS, WORKING PAPERS, MEMBERS (list of members with avatars), BLOGSTREAM (a compilation of blog entries after they have been modified by the OG-administrator), FORUM (with already visible sections even if empty), CALENDAR (of upcoming events), PAST EVENTS, JOIN, ABOUT, CONTACT. These should come by default, but OG-administrator should be able to easily disable of add other pages if he so wishes (sort of like in Wordpress but with more default functions).

Need to clear cache on node insert, update or delete, am I missing something?

Yes, this is probably simple stuff, but somehow it doesn't work for me

I need to clear cache for certain object when a node of a type 'album' is inserted, updated or deleted. I wrote something like this:


function mymodule_delete(&$node) {
	global $user;
	
	if ($node->type == 'album') {
	
		$var = 'albums_' . $user->uid;
		cache_clear_all($var, 'cache', TRUE);
	}

}

I also have functions for insert and update hooks... but it doesn't work.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions