PhocaPDF with RestaurantLab template

Phoca PDF - creating PDF documents in Joomla! CMS
teduez12
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Nov 2013, 00:50

PhocaPDF with RestaurantLab template

Post by teduez12 »

I can't seem to find what I need to update to get PhocaPDF with linelab's restaurantLab template. Does anyone else have this installed on 2.5 that can help?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PhocaPDF with RestaurantLab template

Post by Jan »

Hi, not sure if RestaurantLab has own overwriting of content, but if yes, the changes need to be done there:
https://www.phoca.cz/documents/47-phoca- ... -and-usage
Jan
If you find Phoca extensions useful, please support the project
teduez12
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Nov 2013, 00:50

Re: PhocaPDF with RestaurantLab template

Post by teduez12 »

Yes I tried to do that but I can't find those files in the templates folder so I'm not sure how to make the changes. Any thoughts on where they might be? Here are the folders and files in the templates directory. I'm not sure where else to look.

.../templates/restaurantlab/css
.../templates/restaurantlab/html
...//templates/restaurantlab/images
.../templates/restaurantlab/language
.../templates/restaurantlab/favicon.ico
.../templates/restaurantlab/index.php
.../templates/restaurantlab/template_preview.png
.../templates/restaurantlab/template_thumbnail.png
.../templates/restaurantlab/templateDetails.xml
.../templates/restaurantlab/tools.php
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PhocaPDF with RestaurantLab template

Post by Jan »

mostly there are in html folder

Jan
If you find Phoca extensions useful, please support the project
teduez12
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 14 Nov 2013, 00:50

Re: PhocaPDF with RestaurantLab template

Post by teduez12 »

Thanks. I found this in .../templates/restaurantlab/html/com_content/article/default.php

<?php if ($canEdit || $params->get('show_print_icon') || $params->get('show_email_icon')) : ?>
<div class="actions">
<?php if (!$this->print) : ?>
<?php if ($params->get('show_print_icon')) : ?>
<span class="print-icon">
<?php echo JHtml::_('icon.print_popup', $this->item, $params); ?>
</span>
<?php endif; ?>

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

Since it isn't exactly the same and I'm not a php programmer, I'm not sure what to change based on the article link above. Can you help?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: PhocaPDF with RestaurantLab template

Post by Jan »

Hi, for now I am not on my PC, so cannot test it (you always need to test it, so there is no error in the code) - if you are not familar with PHP, I think you need to hire someone :idea:

Didn't this guide not help you? https://www.phoca.cz/documents/47-phoca- ... -and-usage

Jan
If you find Phoca extensions useful, please support the project
Post Reply