How to use mailto component ?

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
stepson
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sat Nov 08, 2008 9:19 am

How to use mailto component ?

Postby stepson » Wed Jun 22, 2011 3:53 pm

I want to add a "suggest to your friend link" in a few pages of my component, like we can see it on articles.

how to do this ? i do not find documentation about the mailto component usage.
how to create in my component the button that will popup the "suggest to your friend" link ?

stepson
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sat Nov 08, 2008 9:19 am

Re: How to use mailto component ?

Postby stepson » Wed Jun 22, 2011 5:24 pm

i look at the code in com_content .... article/views/tmpl/default.php

there is this part of the code :

<?php if ($params->get('show_email_icon')) : ?>
<li class="email-icon">
<?php echo JHtml::_('icon.email', $this->item, $params); ?>
</li>
<?php endif; ?>

but a lot of things have to be done before I think as if i add it in my own default.php in my component it does not work.
it seems that i need to create an helper folder and copy there icon.php, and that i need to instantiate item and params in my view.html.php file too...

does some of you knows a simple tutorial on this ?

stepson
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sat Nov 08, 2008 9:19 am

Re: How to use mailto component ?

Postby stepson » Fri Jun 24, 2011 8:52 am

no idea anybody ?

how to insert a link to com_mailto on its own page like it is done on the articles ?

i have seen how to generate the code with the onclik=openwindow..., but I do not see how to generate the link reference that is used in the parameters.

any idea ?


Return to “General Questions/New to Joomla! 2.5”

Who is online

Users browsing this forum: No registered users and 6 guests