PDF, Print and Email button within a Image Gallery

Locked
BlueGemini
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Feb 05, 2009 11:09 am

PDF, Print and Email button within a Image Gallery

Post by BlueGemini » Wed Jun 29, 2011 5:19 am

Is there any way to put a PDF, Print and Email button within the certain Image Gallery plugin? So whenever an image is viewed, those 3 buttons is also there to use?

User avatar
tiosus
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 212
Joined: Wed Sep 16, 2009 9:03 am
Location: Iran
Contact:

Re: PDF, Print and Email button within a Image Gallery

Post by tiosus » Wed Jun 29, 2011 5:23 am

what kind of gallery ?
please tell me your gallery name!
http://www.azolfagharj.ir ,
Creat and translate RTL Support (Farsi/Persian - Arabic) Joomla Templates and Extentions in Middle East.

BlueGemini
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Feb 05, 2009 11:09 am

Re: PDF, Print and Email button within a Image Gallery

Post by BlueGemini » Wed Jun 29, 2011 5:28 am

BlueGemini wrote:Is there any way to put a PDF, Print and Email button within the certain Image Gallery plugin? So whenever an image is viewed, those 3 buttons is also there to use?
I'm currently using the sigplus Image Gallery. So far, in reading its documentation, there's no parameters on putting PDF, Print and Email button but I'm still wondering there's a way to customize it... any ideas?

Thanks in advance,

User avatar
guilliam
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4181
Joined: Thu Aug 18, 2005 10:27 am
Location: Sunny City Cebu, Philippines!
Contact:

Re: PDF, Print and Email button within a Image Gallery

Post by guilliam » Wed Jun 29, 2011 6:33 am

you need to hard code the pdf buttons on the sigplus gallery's template
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.

http://www.joomlaconsultancy.net

BlueGemini
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Feb 05, 2009 11:09 am

Re: PDF, Print and Email button within a Image Gallery

Post by BlueGemini » Wed Jun 29, 2011 7:10 am

guilliam wrote:you need to hard code the pdf buttons on the sigplus gallery's template
Yes. That's what I also thought is the only way. I may try do that but my problem now is the code I need for the PDF, Print and Email button. I have no idea on this... do you have any, if ever?

User avatar
guilliam
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4181
Joined: Thu Aug 18, 2005 10:27 am
Location: Sunny City Cebu, Philippines!
Contact:

Re: PDF, Print and Email button within a Image Gallery

Post by guilliam » Wed Jun 29, 2011 12:52 pm

BlueGemini wrote:
guilliam wrote:you need to hard code the pdf buttons on the sigplus gallery's template
Yes. That's what I also thought is the only way. I may try do that but my problem now is the code I need for the PDF, Print and Email button. I have no idea on this... do you have any, if ever?

the php code to insert in the template looks something like this:

Code: Select all

	<?php if (!$this->print) : ?>
		<?php if ($this->params->get('show_pdf_icon')) : ?>
		<td align="right" width="100%" class="buttonheading">
		<?php echo JHTML::_('icon.pdf',  $this->article, $this->params, $this->access); ?>
		</td>
		<?php endif; ?>

		<?php if ( $this->params->get( 'show_print_icon' )) : ?>
		<td align="right" width="100%" class="buttonheading">
		<?php echo JHTML::_('icon.print_popup',  $this->article, $this->params, $this->access); ?>
		</td>
		<?php endif; ?>

		<?php if ($this->params->get('show_email_icon')) : ?>
		<td align="right" width="100%" class="buttonheading">
		<?php echo JHTML::_('icon.email',  $this->article, $this->params, $this->access); ?>
		</td>
		<?php endif; ?>


	<?php else : ?>
		<td align="right" width="100%" class="buttonheading">
		<?php echo JHTML::_('icon.print_screen',  $this->article, $this->params, $this->access); ?>
		</td>
so basically you insert the buttons in this manner:

Code: Select all

echo JHTML::_('icon.pdf',  $this->article, $this->params, $this->access
- g
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.

http://www.joomlaconsultancy.net


Locked

Return to “International Support Center”