Drupal is up and running but how do I ...?

How do I download from a CVS sandbox repository?

I realize the overwhelming simplicity of this question, but for two modules I'd like to install, both require downloading patches from the CVS respository/sandbox of the generous individual who created them.

How do I do that?

I feel quite silly?
I took a look on the forums, and couldn't find an answer to this. Please forgive my ignorance. For the record, I feel sheepish.

Thank you.

Baaaa.

Stumped converting 4.6 node form to 4.7

I have been playing with this for hours and have been unable to convert a simple node form from 4.6 to 4.7.

My original unaltered hook_form() looks like this:

function case_form(&$node) {
  $output = ''; 

  if (function_exists('taxonomy_node_form')) { 
    $output .= implode('', taxonomy_node_form('case', $node)); 
  } 

  $output .= case_type($node);

  return $output; 
} 

This calls custom callback and theme functions, which have been updated to 4.7:


function case_type($node) {
$servicetypes = array();
$servicetypes['0'] = '-- choose --';
$result = db_query("SELECT st.* FROM servicetype st ORDER BY st.servicetypeid");
while($row = db_fetch_array($result)) {
$servicetypes[$row['servicetypeid']] = $row['servicetype'];
}

$form['servicetype'] = array('#type' => 'fieldset', '#title' => t('Select Service Type'), '#tree' => TRUE);
$form['servicetype']['servicetypeid'] = array(
'#type' => 'select',
'#title' => t('Service'),
'#default_value' => $node->servicetypeid,
'#options' => $servicetypes,
'#required' => true);
$form['submit'] = array('#type' => 'submit', '#value' => t('Submit'));

$form['#method'] = 'post';
$form['#action'] = url('node/add/case');

return drupal_get_form('case_type', $form);
}

function theme_case_type($form) {
$output = '';
$output = '

';

Forums: How do I....

How do I...

have Forums *without* having Comments enabled for all other content on a site?

I'd like to have Forums and have that be the only section or content of the site that users can intereact with. I do not want users to be able comment on any non Forum content.

Taxonomy categories not showing up on content creation pages

I've been working with 4.6 for several months, and I have just switched to 4.7.

The UI for content creation has changed, and either the category selection menu is no longer showing up, or it has moved somewhere I can't find it.

  • The taxonomy module is enabled, and I have created categories.
  • I'm working with 4.7, MySQL, Apache, Linux

Help?

What is the html shorthand for primary links?

I recall seeing some html shorthand for listing the primary links in Administer > Menu Settings...
Something like...
"
Background : node/4
People : node/6
... etc."

Can't find it in the Manuals.
TIA, set

forum topic with latest comments stay on top

Supposing there are several forum topics. All will definitely appear in the website's homepage. However, I would like the topic with the newest comments/replies to appear on top and it goes in descending order (topic with newest comments down to topic with oldest comments). How do I do that? Which part of the administrator's feature is that?

pls help

Pages

Subscribe with RSS Subscribe to RSS - Post installation