What is the similiar Joomla-Mambot in Drupal?
I want to extend blogger.module with blogheader feature. What do I need is something like mambot in Joomla. The mambot can add on before/after a page. So, when use click on http://localhost/drupal/blog/2 then the Blogheader (this is a new field on the user profiles) will be displayed on the top of this blog page. I need any doc or link that can help me doing this task in Drupal. Better if oen can show me any Drupal module that work like mambot. Regards.
On 10/11/06, Drupal Indonesia <support@drupal-id.com> wrote:
I want to extend blogger.module with blogheader feature. What do I need is something like mambot in Joomla. The mambot can add on before/after a page. So, when use click on http://localhost/drupal/blog/2 then the Blogheader (this is a new field on the user profiles) will be displayed on the top of this blog page.
I need any doc or link that can help me doing this task in Drupal. Better if oen can show me any Drupal module that work like mambot.
A Mambot is a "small, task-oriented function for Joomla! software. Joomla! mambot intercepts content and manipulates it in some way before it's displayed. Joomla! provides a number of Mambots in the core distribution." Therefore, there are many ways in Drupal to do these things: - hook_init() http://api.drupal.org/api/4.7/function/hook_init - hook_footer() http://api.drupal.org/api/4.7/function/hook_footer - Conditional PHP in page.tpl.php
----- Original Message ----- From: "Khalid B" <kb@2bits.com> To: <development@drupal.org> Sent: Thursday, October 12, 2006 10:21 AM Subject: Re: [development] What is the similiar Joomla-Mambot in Drupal?
On 10/11/06, Drupal Indonesia <support@drupal-id.com> wrote:
I want to extend blogger.module with blogheader feature. What do I need is something like mambot in Joomla. The mambot can add on before/after a page. So, when use click on http://localhost/drupal/blog/2 then the Blogheader (this is a new field on the user profiles) will be displayed on the top of this blog page.
I need any doc or link that can help me doing this task in Drupal. Better if oen can show me any Drupal module that work like mambot.
A Mambot is a "small, task-oriented function for Joomla! software. Joomla! mambot intercepts content and manipulates it in some way before it's displayed. Joomla! provides a number of Mambots in the core distribution."
Therefore, there are many ways in Drupal to do these things:
- hook_init() http://api.drupal.org/api/4.7/function/hook_init
- hook_footer() http://api.drupal.org/api/4.7/function/hook_footer
- Conditional PHP in page.tpl.php
As a new dev I am searching almost all module that works like mambot. Unfortunately, Drupal module page has no classification/category, thus difficult for me to pick the right one. Could you help me point to any sample module that works like mambot? also, the hook_init() http://api.drupal.org/api/4.7/function/hook_init contain too small info for a new dev like me. Regards.
i can simplify this a little - The filters tend to be more in line with the general function of a mambot. http://drupal.org/project/Modules/category/63/ see the link - it should help to make sense of this question a bit more. Drupal Indonesia wrote:
----- Original Message ----- From: "Khalid B" <kb@2bits.com> To: <development@drupal.org> Sent: Thursday, October 12, 2006 10:21 AM Subject: Re: [development] What is the similiar Joomla-Mambot in Drupal?
On 10/11/06, Drupal Indonesia <support@drupal-id.com> wrote:
I want to extend blogger.module with blogheader feature. What do I need is something like mambot in Joomla. The mambot can add on before/after a page. So, when use click on http://localhost/drupal/blog/2 then the Blogheader (this is a new field on the user profiles) will be displayed on the top of this blog page.
I need any doc or link that can help me doing this task in Drupal. Better if oen can show me any Drupal module that work like mambot.
A Mambot is a "small, task-oriented function for Joomla! software. Joomla! mambot intercepts content and manipulates it in some way before it's displayed. Joomla! provides a number of Mambots in the core distribution."
Therefore, there are many ways in Drupal to do these things:
- hook_init() http://api.drupal.org/api/4.7/function/hook_init
- hook_footer() http://api.drupal.org/api/4.7/function/hook_footer
- Conditional PHP in page.tpl.php
As a new dev I am searching almost all module that works like mambot. Unfortunately, Drupal module page has no classification/category, thus difficult for me to pick the right one. Could you help me point to any sample module that works like mambot? also, the hook_init() http://api.drupal.org/api/4.7/function/hook_init contain too small info for a new dev like me. Regards.
-- Dan Horning - danhorning.com American Digital Services - americandigitalservices.com Where you are only limited by imagination. 1-866-493-4218 (direct) / 1-800-863-3854 (main number)
Op donderdag 12 oktober 2006 04:21, schreef Khalid B:
- hook_init() http://api.drupal.org/api/4.7/function/hook_init
- hook_footer() http://api.drupal.org/api/4.7/function/hook_footer
- Conditional PHP in page.tpl.php
Add 'template' regions and add blocks. Bèr -- | Bèr Kessels | webschuur.com | Drupal, Joomla and Ruby on Rails web development | | Jabber & Google Talk: ber@jabber.webschuur.com | | http://bler.webschuur.com | http://www.webschuur.com |
On Oct 11, 2006, at 10:03 PM, Drupal Indonesia wrote:
I want to extend blogger.module with blogheader feature. What do I need is something like mambot in Joomla. The mambot can add on before/after a page. So, when use click on http://localhost/drupal/blog/2 then the Blogheader (this is a new field on the user profiles) will be displayed on the top of this blog page.
I need any doc or link that can help me doing this task in Drupal. Better if oen can show me any Drupal module that work like mambot.
Hi! I'm guessing that you want to allow users to create a header -- certain text that will always show up at the top of a blog posting. To allow the user to be able to set the header, you want to look at hook_user(). This will allow you to declare an item to be added to the user account screen, which they can then enter their header in. You could, I suppose, also use the profile.module for this, but it would be more general to provide your own interface. Once you've got the data saved somehow, you need to work on displaying it. Someone else suggested using blocks -- this would be implementing hook_block(), having it return a block which displays the header text, and then setting up the block to be at the top of the content for blog pages. If you would rather force all blog posts to have the header text from your module, rather than requiring set up via blocks, you would want to look at hook_nodeapi($op == 'view') (and probably $op == 'load' as well). This will allow you to modify $node->body and add in your data. HTH, Ricky
participants (5)
-
Bèr Kessels -
Dan Horning -
Drupal Indonesia -
Khalid B -
Richard Morse