Hi. The question of displaying the authoring information (submitted by user on date) and / or title of the post has been asked sometimes in this forum. I want to be able to toggle this for some posts, which could be of any type, including flexinode. Below is the approach I am following for Drupal 4.5.2; since I alter core functionality (table node, node.module and some theme files) I don't recommend it to anybody. I set two new variables for any node, showcreated and showauthor. It works perfectly for page or image node types. If somebody wants to follow this way and has any question, please feel free to ask me. My point is, I want to follow a similar approach to display the title of the post, if possible WITHOUT making an extra call to the database. The Title is set using the function themewhatever_page($content, $title = NULL, $breadcrumb = NULL); please could somebody tell me how to extract additional node fields (like a hypothetical "node.showtitle") in it? Thanks.
database
ALTER TABLE {node} ADD showauthor int(2) NOT NULL default '1';
ALTER TABLE {node} ADD showcreated int(2) NOT NULL default '1';
node.module
function node_validate($node)
// Under:
// Validate for normal users:
+ $node->showauthor = variable_get("node_showauthor_$node->type", 1);
+ $node->showcreated = variable_get("node_showcreated_$node->type", 1);
Hi,
I need to pass a variable like http://www.drupal.org?x=2&y=4 to a module which i am writing. My Drupal installation has clean urls enabeled.
Question: what is the right way to do this?
Searching in this forum gave me the hint that it is possible to do something like:
Hi! guys I'm new to drupal and I'm trying to make my own flexinode content type.. and I'm storing some information on serialized_data in the flexinode_data table
is there any easy way to show some information from the serialized_data field from the tabular view?
any tips on how to approach this would be nice ! thanks!
I am trying to figure out how to use new image.module from CVS with the 4.6 rc. From what I can understand the default image handling software for this set up is the GD_toolkit. Right now this isn't installed on my servers, but Imagemagick is. All of my other PHP scripts on mysites already use Imagemagick, so I would rather not switch over to GD. So....How do I use Imagemagick with the new image.module. There is a file called image.imagemagick.inc in the image module directory, but I can't figure out how it affects my set up.
Hello Moshe (and others). What is the game plan for Organic Groups in Drupal 4.6? Has the functionality been incorporated into the core, or de we need to wait for the OG 4.5 module to be updated for 4.6? Thx,