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

Content aAdministration

Hello,
I am new to Drupal and am loving it. I've got a rather generic question.

How can I actually display the content of a page on another page, for example the content admin page where all nodes are getting listed?

print_r(theme_node_admin_nodes()); actually prints out the content administration form header.

How can I actually display the entire content admin page ?

Cheers

Memcached Is anyone working with it to improve performance? ---->http://www.danga.com/memcached/

Hi. Is anyone using Memcached to improve performance of their Drupal system? Is there a plan to implement it in later versions of Drupal?

Replacement view and hiding edit tab at my account

Hello,

I've spent 2 days trying to replace view and to hiding edit tab at my account menu but... it doesn't work.
This is my hook_menu code:

function my_user_menu($may_cache) {
  global $user;
  if (arg(0) == 'user' && is_numeric(arg(1)) && (arg(1) > 0) && ($user !== FALSE)) {
      
      $view_access = $user->uid == arg(1);
      $items = array();

      $items[] = array(
        'path' => 'user/'. $user->uid, 
        'title' => t('My Account'),
        'type' => MENU_DYNAMIC_ITEM, 
        'callback' => 'user_viewedit',
        'access' => $view_access
        );
     

      $items[] = array(
        'path' => 'user/'. $user->uid .'/view', 
        'title' => t('View'),
        'access' => $view_access, 
        'type' => MENU_DEFAULT_LOCAL_TASK, 
        'weight' => -10
        );         


      $items[] = array(
        'path' => 'user/'. $user->uid .'/test', 
        'title' => 'Test',
        'callback' => 'drupal_not_found', 
        'type' => MENU_LOCAL_TASK
      );
      
      $items[] = array(
        'path' => 'user/'. $user->uid .'/edit', 
        'title' => 'hidden tab?',
        'callback' => 'drupal_not_found', 
        'type' => MENU_CALLBACK
      );

        return $items;
  }
  
}

textareas with revision control

Hello,

I'm trying to find the best way to add revision control to some textareas in a custom form. Currently only the title and body are revision controlled but my custom content type has more textareas and I would like them to be revision controlled also.

I cant find a lot of information on the site nor in the apis on revision control.

Trogie

E-commerce module error, gives me blank page / connection lost

Hey guys, I enabled the e-commerce module, but now when I go to edit something I get nothing back from the server. In IE I get a blank page, and in Safari I get a connection lost error. The weird thing is I was trying to pinpoint where the script broke i enabled the trace module and got something.

Fieldsets for profile variables

I wanted to attach a fairly large number of variables (fields) to each user's profile, and the UI for displaying and updating (editing) "that many" variables was not to my liking.

At the moment (in 4.7, anyway), profile variables can be put into "categories" (apologies to jaza and bdragon, but that is the "official" description of the way that profile fields are divided into separate and distinct groups). When a user profile is edited, the various categories are displayed as links near the top of the first edit screen, with the first edit screen focused on the "account settings" category. Those with user administrative privs can add additional profile fields and each field can (actually, must) be placed within a category. I believe that there are no restrictions on the number of profile fields or the number of profile field categories, although I certainly haven't stress tested it.

The "edit user profile" UI currently loads a separate page for each category. That separate page lists all of the profile fields associated with that category, in the order specified by the normal Drupal weight/alphabetization mechanism. There is no ability to group the fields in a fieldset.

I have a simple module that allows those with user adminsitrative privs the ability to assign each profile field to not only a category, but to a fieldset, as well.

Pages

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