Themes & Theming
Browserweiche für Opera 10
Eingetragen von Druide (9) am 06.10.2011 - 09:29 Uhr inHallo,
ich möchte der 'template.php' eine Browserweiche für Opera 10 hinzufügen. Für den Internet Explorer 8 habe ich das hinbekommen aber für Opera 10 scheint es nicht zu funktionieren.
IE8
drupal_add_css(path_to_theme() . '/css/ie8.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'IE 8', '!IE' => FALSE), 'preprocess' => FALSE));
Opera 10
[gelöst] Pixture Reloaded 7.x-2.1 - Bild im Header-Bereich des Themes einbinden
Eingetragen von eio (20) am 06.10.2011 - 08:15 Uhr inHallo zusammen,
beschäftige mich seit einiger Zeit immer mal mit Drupal. Bin nun aber ernsthaft dran, für eine Stadtinitiative eine Webseite zu erstellen und will dies erstmals mit Drupal umsetzen.
["gelöst"] "content" Region unterhalb des Inhalts
Eingetragen von interkomm (87) am 05.10.2011 - 11:52 Uhr inHallo,
bei dem Versuch einen Block in den Content-Bereich, also unterhalb des Titels und überhalb der Terms meines Fusion-Themes zu platzieren, fiel mir auf, dass sowohl content, also auch content_bottom unterhalb des Inhalts erscheint. Nun stellt sich mir die Frage, ob das so gewollt ist und vor allem, ob und wie ich es in meinem Sinne ändern kann.
[gelöst] js_injection funktioniert nicht
Eingetragen von albert39 (384) am 04.10.2011 - 20:18 Uhr inIch übe mich gerade im richtigen Einfügen von JavaScript. Dazu habe ich von http://d4nza.de/blog/tutorials/jquery-tutorial-1 ein einfaches Script herauskopiert:
$(document).ready(function(){
/*Box klein machen*/
$('a#klein').click(function(){
theme_menu_overview_form()
Eingetragen von drupalino (1064) am 04.10.2011 - 19:56 Uhr inHallo liebe Gemeinde,
so langsam verzweifel ich.
Ich versuche theme_menu_overview_form() in template.php zu überschreiben garland_menu_overview_form() . Leider bekomme ich Drupal nicht dazu bewegt diese Funktion aus der template.php zu nutzen.
Habe auch schon ausprobiert eine andere zu themen, bsp theme_link(), diese kann ich problemlos nutzen.
- Anmelden oder Registrieren um Kommentare zu schreiben
- Weiterlesen
[gelöst] Hintergrundbild neben nodes floaten
Eingetragen von Lea2 (7) am 03.10.2011 - 12:12 Uhr inHallo,
ich würde gerne auf meiner Titelseite (http://www.luxellent.com/drupal-7.8-DE/) ein Bild rechts neben die nodes stellen, das umflossen wird.
Hab ins div id="main-content" folgendes reingestellt:
<?php if ($is_front) : ?>
<img style=" float: right; top: 200px; z-index: 10;" src="sites/neueseite/files/Tanz_AboutUs_new.png" alt="">
<?php endif; ?>Das stellt dann das Bild rechts neben den ersten node und umfließt ganz brav - nur ab der Linie nach unten wird nix mehr umflossen... Wie kann ich das lösen???
Hier der ganze Code vom div "main-content"
<a id="main-content"></a>
<?php if ($is_front) : ?>
<img style=" float: right; top: 200px; z-index: 10;" src="sites/neueseite/files/Tanz_AboutUs_new.png" alt="">
<?php endif; ?>
<?php if ($page['content_top']) : ?><div class="content-top"><?php print render ($page['content_top']); ?></div>
<?php endif; ?>
<?php if (!$is_front) print $breadcrumb; ?>
<?php if ($show_messages) { print $messages; }; ?>
<?php print render($title_prefix); ?>
<?php if ($title): ?>
<h1 class="title" id="page-title">
<?php print $title; ?>
</h1>
<?php endif; ?>
<?php print render($title_suffix); ?>
<?php if ($tabs): ?>
<div class="tabs">
<?php print render($tabs); ?>
</div>
<?php endif; ?>
<?php print render($page['help']); ?>
<?php if ($action_links): ?>
<ul class="action-links">
<?php print render($action_links); ?>
</ul>
<?php endif; ?>
<?php if ($page['content']) : ?><div class="content-middle"><?php print render ($page['content']); ?></div>
<?php endif; ?>
<?php if ($page['content_bottom']) : ?><div class="content-bottom"><?php print render ($page['content_bottom']); ?></div>
<?php endif; ?>
</div> <!-- end content -->Danke, Lea
[gelöst] 2-Click Facebook-Share Button als Feld einrichten
Eingetragen von interkomm (87) am 03.10.2011 - 10:32 Uhr inHallo,
UrbanSolice
Eingetragen von joemc26 (2) am 30.09.2011 - 17:50 Uhr inHallo Gemeinde
Ich bin absoluter Anfänger in Sachen Drupal. Ich habe eine saubere unangetastete 7.8 Installation. So sagen es die Logfile.
node-product.tpl.php Pfad statt Produktbild?
Eingetragen von superduberdrup (5) am 30.09.2011 - 11:26 Uhr inHallo ihr Lieben,
Benutze seit einigen Wochen Drupal, kenne mich also oberflächlich aus.
Derzeit bin ich dabei, meinen Ubercartshop zu konfigurieren, und habe deshalb diesen Code als meine node-product.tpl.php:
<div class="node-<?php print $node->nid; ?><?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
<?php if ($picture) {
print $picture;
}?>
<?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
<div class="content">
<table cellpadding="0" cellspacing="0" class="product">
<tr>
<td align="center" class="product_image">
<?php
// Grabs the firsts image path and sets $imagePath.
$imagePath = $node->field_image_cache['0']['filepath'];
?>
<br /><?php print l(
theme('imagecache', 'product', $field_image_cache[0]['filepath'], $field_image_cache[0]['alt'], $field_image_cache[0]['title']),
$field_image_cache[0]['filepath'],
array('class' => 'thickbox'), NULL, NULL, FALSE, TRUE); ?>
</td>
<td class="product_info">
<div id="node">
<?php // product title ?>
<p class="product-title"><?php print $title ?></p>
<p class="product-titles">Product Details</p>
<?php print $node->content['weight']["#value"]; ?>
<?php print $node->content['dimensions']["#value"]; ?>
<p class="product-titles">Product Rating</p>
<?php print $node->content["fivestar_widget"]["#value"]; ?>
<p class="product-titles">Product Reviews:</p>
Product Reviews <?php print $node->comment_count; ?> | <a href="/<?php print $node->links['comment_add']['href']; ?>#comment-form">Review Product</a> | <a href="#read_reviews">Read Reviews</a>
</div>
<br />
<div id="cartContainer">
<div id="cartAdd">
<?php // add to cart buttons ?>
<?php print $node->content['add_to_cart']["#value"]; ?>
</div>
<div id="cartPrice">
<?php // list price and sell price display ?>
<p class="product-titles">PNW Everyday Low Price</p>
<p id="productPrices" class="productGeneral"><?php print uc_currency_format($node->sell_price); ?></p>
</div>
<div id="spacer"><!-- nothing --></div>
</div>
</td>
</tr>
</table>
<hr />
<?php print $productupsell ?>
<br />
<p class="product-titles">Description:</p>
<?php // product description ?>
<?php print $node->content['body']['#value']; ?>
<br />
<a href="/<?php print $node->links['comment_add']['href']; ?>#comment-form" name="read_reviews">Review Product</a>
</div>
<?php if ($links) { ?><div class="links">» <?php print $links?></div><?php }; ?>
</div>von hier: http://www.ubercart.org/forum/development/3868/nifty_products_tutorial_p...
Jedoch bekomme ich dann bei meiner Produktansicht immer den Link:
img src = http://meineseite.de/sites/default/files/imagecache/product/apfel.jpg" alt ="" title="" class="imagecache imagecache-product" width="100" height="93"
angezeigt.
Wenn ich darauf klicke, komme ich zum Bild.
Ich habe mit imagecache 2 Presets, einen für das Hauptbild, und einen für die Thumbs erstellt.
Wie bekomme ich die Bilder anstatt dem Pfad angezeigt? Ich hoffe mir kann jemand helfen.
mit freundlichen Grüße,
Hans
iPhone und iPad kompatibles Theme gesucht
Eingetragen von batman1983 (189) am 30.09.2011 - 09:45 Uhr inHallo zusammen,

Neue Kommentare
vor 1 Woche 5 Tagen
vor 1 Woche 5 Tagen
vor 1 Woche 6 Tagen
vor 2 Wochen 3 Tagen
vor 2 Wochen 4 Tagen
vor 3 Wochen 1 Tag
vor 3 Wochen 1 Tag
vor 3 Wochen 1 Tag
vor 5 Wochen 4 Tagen
vor 5 Wochen 5 Tagen