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.
I need that in the context of custom CSS injection based on node type. I have discovered that this code works for that goal:
function acquia_marina_preprocess_node(&$variables) {
if (!empty($variables['node'])) {{
$nodesort = $variables['node']->type;
}
switch ($nodesort) {
**CASES HERE**
}
}
}
However, I need to make sure that this code will be executed only if the currently viewed page is a full-node page (not a view or a front-page with teasers, for instance).
Sorry for the horribly vague title! I have an idea for a site where the user needs to enter their search variables, hit enter, and the page displays the database items that match that description/have the 'tags' that match the search criteria. Probably a pretty simple thing to do, except that I'm not sure where to start. Is there a module that could assist me with this? I'm keen to read and learn how to do this, I'm just not sure where to start and what to search for, so a little guidance would be appreciated.
I started and run a gaming website that was built on Drupal 7. I am currently rebuilding the site from scratch on a subdomain, and plan to replace the current site with the new site thats sitting on the subdomain.
My question is what folders and files need to be transferred in order for my main domain to show the new drupal site? Basically, do I just drop in and replace the 'Sites' folder from the subdomain into public_html and now it'll be the new site?
Any advice or pointers for this would be greatly appreciated, thanks!
Hi.
Ive installed and configured drupal and i understand that my currently used them have rtl support because it contains css files with "-rtl".
But i didnt see anywhere how drupal uses that css. when i view the source html of a page i see only the default css ("style.css"). What should i do to tell drupal to use the "style-rtl.css".