Just wondering if there is any way to change the issuu module's default.

When using the embed code directly from the issuu site, there are many more options for display, and I'm wondering if we can specify similar options.

Sincerely,
Rene

CommentFileSizeAuthor
#9 940380-PageFlipperSize-9.patch2.48 KBñull

Comments

rhache’s picture

First sentence was meant to be "Just wondering if there is any way to change the issuu module's default display."

marvil07’s picture

Status: Active » Postponed (maintainer needs more info)

There are only three formatters for now:

- issuu_formatter_ffpageflip
- issuu_formatter_ffpresentation
- issuu_formatter_issuuthumb

Are you referring this, or are you referring options for one of those?

rhache’s picture

I guess I'm referring to anything that would allow me to alter the output, such as the size, color, etc. Can these functions be overridden in my theme to change the default display/output? Are there more options in a views display?

Sincerely,
Rene

marvil07’s picture

Title: Anyway to change override the default output » Provide options to customize the formatter outputs
Category: support » feature
Status: Postponed (maintainer needs more info) » Active

No, there is not options for that for the moment.

Patches welcome.

marvil07’s picture

Marked #949610: Size settings as duplicate of this.

Please note that there is a start patch on #949610-1: Size settings

marvil07’s picture

Version: 6.x-1.0-alpha1 » 6.x-1.x-dev
rv0’s picture

as I needed a bigger thumbnail for the PDF on a specific site, I delved into issuu.module

in function theme_issuu_formatter_issuuthumb(),i changed the thumbnail url on line 458 to:
$thumbnail = ISSUU_URI_IMAGE . $data['documentId'] . '/jpg/page_1_thumb_large.jpg';

I had to guess the name (could not find in API), but it works. I discovered 3 sizes (there might be more)
page_1_thumb_small.jpg
page_1_thumb_medium.jpg
page_1_thumb_large.jpg

Would be nice if this were selectable in the settings.

geefin’s picture

Yep, would be nice in the settings, for now I just did a quick edit - I wanted the background to be white on the page flip to integrate with the site.

Opened issuu.module, at line #447 I added :-

'backgroundColor' => 'FFFFFF',

So it became :-

function theme_issuu_formatter_ffpageflip($element) {
  global $base_url;
  $data = $element['#item']['data']['doc_metadata'];
  if (empty($data)) {
    return '';
  }
  $options = array(
    'params' => array(
      'allowfullscreen' => 'true',
      'menu' => 'false',
    ),
    'flashvars' => array(
      'mode' => 'embed',
      'layout' => ISSUU_LAYOUT,
      'showFlipBtn' => 'false',
      'documentId' => $data['documentId'],
      'docName' => $data['name'],
      'username' => $data['username'],
      'loadingInfoText' => $data['title'],
      'width' => '420',
      'height' => '297',
      'backgroundColor' => 'FFFFFF',
      'jsAPIClientDomain' => $base_url,
    ),
  );
  return swf(ISSUU_VIEWER, $options);
}

Various other options are available if you examine the embed code.

ñull’s picture

Status: Active » Needs review
StatusFileSize
new2.48 KB

Attached my proposal for configuring the Page Flipper size (my first Git patch; I hope it is right this way).

marvil07’s picture

Status: Needs review » Fixed

Size is a pretty usual change, so I have added it to the module global settings, but please remember that all formatters are theme functions, so they are completely customizable through the theme.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.