help me view node content
hi all!
i buid a app with taxonomy
i want view content of a node, then see content of this node and 2 block "Older news" , "More news" show other news in taxo term.
thanks so much!
Read moreSend email when a Node is approved
Hi, Rules Module is a great project and I have been working without any problem with it. Just recently I needed a different use and I can not make it work as I need:
I have some rules and my system sends email when:
1) An anonim user send a comment. It send an email to de Admin and to the comment author. ("after submit a new comment" event)
2) When the Admin approved the comment, send an email to the comment author ("After publishing a comment" event)
Bulk delete nodes by taxonomy term
I'm interested if anyone ever faced the situation when you need to delete all nodes under certain taxonomy term. I haven't found any reasonable solution for this yet. However, I need to massively delete near 10-20k nodes and each of them belongs to some taxonomy term. I think it can easily be done with minimal UI built upon standart Taxonomy module and Batch API.
Any ideas about this?
Read morehow to display Node Terms in block with tree structure in Drupal?
Hey guys,
I just enabled multiple terms for node creation and i just wanna display those mulitple terms as a tree sturctured in a block i tried with the following code
if ( arg(0) == 'node' && is_numeric(arg(1)) ) {
$node = node_load(arg(1));
if (module_exists('taxonomy')) {
$terms = taxonomy_link('taxonomy terms', $node);
print theme('links', $terms, array('class' => 'node-terms'));
} else {
print 'No associated categories.';
}
}
But no luck its just displaying all terms, But i have to display like below
- parent term1
Read more Drupal 7 - Theming node add ?
Mình muốn customize giao diện trang node/add bằng file tpl.php nhưng vẫn chưa làm được.
Tại bài viết này: http://drupal.org/node/1006404#comment-3866658
có 1 hướng dẫn là thêm file theo dạng này:
page--node--add--blog.tpl.php (for blog)
page--node--add--story.tpl.php (for story)
nhưng mình thêm mà vẫn không được.
Bạn nào biết chia sẻ cách làm cho mình với :)
Read moreFält som visas baserat på val av typ
Hej!
Jag har för mig att jag tidigare sett någon diskussion om detta, men kan inte hitta tillbaka till det hela.
Jag vill skapa en innehållstyp. Den ska innehålla ett visst antal parametrar. Däremot finns det vissa variationer som gör att alla fält inte är applicerbara på alla olika "undertyper". Val skall alltså komma fram / försvinna beroende på tidigare val. Jag vet också att det i framtiden kommer att komma nya undertyper.
Read moreInskickning av material på hemsida
Tjosan!
Har en fundering runt mitt nuvarande projekt och behöver lite brainstormning och vänder mig därför hit där alla drupalister hänger.
På hemsidan som just nu håller på och byggs upp behöver jag ett formulär som besökarna kan surfa till och skicka in texter. De fält som behöver finns där är följande: - Rubrik, - Text (textarea), - URL, - Namn, Epostadress.
Hur ska jag på bästa sätt göra ett sådant här formulär så vilken användare som helst kan komma åt dem? Och så att jag kan gå igenom materialet innan det läggs upp på sidan?
Read moreImportera data från annan databas
Hej hopp
Jag står inför ett intressant uppdrag - jag ska se till så att en massiv (hyggligt i alla fall) databas, full med information och referenser kommer in i en installation av Drupal 6. Databasen som ska importeras tillhör inget annat CMS, t ex Wordpress, utan är en relationsdatabas upplagd i MySql enbart.
Jag har redan kollat på Node-Import (http://drupal.org/project/node_import) men den finns dels inte som färdig modul till Drupal 6, men även så tror jag inte att den kommer att klara av jobbet (kan ha fel).
Read moreOP sub-theming difficulty: adding variable for use in node-article.tpl.php
Dear fellow OpenPublish folks,
I am using OP 2.2 and am having difficulty providing my own preprocessor variable to be used in a custom version of node-article.tpl.php that is in a sub-theme of openpublish_theme.
Programatically adding taxonomy term to node
I'm trying to programatically create, and add a term to a node. Here's what I've got so far:
function mymodule_nodeapi(&$node, $op, $teaser, $page) {
if($node->type == 'robot_club') {
switch ($op) {
case 'insert':
// create new taxonomy term
$termname = $node->title;
$term = array(
'vid' => 6, // Voacabulary ID - robot_clubs
'name' => $termname // Term Name
);
if (taxonomy_save_term($term)) {
$newterm = taxonomy_get_term_by_name($termname);
$node->taxonomy = $newterm;
} else {
Read more 



