Theme Search Box

I am trying to change the submit button to an image of a magnifying glass. How do I do this in Drupal 7? I found a post on how to in Drupal 6, but not 7.

I looked in search-block-form.tpl.php and did not see the input code for the button. Please point me in the right direction where to do this please.

Is there a better way to apply styles to output of $tabs?

I'd like to be able to style the administrative tabs that are produced with render($tabs) but there are no styles or IDs applied to either the <li> or <a> tags. Here's what I've come up with in my page.tp.php, but I have a feeling that there is a more Drupal-friendly, less ghetto method. Any ideas?

bread crumbs for views

I am working out a solution for a multiple blog site and am finding I need top use views. I am having much difficulties here.

1. when on my first view called homme the breadcrumbs are not updated it still just says "home >" as if it is still on the homepage. When I click a post the breadcrumbs update to "Home › Blogs › admin's blog › ". This will not work for us. I need it to say Home > Homme > Name of Article, basically what you would expect when going to a blog site or post. Can I get the view to act like a blog?

2. I am still trying to figure out how to filter the view. here are some ideas:

- creating a blog type (radio button) in the Blog content type to choose 1.homme, 2.femme (the two blogs)
This when filtered just filters the same results for both blogs. When filtering I can only specify the field_blog_type not the sub result of clicking the radion button.

- creating two content types, one for each blog and filtering by them. Which I can imagine will work but from the back-end kind of messy. I would rather just use the single blog content type and be able to filter the posts.

- Someone had mentioned something about taxonomy as a way to filter but I haven't tried it yet. Not familiar with taxonomy at all so going in blind there.

Which is the best direction or if you have a better solution please let me know?

Allowing Users to share documents

Hello Everyone,

Problem

I am looking for a way to allow users of my Drupal 7 site to upload certain documents and then share these with other users. By default, the documents need to be private and unviewable by everyone, but at the owner's discretion, they may add users to a whitelist.

views 3 upgrade - Relations - SQL ERROR - Column not found: 1054 Unknown column - HUH ???

Clues anyone?

I've just (2011/12/20) upgraded to the current version of Views.

ALL the relations are failing and all are returning errors of the form:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_data_field_MYFIELDNAME.nid' in 'on clause'

When I look in the database the table field_data_field_MYFIELDNAME contains a field called MYFIELDNAME_nid but no field called nid.

Save vocabulary term as a child of a term from other vocabulary

Hello everyone!
I'm running a website which is a database of restaurants. I'm saving City and Country as a taxonomy terms (from two vocabularies: Cities and Terms).

I was wondering - is there any option to save a City term as a child element of Country term provided in Country field ?
i was thinking about using Advanced settings for hierarchical vocabularies -> Advanced php code in City CCK Field settings but i have no idea how to use that field and i can't find any info about it.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x