This forum is for assistance with theme development.

Help with $content - removing it takes away ability to edit page - HELP!

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.

Remove js files from specifics pages

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?

Thanks a lot!

Changing the login url on Drupal 7

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?

Thanks a lot!

How to Show Add to Cart Button on catalog listing page?

Hi,

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.

Please Help me.

Thanks

Different Page Template for Specific Pages

Hi Guyz,

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 :

Corporate Clean columns

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.

Thanks!
Dave

Pages

Subscribe with RSS Subscribe to RSS - Theme development