views:

13086

answers:

6

More specifically I am trying to make the mailto component show within my template; the same way as an article does.

By default the mailto component opens in a new window. So far I changed the code so it opens on the same window, but that way the whole template is gone.

Any suggestions?

A: 

You could make a new menu item with the type "External Link" and enter the link as

index.php?option=com_mailto&view=mailto&link=aHR0cDovL2xvY2FsaG9zdC9qb29tbGEv

Where the link parameter is the link you want to be mailed, base64-encoded.

Kristian J.
A: 

I'm afraid I can't entirely follow your question - do you want to have a sign up form for membership or email notifications shown as an article? If so, then the easiest way is to install 'm2c' - the 'module to component' component. Then you can put any module (ie the sign up box) in the centre content area.

The m2c component can be found here: http://joomla.focalizaisso.com.br/en/componentes/index.php

julz
+1  A: 

In the template there is a tag which takes the contents of a component. An article is a com_content component. you are trying to put in a caom_mail_to component? The beauty is that they both plug into the same slot.

Now you can only ever have one component on a page. you can have lots of modules, but only one component.

you set which component is on a page by choosing it from the menu comands. (each menu item refers to a component.) generaly the componetsn are of the com_content type, and are articles, but in your case you are wanting to add a component called com_mailto? Asuming the component is installed, all you have to do is select the new butto0n when in menu item manager, and then select the mailto component type.

the tag that is being used in a joomla 1.5 template is:

<jdoc:include type="component" />

If on the other hand you are trying to add a module to the template, that is a different kettle of fish. Youy need to create an instance of teh module, assign it to a tag (which exiusts in teh template) then select which menu items the module will be published on. The tag in a template for a module is like:

<jdoc:include type="modules" name="module_name_place_holder" />

you can put more than one module into a single place holder.

If you already have this basic knowlge, pass on the details of this component, and we will see if we cant find you a better solution.

Bingy
+1  A: 

use "component as content" plugin

http://extensions.joomla.org/extensions/core-enhancements/embed-&amp;-include/5947/details

A: 

I agree with Omar. I've used "ComAsCon", and it works very well, I recommend it, however I have to say that I do not like the iframe tag added by this plugin, but you can use it for many components and it will work ok.

robregonm
A: 

Nice tutorial, i have found a wonderful site, which create your website at free of cost. http://www.thehostingindia.com/website.php.

yarnel