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.
Okay - long story short. I am editing a content type for a page to customize the output.
I removed print $content and the added print specific fields -- print "<div style='margin-top: 40px;' id='instructor-course-listing'>" . $node->content['body']['#value'] . "</div>\n";
Well, when I do that I can not edit the page. Why is that? and how can I edit the output of $content without losing the edit capability?
Please help, this is beyond me and I am not finding anything to help figure it out.
I have some javascript files about views slideshow module, that makes the slideshow works. I just use this files on homepage, but they also appears on node pages, what I don't want, because the page does unnecessary requests to the server. So:
How Do I do the javascript files load ONLY on homepage? What php code do I have to put on template.php in order to do that?
I have a website on Drupal 7. The default login page is "sitename.com/user". But, in order to have more security, I would like to change this url. How Do I do that? Do I have to install a module or is possible to do that with a php code on template.php?
Can anyone help me that how can I show "Add to cart" Button on node--product.tpl.php
I am using print render(($content['add_to_cart']));
but it renders with quantity textbox but need only "Add to cart" Button.
I am new to Drupal but just fell in to love the way Drupal works and Trying to localize Drupal for my future projects.
as i have been migrating from WordPress, in WordPress there becomes a very good techniques for page templating
Now for Details process for those who haven't used WordPress :
Can someone tell me the correct way to create multiple columns using the Corporate Clean theme? Columns created with Panels does not resize for mobile.