Can we use first and third party cookies and web beacons to understand our audience, and to tailor promotions you see?

Theme development

This forum is for assistance with theme development.

Calling Categorized Content to Specific Blocks

I need help in routing specific content to specific content pages, ie: "Parent" categorized data to "Recent Posts" block on "Parent" page. Can anyone help in pointing me in the right direction either direct help or suggestions on where to find info or search criteria to input to find more info. I am using a bryght site and 4.6 version Drupal.

theme_fieldset - language independent $title?

Hi yall im working on a new theme currently called copenhagenTango (small preview: http://www.flickr.com/photos/mortendk/299075736/)

im running into a small problem that my small drupal knowledge cant solve. One of the ideas behind this theme is to incorporate icons into the admin part of the theme
By using the $element['#title'] to create the file name i can define the different icons in the different areas (specially round the field sets ), but if a user is changing language (danish perhaps) well then the #title is changing
A work around would offcouse just be to create a new set of img for that language but thats gonna be to messy (and a hell to keep track on when if the english translation is going to change some day)

So i guess my qustion is:
Is there any way to give a given fieldset a specific unique ID og name?
and well how do i do it ;)

<?php
function copenhagenTango_fieldset($element) {
if ($element['#collapsible']) {
drupal_add_js('misc/collapse.js');

$element['#attributes']['class'] .= ' collapsible';
if ($element['#collapsed']) {
$element['#attributes']['class'] .= ' collapsed';
}
}

$file=strtolower(str_replace(' ','_',$element['#title']));
$img = 'Only local images are allowed.';

return
'' .

Tables within a form 'fieldset'

Hello

I'm trying to render a table inside a form 'fieldset'.

I have a form generated like this:

$res = db_query("SELECT  .... ");
if (db_num_rows($res))
{
    $dkppform['dkpp'] = array(
        '#type' => 'fieldset',
        '#title' => t('Attendance'),
        '#tree' => true,
    );
    
    while ($r = db_fetch_object($res))
    {
        $dkppform['dkpp'][$r->MemberName]['pts'] = array(
            '#type' => 'textfield',
            '#size' => 2,
        );
        $dkppform['dkpp'][$r->MemberName]['start'] = array(
            '#type' => 'hidden',
            '#value' => $r->StartTime,
        );
        $dkppform['dkpp'][$r->MemberName]['end'] = array(
            '#type' => 'hidden',
            '#value' => $r->EndTime,
        );
        
    }
    $output .= drupal_get_form('dkp_assign_dkpp', $dkppform);
}

Without any theme function, the fields display all in a line, within the outline of the 'Attendance' fieldset.

I created a theme function for the form that reads:


function theme_dkp_assign_dkpp($form)
{
$header = array(
t('Name'),
t('Start'),
t('End'),
t('Total'),
t('PTS +'),
);
foreach(element_children($form['dkpp']) as $value)
{
$rows[] = array(
$value,
$form['dkpp'][$value]['start']['#value'],
$form['dkpp'][$value]['end']['#value'],

Moving from Joomla, anyone want to help converting template?

Hello all,
I'm new to Drupal! I have been reading over the theme developers handbook and browsing through the current default templates and am at a complete loss with this whole templating thing. I have the css and all from my Joomla site that just needs to go to Drupal, but there seems to be so much more to theming at Drupal.

So, anyone interested in helping me out a bit?? It's a gaming site and I don't get enough revenue to pay (its doesn't even fully pay for our dedicated server). I would really like to give Drupal a good run.

How do you apply your theme's background color to TinyMCE?

Basically, what I'm looking for is for the content that I edit with TinyMCE to look as close to the final product as possible.

Say for example I want put white text on my colored background. By default TinyMCE has a white background, which ensures the text isn't viewable when the page is opened by TinyMCE, which makes editing a pain to say the least. What TinyMCE should do is to use the same background color (in this case blue) as the default page does, but I'm not sure how to do this.

Any ideas on how I can change TinyMCE's default background color?

How i can change logo disposition? And add image backgroung to blocks?

Hello
I use this theme B7 http://drupal.org/node/49946
I need place logo to the centre, and add image backgroung to blocks.
How i can do this?
Thanks.

My page.tpl:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


print $head_title

print $head
print $styles

print theme("onload_attribute");
>

if (is_array($primary_links) && count($primary_links) != 0) :
    foreach ($primary_links as $link):
  • print $link
  • endforeach;

endif;
if (is_array($secondary_links) && count($secondary_links) != 0) :

    foreach ($secondary_links as $link):
  • print $link
  • endforeach;

endif;

if($header) :

endif;

if ($sidebar_left != ""):

endif;

print $layout ">
if ($title != ""):

print $title

endif;
if ($tabs != ""):
print $tabs
endif;
if ($mission != ""):

print $mission

Pages

Subscribe with RSS Subscribe to RSS - Theme development