Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Setting/Determing max control pane width
tallen73q
#1 Posted : Monday, 3 May 2010 1:25:03 PM(UTC)
Rank: Member

Joined: 6/06/2009(UTC)
Posts: 7

We are installing GSP in a control pane that is 650 pixels wide. Works fine until a .PDF is opened. GSP then resolves to 680 pixels with a left/right scroll bar. The next button is partially covered. We need to set the screen 650 pixels. Please advise
Roger Martin
#2 Posted : Tuesday, 4 May 2010 1:26:16 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Open \gs\config\galleryserverpro.config and look for the HTML template for PDF files:

Code:
<mediaObject mimeType="application/pdf">
<browsers>
<browser id="default"
htmlOutput="&lt;p&gt;&lt;a href=&quot;{MediaObjectUrl}&quot;&gt;Enlarge PDF to fit browser window&lt;/a&gt;&lt;/p&gt;&lt;iframe src=&quot;{MediaObjectUrl}&quot; frameborder=&quot;0&quot; style=&quot;width:680px;height:600px;border:1px solid #000;&quot;&gt;&lt;/iframe&gt;" />
</browsers>
</mediaObject>


Change the width and height to whatever you want.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
AlixFeng
#3 Posted : Wednesday, 13 July 2011 1:36:18 AM(UTC)
Rank: Member

Joined: 17/04/2011(UTC)
Posts: 9
Location: USA

I have the same question. I cannot find the \gs\config\galleryserverpro.config anymore. I am using GSP v2.5.0...
Roger Martin
#4 Posted : Wednesday, 13 July 2011 6:33:52 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Starting in 2.4, the HTML templates were moved to the gs_BrowserTemplate table in the database. Info about editing those tables - and the database in general - are in the Admin Guide.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
AlixFeng
#5 Posted : Wednesday, 13 July 2011 9:24:30 AM(UTC)
Rank: Member

Joined: 17/04/2011(UTC)
Posts: 9
Location: USA

I tried to change the gs_BrowserTemplate table, MimeType=application/pdf, HtmlTemplate=

<p><a href="{MediaObjectUrl}">Enlarge PDF to fit browser window</a></p><iframe src="{MediaObjectUrl}" frameborder="0" style="width:880px;height:900px;border:1px solid #000;"></iframe>

FROM:width:680px;height:600px
TO: width:880px;height:900px

BUT NOTHING HAPPENED.
Roger Martin
#6 Posted : Wednesday, 13 July 2011 10:03:54 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Restart the IIS app pool to force the gallery to reload the data.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
AlixFeng
#7 Posted : Wednesday, 13 July 2011 2:28:35 PM(UTC)
Rank: Member

Joined: 17/04/2011(UTC)
Posts: 9
Location: USA

Thanks, Roger. It works!
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.