This forum is for assistance with theme development.

do not need the Readmore option

I want the node can be show all content in the taxonomy, do not want to see the "Readmore" text below the node.
Can I do that?

Thanks

How to disappear the all Author information at taxonomy?

I found a modules which can disappear the author information, date post... of all nodes. But those information still appear in the taxonomy. How I can dissappear it? Thanks

Please help! Viewing all available fieldnames in $node

Hi all,

Awhile back I did a tiny bit of theming research in drupal.
I struggled with it until I stumbled upon a snippet of php which would display a 'dump' of the structure of each node as it got called by node_load. I was using this as a frame of reference as I themed each bit.

I'm picking it back up and can't for the life of me figure out how I was doing this.

I remember it was a one line bit, something ridiculously simple I just can't recall the command and googling for anything dealing with node in the context of drupal is useless.

Select list: I need list entries with commas

I added a customized country select list to my profile page.
Countries are mostly written like 'Germany' or 'United Kingdom', but there are some, like 'Brazil, Federative Republic of', so it can be found under 'B'.

I have entered all countries into the text field, each on a single row. Drupal splits this data on every row AND on every comma.

I want

Burundi, Republic of
Cambodia, Kingdom of
Cameroon, United Republic of

but I get

Burundi
Republic of
Cambodia
Kingdom of
Cameroon
United Republic of

How can I change this behaviour? Yes, I know, but using some other symbols instead of a comma is the last option.

Thanks

Theme problem

My guess is that I am doing something incredibly dumb but I am stomped and hope someone can point out my mistake.

I am adapting a template to Drupal. I created a new search-box.tpl.php:

<div><div id="search" class="container-inline"><div class="form-item">
<input type="text" maxlength="128" class="my_form-text" name="edit[keys]" id="edit-keys" size="15" value="Search" onClick="value=''" onBlur="value='Search'" alt="Enter the terms you wish to search for." />
</div>
<input type="submit" class="my_form-submit" name="op" value="GO" />
<input type="hidden" name="edit[form_id]" value="search_box" />
</div>
</div></form>

Added:

function phptemplate_search_theme_form($form) {
  return _phptemplate_callback('search-box', array('form' => $form));
}

to the template.php file.

Added $search_box to page.tpl.php as follows:

  <div id="main_content_area">

    <?php if ($sidebar_left) { ?><div id="left_side">
      <?php print $search_box ?>
      <?php print $sidebar_left ?>
    </div><?php } ?>

    <?php if ($sidebar_right) { ?><div id="right_side">
      <?php print $search_box ?>
      <?php print $sidebar_right ?>
    </div><?php } ?>

    <div id="content">
      <?php print $search_box ?>
      <?php print $content; ?>
    </div>

  </div>  <!-- END MAIN CONTENT -->

I inserted the $search_box variable in each section of the template to see if I get a search box. My search box appears in all the sections except for the right sidebar where I get nothing. What next?

Theme developer needed

Looking for someone experienced with Drupal theme development to build a theme based on our original site for Drupal. Please email me at xx666xx "at" gmail.com.

Thanks,
J

Pages

Subscribe with RSS Subscribe to RSS - Theme development