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.
Greetings, Drupalers,
I'd like to touch on a subject I'm sure all of us have dealt with. As our Drupal sites continue to grow and feature lists get longer, we find ourselves with quite a bit of CSS and JS files loading. Has anyone come up with a way to sort of aggregate CSS and JS into a couple files instead of loading several different ones?
Obviously we can do all this by hand, but it becomes cumbersome when it comes time to upgrade a module here and there.
In the core code, the user.module's autocomplete callback will only try to complete a single username. However, it seems as though this should be able to work for multiple names, like the free tagging in taxonomy module. Culling code form user and taxonomy modules, I think the code below could provide this functionality (I haven't tried it yet, however). Has anyone else wanted the same thing and gotten it working?
Is it possible to add a JavaScript call to a profile field?
As part of my profile module, I have fields for the "mailing address" and fields for the "billing address" - I'd like to add a "billing address is the same as mailing address" checkbox that will copy the mailing address over to the billing address and disable the billing address fields. Writing the JavaScript to do all this is fairly straight-forward for me, but I'm unable to figure out how to attach the function to the profile checkbox.
i have some problems with all my relative links that are in my html node content:especially for displaying images:
i'm using a lot of images to display in my nodes content wthi relative links like this: