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 want to develop my own theme which will be very simple. I planning to modify "pushbutton" and changing the colours and borders, but the basic structure is fine (Logo and title at top, menu on left, text in main area). Yes - it's a simple site (and my first). Does this sound like the right approach?
I have so many questions. Sorry if they are a bit basic, but that's where I'm at.
I'm editing my theme on a fileshare by downloading files onto my PC and re-uploading new files onto the fileshare. When I tried to upload my page.tpl.php file, it morphed into page.tpl.php.txt. I'm fairly sure that it was a PHP file-type before the upload and I included php in the list of accepted file extensions. This strikes me as a bug and is seriously hindering my progress. Anyone have any ideas? Thanks.
My data is being written correctly but I'm having issues with the Header. I generate the table by overriding the method that render my view. The table is created using the following code:
$table = array();
foreach ($nodes as $i => $node)
{
//Get the node
$node = node_load($node->nid);
// If this customer node is a premium customer we should include the company image in the table
$logoObj = null;
if(is_premium_customer($node)){
$logoObj = theme('image', $node->field_logo_low_resolution[0]['filepath']);
}
//Create a linked title object for this customer
$companyTitleObj = l($node->title, 'node/' . $node->nid);
//Get the links of taxonomy terms assosiated with this node
$taxonomyCategoriesLinks = get_taxonomy_categories_link_list($node);
//Generate the table array
$table[] = array($logoObj, $companyTitleObj, $taxonomyCategoriesLinks);
}
// Create the header for the table
$tableHeader[] = array(
array('data'=>"Logo"),
array('data'=>"Company Name"),
array('data'=>"Categories")
);
return theme_table($tableHeader, $table);
I get the following warning message when loading my list:
can someone help me with php im not very gud with it. anyway my theme supports a class="odd" and class="even" theming where odd contents will get a darker background while even will get white. i know this cause in my birthdays page layout which i did not customize it shows the effect. i would like to duplicate this on my custom userlist. im thinking maybe create a variable x and start with 1 then if check if the variable is odd or even then create an enveloping class that would say div class="odd" or even depending on the result then increment the variable x.