Extra Fields Not Showing in Print Preview

Discussion in 'Technical Support' started by freeze2, Dec 27, 2012.

  1. freeze2 Customer

    First time I noticed the following scenario:

    Using the Get Extra Field plugin and while viewing the Print Preview (printer.php) of a listing, I am unable to pull up any of my extra fields set as "Field Seen In Listing - No". All other extra fields display properly.

    I have tried using both {get_extra_field id=$view fid=1} and {get_extra_field id=$entry.id fid=1} in the template file without any success.

    Using {debug} on the template file, I am not able to see the extrafields that are set as "Field Seen In Listing - No" listed.

    This may be a bug, or possibly I'm missing something here...any help would be appreciated.

    Thanks!
  2. Mike-N-Tosh Developer & Moderator

    Nope, you're not missing anything. The reason that the plugin does not work is because the id of the listing is never sent to the template. In other words, $view = "" and $entry.id="". The extrafields that show are in one array and only include the extra fields set to be seen.

    You could overcome this if you modified the php file itself, "printer.php" and assign the $view variable to the template. Add another line after all of the other class template assigns like this:
    Code:
    $class_tpl->assign('view', view);
    Then you can use the Get Extra Field plugin in your template file.
  3. freeze2 Customer

    Thanks Mike...I'm going to check this out...thanks for the direction

    Update: Worked awesome, I just tweaked it to show ('view', $view) with the ole dollar sign.

    Thanks again!
  4. Mike-N-Tosh Developer & Moderator

    DOH!
    Sorry, I missed the "$"!

Share This Page