Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
To start, I really appreciate the developer community here. Upstanding and mature (which is a really nice change). I really need some help in a better understanding of taxonomy and menu creation. I have read the handbook pages, installed the taxonomy_context.module and basically tried to dive in head first, but I think I am missing something.
Now I think I understand how Joomla does it with it's section and category selection, but I really like how much more open Drupal feels. I suppose I need to understand the menu module as well.
Hi. I have just started with Drupal and I am having problems with the menus. I have created a multi-level menu but find that I can only use them with "Expanded = Yes" if I give the menu item the relative path to the content node ("node/6" etc) rather than using an path alias. If I use an alias, the menu does not expand. If I use an alias and set "Expanded = No", then the node displays OK, but of course the menu is permanently expanded. How can I use the path aliases with expanding menus - assuming that I can?
I'd like to have a field in my user profile: 'Position' for staff members.
Obviously I don't want any old user of the site to be able to edit this, so is it possible to set up a profile field that is publicly viewable but that only the administrators can edit?
I have been trying to modify my "Recent Comments" block all day to show the 1) the title of the comment and 2) the author of the comment. I've gotten really close to having it work out ok, but there is a weird glitch - about 20% of the comments are showing as having no author. The weirdest part is that there is no pattern to what causes it to do this (e.g., it's not just certain users who are getting bypassed nor just specific nodes). At this point it appears totally random. While I'm sure it's not, I also am out of ideas. Below is the current code I have in the comment.module - any tips anyone has would be really great! (Drupal v. 4.5.2, btw)
function comment_block($op = 'list', $delta = 0) {
if ($op == 'list') {
$blocks[0]['info'] = t('Recent comments');
return $blocks;
}
else if (user_access('access comments')) {
$result = db_query_range('SELECT * FROM {comments} WHERE status = 0 ORDER BY timestamp DESC', 0, 20);
$items = array();
while ($comment = db_fetch_object($result)) {
$items[] = ''.l($comment->subject, 'node/'. $comment->nid, NULL, NULL, "comment-$comment->cid").''.' '.' by '.$comment->name;
}
$block['subject'] = t('Recent comments');
$block['content'] = theme('item_list', $items);
return $block;
}
}
Okay - not sure if this sounds silly ... but I'd like to be able to use my Drupal username/password pairs as an Apache authentication mechanism. IS this possible? My initial guess would be use of mod_auth_mysql - but not sure if the Drupal user table would conform such a way that mod_auth_mysql could utilize the username/password pairs in there.
Basically, I'd like to be able to embed Authentication mechanisms either into a .htaccess or Apache CONF file.
I searched around for a good bit, but couldn't find anything specifically like this. TIA!