IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#30106 - 05/13/09 11:47 AM current.orientation condition
Raphael Offline
Junior Member

Registered: 01/16/09
Posts: 15
I need a condition to get the paper orientation, if is landscape or portrait.

Is this the correct condition in this case ?

If yes, I would like to know, how this condition works ?

Thx.

Top
#30107 - 05/13/09 01:31 PM Re: current.orientation condition
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Raphael,

¤t.orientation will return an integer depending on the orientation of the page:

0: Portrait
1: Landscape
2: Rotated Portrait
3: Rotated Landscape

So if you'd like to make a condition to check for, let's say, the landscape orientation of the current page, you could say:

if(¤t.orientation = 1)

Or if it's an object's condition:

=¤t.orientation = 1

Hope this helps.

Regards,
Rapha

Top