PDA

View Full Version : PDF Export - Plugin - Bug



ATServiceSRL
January 24, 2013, 02:02 AM
I've find a bug for the plugin in object.

PDF Export don't respect the privacy of the sellers and show all informations, independently if you choise to don't show it from Admin panel.

... and don't work well with GeoFilter. If you have set Geo Multifield (Country -> Region -> City), it show only Country

selcukkahya
January 24, 2013, 11:34 AM
Hello

I have the same problem. :(

Andreas_M
January 24, 2013, 08:00 PM
Its the same if you will print a listing, all informations about the owner are listed.

Andreas_M
February 1, 2013, 07:01 PM
Any solution to fix this?

Peter Jonsson
February 2, 2013, 10:57 PM
You can use the fix below.


{if $item.Key=='YOURKEY'}class="hide"{/if}

Lets say you want to hide the logo on the print page.

yoursite.com/templates/yourtemplate/tpl/controllers/print.tpl

FIND:

<tr id="df_field_{$item.Key}">

REPLACE WITH:

<tr id="df_field_{$item.Key}"{if $item.Key=='logo'}class="hide"{/if}>


If you want to lets say hide the ad title also, then just add that key so it looks like:

<tr id="df_field_{$item.Key}"{if $item.Key=='ad_title'}class="hide"{/if}{if $item.Key=='logo'}class="hide"{/if}>

To make hide work for print you need to add the code below to the print.css, maybe also for the PDF plugin:

.hide
{
display: none;
}
You can find the print.css at:

yoursite.com/templates/yourtemplate/css/print.css


To find out what key you want to hide you need to go to adminpanel and check your "Account Fields" or "Listing Fields" then just click on a field and look at the first row "Key" and just copy that key name.

As for the PDF plugin i bet it works the same but i cant test it as i dont use it.

Hope this will help you out.