Page 1 of 1

iProperty Tool Bar

Posted: 28 Oct 2014, 11:24
by ratafia
Hello Everyone !

Trying, well, very hard... to include PDF plugin into iProperty (Real Estate Component).
As I am not a PHP developer, barely an acceptable HTML/CSS one these days... I need your help.

This is the code you get into default_iptoolbar.php

Code: Select all

<?php
defined( '_JEXEC' ) or die( 'Restricted access');
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
JHtml::_('bootstrap.modal');
?>

<ul class="nav nav-tabs ip-actions hidden-tablet hidden-phone pull-right">
    <?php if ($this->ipauth->canEditProp($this->p->id)): ?>           
        <li> <?php echo JHtml::_('icon.edit', $this->p, 'property', true,  array('class'=>'btn hasTooltip')); ?></li>
    <?php endif; ?>
    <?php if ($this->settings->show_print): ?> 
        <li> <?php echo JHtml::_('icon.print_popup', $this->p, array('class'=>'btn hasTooltip'), 820, 480); ?></li>
    <?php endif; ?>
    <?php if ($this->p->price AND $this->p->price != '0.00' AND $this->settings->show_mtgcalc): ?>
        <li> <?php echo JHtml::_('icon.generic_button', '#calcModal', 'icon-search', array('title'=>JText::_('COM_IPROPERTY_MTG_CALCULATOR'), 'role'=>'button', 'data-toggle'=>'modal', 'class'=>'btn hasTooltip btn-fade')); ?></li>
    <?php endif; ?>
    <?php if ($this->settings->show_saveproperty): ?>
        <li> <?php echo JHtml::_('icon.generic_button', '#saveModal', 'icon-save', array('title'=>JText::_('COM_IPROPERTY_SAVE'), 'role'=>'button', 'data-toggle'=>'modal', 'class'=>'btn hasTooltip btn-fade')); ?></li>
        <li> <?php echo JHtml::_('icon.generic_button', JRoute::_(ipropertyHelperRoute::getIpuserRoute()), 'icon-list', array('title'=>JText::_('COM_IPROPERTY_MY_FAVORITES').'::'.JText::_( 'COM_IPROPERTY_MY_FAVORITES_TIP'), 'class'=>'btn hasTooltip')); ?></li>
    <?php endif; ?>
</ul>
<?php echo $this->loadTemplate('calculator'); ?>
<?php echo $this->loadTemplate('usersave'); ?> 
<div class="clearfix"></div>
Can anyone tell me if is it possible to include de PDF icon, and where ???

Thanks to anyone who will save my a**

Re: iProperty Tool Bar

Posted: 30 Oct 2014, 14:17
by Jan
Hi, adding a PDF icon code to the html is cca 1% of work which needs to be done. Or is there any pdf plugin for your component ready?

:idea:

Jan

Re: iProperty Tool Bar

Posted: 05 Nov 2014, 14:02
by ratafia
Hi Jan,

Unfortunately, there is not any plugin available. I am fully aware this should be easy but I still can't manage to do so. Thanks for your reply

Raph

Re: iProperty Tool Bar

Posted: 07 Nov 2014, 00:51
by Jan
Hi, yes, it is not so easy, the content of the extension needs to be output as raw and must be filtered because of PDF (PDF is static document and HTML is dynamic - so there is really large conversion :idea: :-(

Jan