Csak a szülő kifejezések listázássa
Sziasztok!
Sikerült megoldani a Felfedett szűrés szótár alapján, köszönöm a segítséget! A megoldást végül a Hierarchical Select modul jelentette.
Próbáljad ki amit aboros írt!
1) - book-navigation.tpl.php
http://api.drupal.org/api/drupal/modules--book--book-navigation.tpl.php/...
Ctrl+C / Ctrl+V
book-navigation.tpl.php
Másoljad elé:
A)
Ha a share modul "fent" van(http://drupal.org/project/facebookshare) Beállításoknál nem kell megadnod a tartalom típusodat, majd mi kitesszük:
<?php $url = url('node/' . $object->nid, array('absolute' => TRUE)); print theme('facebookshare', $url); ?>
Más tartalom típusnál:
a node.tpl.php -ba a <?php print $links; ?>
linkek felé/fölé
<?php if ($node->type != 'mynode' && !$teaser): ?> <?php $url = url('node/' . $object->nid, array('absolute' => TRUE)); print theme('facebookshare', $url); ?> <?php endif; ?> <br/>
B)
A blokkos megoldás
blokkot létrehozol, belepötyögöd amit szeretnél(http://developers.facebook.com/docs/plugins/)
most pedig ezt másold elé:
<?php $block = module_invoke('block', 'block', 'view', 'myblockid'); print $block['content']; ?>
A többi tartalomtípusnál:
a node.tpl.php -ba a <?php print $links; ?>
linkek felé/fölé
<?php if ($node->type != 'mynode' && !$teaser): ?> <?php $block = module_invoke('block', 'block', 'view', 'myblockid'); print $block['content']; ?> <?php endif; ?> <br/>
2) - preprocess
A)
A mytheme könyvtára(valahogy így néz ki a könyvtárszerkezeted, vagy nem)
//css fájlok [images] //képek [templates] //page.tpl.php, node.tpl.php stb... mytheme.info // szokásos + base theme = koi - a te esetedben template.php //nincs semmilyen almappában ahogyan pp írta (adjuk a tartalmainkhoz a blokkot amiben a facebookos dolgaink vannak.) [geshifilter-code] function mytheme_preprocess_node(&$vars) { if ($vars['page'] == TRUE && $vars['teaser'] == NULL ) { $adblock = module_invoke('block', 'block', 'view', myblockid); $vars['content'] = '<div class="social">' . $vars['content'] .= '' . $adblock['content'] . '</div>' ; } } [/geshifilter-code] mynode, myblockid - értelemszerűen! Minden tartalomtípusban megjelenik .Meg ugye bár csak teljes nézetben! Így a blokkod a node tartalma és a kommentek között lesz. Ez a legszebb megoldás. (Viszont így a blokk és tartalma, a könyv típusú tartalomnál a lapozó alatt fog megjelenni.) B)Ha a lapozó felett akarod: [geshifilter-code] function mytheme_preprocess_node(&$vars) { if ($vars['node']->type != 'mynode' && $vars['page'] == TRUE && $vars['teaser'] == NULL ) { $adblock = module_invoke('block', 'block', 'view', myblockid); $vars['content'] = '<div class="social">' . $vars['content'] .= '' . $adblock['content'] . '</div>' ; } } [/geshifilter-code] (kihagytuk a könyv típusú tartalmadat ami a mynode) book-navigation.tpl.php belepakolod a blokkot ahogyan az első részben és kész is. gyorstár
Sziasztok!
Sikerült megoldani a Felfedett szűrés szótár alapján, köszönöm a segítséget! A megoldást végül a Hierarchical Select modul jelentette.
Üdv, mindenkinek!
Te is 6.1-es fordítást telepítettél? Mert szerintem ez nagyobb, mint az előzőek és éppen néhány bájttal lépi át a limitet.
Én most kibővítettem a fordítószkriptet, minden modult egyesével szed be. A fordítási fájlokat a gyökérbe egy hu könyvtárba kell rakni és úgy futtatni a kódot a gyökérből. A po fájlok meglétét/nem létét nem nézi!!
Ez picit hosszú, de úgy látom nem lehet fájlt feltölteni.
include_once 'includes/bootstrap.inc'; include_once 'includes/common.inc'; include_once 'includes/locale.inc'; $file = (object) array('filepath' => 'hu/aggregator-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/archive-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/block-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/blogapi-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/blog-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/book-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/comment-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/common-inc.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/contact-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/drupal-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/file-inc.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/filter-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/forum-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/general.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/locale-inc.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/locale-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/menu-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/node-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/path-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/poll-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/profile-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/queue-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/search-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/statistics-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/system-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/taxonomy-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/throttle-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/upload-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/user-module.po'); _locale_import_po($file, 'hu', 'overwrite'); $file = (object) array('filepath' => 'hu/watchdog-module.po'); _locale_import_po($file, 'hu', 'overwrite'); header('Location: index.php'); exit();
akkor válaszolok magamnak
A saját megoldásaom a saját kérdésemre nem tökéletes még és biztos lehet és kellene finomítani, de működik :-)
A valid timestamp-ek adja vissza amivel egy select inputot simán felehet paraméterezni és az adatbázisban is kényelmesebb a tárolása.