This forum is for assistance with theme development.

Help with relation

Hi All,

Newbie to drupal so I hope I am posting in the correct place.

I am working on a site and I have an idea of how I want the products section to work.

I have two brands each have 5 or 6 products and each of these has approx 6 models. I want it so a page can display all of the brands products then each product will display it's relevant models .

i.e. brand 1 -> product1 -> model 1 - 6

I want to create the relationships so I can output the relevant products for a given brand and the relevant models for a given product.

Adding thumbnail / Slider problems

Hey!
It's been a while since I've built a theme or used drupal and I'm not even quite sure what to google for my answer :D so I turn to you guys.
What I want to do, is add thumbnail to list of articles or list of news (not sure how to name this) in the front page. To make it look something like this http://vytauto.eu/news.jpg
Is there a module or should I fiddle with css or maybe it's build in already in drupal?
Im working with blank zen subtheme

Drupal 6.x theme conversion to 7.x

Hello, i am a newbie to drupal development. i have experience of more than 1 year in web development.
I am assigned with a task to convert a drupal 6.x theme into drupal 7.x theme.
Is there any good step by step tutorial which i can follow, because i dont have any experience in drupal..

Thanks

Setting values in views-view-grid--myviewname.tpl.php

Hi, I've got such a headache from looking at output from print_r($variables) for so long. I hope someone can help.

I have a grid with a few titles, pictures, and urls. All I want to do is replace the picture's hyperlink path with my url. I've found the relevant values:

$oldpath = $variables['view']->result[0]->field_field_dm_icon[0]['rendered']['#path']['path'];
e.g node/20
$newpath = $variables['view']->result[0]->field_field_dm_url[0]['rendered']['#markup'];
e.g. calendar-view

but don't know how to do the rest. I suspect I need to use my $newpath variable somewhere in the code below, but don't know how. Any idea's?

if (!empty($title)) :

print $title;

endif;

print $class; " print $attributes; >
if (!empty($caption)) :

endif;

foreach ($rows as $row_number => $columns): if ($row_classes[$row_number]) { print 'class="' . $row_classes[$row_number] .'"'; } >
foreach ($columns as $column_number => $item):

endforeach;

print $caption;
if ($column_classes[$row_number][$column_number]) { print 'class="' . $column_classes[$row_number][$column_number] .'"'; } >
print $item;

MENU BAR

I want to make a similiar menu bar like this:

http://www.omicrono.com/wp-content/uploads/2013/04/Captura-de-pantalla-2...

Any suggestions?...

Drupal 7 Warning

Hey there!

At first, sorry for my bad enlish - I try my best :)

Since today, I get this Warning Message:

Warning: file_exists(): open_basedir restriction in effect. File(/themes/default/default.css) is not within the allowed path(s): (C:/Inetpub/vhosts/(Servername)\;C:\Windows\Temp\) in drupal_pre_render_styles() (line 3437 of C:\Inetpub\vhosts\(Servername)\httpdocs\Drupal-Sitename\includes\common.inc).

I'm not that "special-IT"-Guy, so if you know whats wrong, please be simple.. :(

Pages

Subscribe with RSS Subscribe to RSS - Theme development