how can i change the link title "Add comment" for Reply, but only for forum and blog posts?? must be with theme() ??? thanks in advanced -- ---------------------- Aldo Martinez Selleras Especialista en Telematica CITMATEL GND Camaguey Tel: 53 32 291661 Linux User #364356
Quoting Aldo Martinez Selleras <aldo@caonao.cu>:
how can i change the link title "Add comment" for Reply, but only for forum and blog posts??
http://api.drupal.org/api/function/hook_form_alter -- Earnie http://r-feed.com Make a Drupal difference and review core patches. -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
On Mon, Feb 23, 2009 at 12:03 PM, Earnie Boyd <earnie@users.sourceforge.net> wrote:
Quoting Aldo Martinez Selleras <aldo@caonao.cu>:
how can i change the link title "Add comment" for Reply, but only for forum and blog posts??
Actually I think the correct choice would be hook_link_alter(): http://api.drupal.org/api/function/hook_link_alter/6
Quoting andrew morton <drewish@katherinehouse.com>:
On Mon, Feb 23, 2009 at 12:03 PM, Earnie Boyd <earnie@users.sourceforge.net> wrote:
Quoting Aldo Martinez Selleras <aldo@caonao.cu>:
how can i change the link title "Add comment" for Reply, but only for forum and blog posts??
Actually I think the correct choice would be hook_link_alter(): http://api.drupal.org/api/function/hook_link_alter/6
Will that change the #value of the submit button? -- Earnie http://r-feed.com Make a Drupal difference and review core patches. -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
On Mon, Feb 23, 2009 at 1:11 PM, Earnie Boyd <earnie@users.sourceforge.net> wrote:
Quoting andrew morton <drewish@katherinehouse.com>:
On Mon, Feb 23, 2009 at 12:03 PM, Earnie Boyd <earnie@users.sourceforge.net> wrote:
Quoting Aldo Martinez Selleras <aldo@caonao.cu>:
how can i change the link title "Add comment" for Reply, but only for forum and blog posts??
Actually I think the correct choice would be hook_link_alter(): http://api.drupal.org/api/function/hook_link_alter/6
Will that change the #value of the submit button?
I might have misread his comment. I thought he wanted to change the links at the bottom of the nodes rather than the button labels. If it was the later than you'd be correct. andrew
yes, i just want to change the links at the bottom of the nodes, but only for forum and blog content type, and i think the hook_link_alter it's the better option... i'm studing the hook for later apply but, i have a question, can't i change the title value from custom forum template ?? i mean, from tpl.php file, i can't do that? -- ---------------------- Aldo Martinez Selleras Especialista en Telematica CITMATEL GND Camaguey Tel: 53 32 291661 Linux User #364356
Yes you can change the title of the node from your template file (the final view of your node is generated in the template file). Cheers 2009/2/24 Aldo Martinez Selleras <aldo@caonao.cu>
yes, i just want to change the links at the bottom of the nodes, but only for forum and blog content type, and i think the hook_link_alter it's the better option... i'm studing the hook for later apply
but, i have a question, can't i change the title value from custom forum template ?? i mean, from tpl.php file, i can't do that?
-- ---------------------- Aldo Martinez Selleras Especialista en Telematica CITMATEL GND Camaguey Tel: 53 32 291661 Linux User #364356
-- FOLI-AWLI Mawusee Komla (Sam) http://golchi.blogspot.com/ http://golchitech.blogspot.com/ Le monde en grandissant de jour en jour devient plus petit... ----- Ne m'envoyez pas de fichiers attachés au format Micro$oft (.DOC, .PPT) svp! Merci de lire http://www.gnu.org/philosophy/no-word-attachments.html Mes format préférés : .PDF, ODF, .TXT, ABW Merci d'ajouter ce texte à votre signature.
isn't the title node form value, it the title property from link array what i want to change!!! '#title' => t('Add Comment'), this is in the array in comment.module, but i want in the forum posts that value change and set to t('Reply') -- ---------------------- Aldo Martinez Selleras Especialista en Telematica CITMATEL GND Camaguey Tel: 53 32 291661 Linux User #364356
On Tue, Feb 24, 2009 at 5:19 PM, Aldo Martinez Selleras <aldo@caonao.cu>wrote:
isn't the title node form value, it the title property from link array what i want to change!!!
'#title' => t('Add Comment'),
this is in the array in comment.module, but i want in the forum posts that value change and set to t('Reply')
--
hook_form_alter !!!!! -- Paolo Mainardi Vice Presidente Assoc.ILDN (http://www.ildn.net) Blog: http://www.paolomainardi.com
Please take this conversation to the support list or the forums, it is inappropriate for this list. Thanks.
hello everyone... i have write a custom page where i'll show a custom content generated from the URL vars, but i need add a drupal block inside this code, how can i do this!? <div class="welcome"><h2>Welcome</h2><p><?php print $node->body; ?></p></div> </div> <div class="popular"> HERE I NEED ADD A DRUPAL BLOCK </div> -- ---------------------- Aldo Martinez Selleras Especialista en Telematica CITMATEL GND Camaguey Tel: 53 32 291661 Linux User #364356
On Tue, Mar 10, 2009 at 6:50 PM, Aldo Martinez Selleras <aldo@caonao.cu>wrote:
hello everyone...
i have write a custom page where i'll show a custom content generated from the URL vars, but i need add a drupal block inside this code, how can i do this!?
<div class="welcome"><h2>Welcome</h2><p><?php print $node->body; ?></p></div> </div> <div class="popular">
<?php $block = module_invoke('block', 'block', 'view', YOUR_BLOCK_ID); print $block['content']; ?>
</div>
You can reveal YOUR_BLOCK_ID from the admin block page or inspecting the id of the block output generated. ;) P. -- Paolo Mainardi Vice Presidente Assoc.ILDN (http://www.ildn.net) Blog: http://www.paolomainardi.com
and there some way to know the block_ID ?? please! -- ---------------------- Aldo Martinez Selleras Especialista en Telematica CITMATEL GND Camaguey Tel: 53 32 291661 Linux User #364356
On Tue, Mar 10, 2009 at 7:02 PM, Aldo Martinez Selleras <aldo@caonao.cu>wrote:
and there some way to know the block_ID ?? please!
I'd write some methods to know the block_id.... -- Paolo Mainardi Vice Presidente Assoc.ILDN (http://www.ildn.net) Blog: http://www.paolomainardi.com
Is it a block view? On Tue, Mar 10, 2009 at 11:16 AM, Paolo Mainardi <paolomainardi@gmail.com> wrote:
On Tue, Mar 10, 2009 at 7:02 PM, Aldo Martinez Selleras <aldo@caonao.cu> wrote:
and there some way to know the block_ID ?? please!
I'd write some methods to know the block_id....
-- Paolo Mainardi
Vice Presidente Assoc.ILDN (http://www.ildn.net) Blog: http://www.paolomainardi.com
-- Domenic Santangelo senior engineer | workhabit,inc. // email: domenic@workhabit.com | web: http://www.workhabit.com // office: 866-workhabit | direct: 916-288-8243
On 10-Mar-09, at 2:06 PM, Paolo Mainardi wrote:
<?php $block = module_invoke('block', 'block', 'view', YOUR_BLOCK_ID); print $block['content']; ?>
I would consider creating a new region in your theme instead. Then you can assign and move any block to it through the block admin page as you see fit. Creating a region is pretty simple; I think the Zen theme has a decently documented method of doing it. --Andrew
On Tue, Mar 10, 2009 at 7:41 PM, Andrew Berry <andrewberry@sentex.net>wrote:
On 10-Mar-09, at 2:06 PM, Paolo Mainardi wrote:
<?php
$block = module_invoke('block', 'block', 'view', YOUR_BLOCK_ID); print $block['content']; ?>
I would consider creating a new region in your theme instead. Then you can assign and move any block to it through the block admin page as you see fit. Creating a region is pretty simple; I think the Zen theme has a decently documented method of doing it.
Yes clear, the region it's the standard way :) This is the "raw" mode to call directly a block. -- Paolo Mainardi Vice Presidente Assoc.ILDN (http://www.ildn.net) Blog: http://www.paolomainardi.com
I think the better way of doing this is to pass regions to the node template. Not sure where this is documented, but if you check the phptemplate section under regions you're bound to find something about it. On Tue, Mar 10, 2009 at 11:32 PM, Paolo Mainardi <paolomainardi@gmail.com>wrote:
On Tue, Mar 10, 2009 at 7:41 PM, Andrew Berry <andrewberry@sentex.net>wrote:
On 10-Mar-09, at 2:06 PM, Paolo Mainardi wrote:
<?php
$block = module_invoke('block', 'block', 'view', YOUR_BLOCK_ID); print $block['content']; ?>
I would consider creating a new region in your theme instead. Then you can assign and move any block to it through the block admin page as you see fit. Creating a region is pretty simple; I think the Zen theme has a decently documented method of doing it.
Yes clear, the region it's the standard way :) This is the "raw" mode to call directly a block.
-- Paolo Mainardi
Vice Presidente Assoc.ILDN (http://www.ildn.net) Blog: http://www.paolomainardi.com
-- Ashraf Amayreh http://aamayreh.org
participants (9)
-
Aldo Martinez Selleras -
Andrew Berry -
andrew morton -
Ashraf Amayreh -
Domenic Santangelo -
Earl Miles -
Earnie Boyd -
Paolo Mainardi -
Sam Golchi FOLI-AWLI