Conditionals in .tpl.php files

Is it possible to add conditionals inside .tpl.php files? For example, if I put a conditional in field.tpl.php, it will check for the field name which is trying to access it (e.g. 'field_foo'). That way instead of making multiple field--['field_name'].tpl.php files, all I need is just one (field.tpl.php).

Another way you can look at it is "How do I get the name of the page/region/node/field which is trying to access this .tpl.php file?"

Block Transations: "Translations Saved" message, but no translation ...

I'm currently working on translating my site from English to 'many other languages' ... doing Content:Page translations is working great, but when I go to translate a block, it *says* "Translation Saved" after I've done the translation, but my list of languages continues to give a 'Translate' option, vs an 'Edit' option ...

I've checked the database logs, to see if many something was failing to write and I was seeing a transaction rollback, and I checked my apache error log file for anything ... nadda ...

VoteSmart / Factcheck Integration

Hello All -
Looking for an integration with votesmart, factcheck, or similar voting records site. It would be for a single geographic area (state) and searchable by zip/city/name. There are a few modules out there, don't seem to be ported to 7 yet and I have no time to take on. Have not determined a budget yet, I figured I would base that on the responses. Please message me if you are interested. thanks.

Full HTML works in Edit, not once saved

I am currently running both v6 and V7 on two sites, and having the problem in both. Using TinyMCE 3.4.2, I am able to format my text, add my bullets and insert my graphics and hyperlinks. However, when I save my changes, I return to the page view and end up with no graphics, no bullets, and HTML script for my hyperlinks and html tags on my typewriter-esque font. Still a newbie with Drupal, and completely perplexed with this.

Can anyone explain and tell me what I need to do to fix this? Any help would be greatly appreciated.

Premium Drupal 7 themes development

Hello Drupalers,
I am planning to build few Drupal 7 themes, which I plan to sell. My question is that, I read the drupal licensing (http://drupal.org/licensing/faq#q9) which says that I can modify an existing theme and redistribute.
Does that mean I can take this popular theme (http://drupal.org/project/acquia_prosper) and modify and sell?
I want to know if I would be violating any Drupal policies?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x