displaymode = 0 .. 3
default: 0
The displaymode command is used to select the layout of the Html page that Palview will generate when the htmltype = normal page is selected. There are really three parts to the normal page: the board, the infobox, and the moves of the game.
The first option was created for webmasters who may want to get Palview to simply create the various parts of the page and then let the webmaster edit the page to move around the various parts himself. An example of this mode is:
displaymode = 0
 |

1. d4 d5 2. Nf3 Nf6 3. e3 c6 4. c4 e6 5. Nc3 Nbd7 6. Bd3 Bd6 7. O-O O-O 8. e4 dxe4 9. Nxe4 Nxe4 10. Bxe4 Nf6 11. Bc2 With a view to 12. Qd3 and 13. Bg5 , threatening 14. Bxf6 and 15. Qxh7# 11... h6 Black meets the threat but weakens his K-side. 12. b3 b6 13. Bb2 Bb7 14. Qd3 A new threat: 15. d5 menacing 16. Bxf6 and 17. Qh7# 14... g6 Again stopping the threat but weakening the castled position. 15. Rae1! Now the threat of Rxe6! is in the air. 15... Nh5 16. Bc1! Kg7 But not 16... Nf4 17. Bxf4 Bxf4 18. Rxe6! fxe6 19. Qxg6+ and mate next move. The weakening of Black's K-side is beginning to tell. 17. Rxe6! Nf6 Naturally Black avoids 17... fxe6 18. Qxg6+ Kh8 19. Qh7# 18. Ne5! c5 After 18... fxe6 19. Qxg6+ Kh8 20. Qxh6+ Kg8 21. Qg6+ Kh8 22. Re1 White wins by bringing his remaining R to the third rank. 19. Bxh6+! Kxh6 20. Nxf7+! Now after 20... Rxf7 White has 21. Qxg6# 1-0 [Reinfeld]
|
The next mode, 1, is the usual page that you would see:
displaymode = 1
 |

1. d4 d5 2. Nf3 Nf6 3. e3 c6 4. c4 e6 5. Nc3 Nbd7 6. Bd3 Bd6 7. O-O O-O 8. e4 dxe4 9. Nxe4 Nxe4 10. Bxe4 Nf6 11. Bc2 With a view to 12. Qd3 and 13. Bg5 , threatening 14. Bxf6 and 15. Qxh7# 11... h6 Black meets the threat but weakens his K-side. 12. b3 b6 13. Bb2 Bb7 14. Qd3 A new threat: 15. d5 menacing 16. Bxf6 and 17. Qh7# 14... g6 Again stopping the threat but weakening the castled position. 15. Rae1! Now the threat of Rxe6! is in the air. 15... Nh5 16. Bc1! Kg7 But not 16... Nf4 17. Bxf4 Bxf4 18. Rxe6! fxe6 19. Qxg6+ and mate next move. The weakening of Black's K-side is beginning to tell. 17. Rxe6! Nf6 Naturally Black avoids 17... fxe6 18. Qxg6+ Kh8 19. Qh7# 18. Ne5! c5 After 18... fxe6 19. Qxg6+ Kh8 20. Qxh6+ Kg8 21. Qg6+ Kh8 22. Re1 White wins by bringing his remaining R to the third rank. 19. Bxh6+! Kxh6 20. Nxf7+! Now after 20... Rxf7 White has 21. Qxg6# 1-0 [Reinfeld]
|
Mode, 2, is the same as mode 1 except that there is no border:
displaymode = 2
 |

1. d4 d5 2. Nf3 Nf6 3. e3 c6 4. c4 e6 5. Nc3 Nbd7 6. Bd3 Bd6 7. O-O O-O 8. e4 dxe4 9. Nxe4 Nxe4 10. Bxe4 Nf6 11. Bc2 With a view to 12. Qd3 and 13. Bg5 , threatening 14. Bxf6 and 15. Qxh7# 11... h6 Black meets the threat but weakens his K-side. 12. b3 b6 13. Bb2 Bb7 14. Qd3 A new threat: 15. d5 menacing 16. Bxf6 and 17. Qh7# 14... g6 Again stopping the threat but weakening the castled position. 15. Rae1! Now the threat of Rxe6! is in the air. 15... Nh5 16. Bc1! Kg7 But not 16... Nf4 17. Bxf4 Bxf4 18. Rxe6! fxe6 19. Qxg6+ and mate next move. The weakening of Black's K-side is beginning to tell. 17. Rxe6! Nf6 Naturally Black avoids 17... fxe6 18. Qxg6+ Kh8 19. Qh7# 18. Ne5! c5 After 18... fxe6 19. Qxg6+ Kh8 20. Qxh6+ Kg8 21. Qg6+ Kh8 22. Re1 White wins by bringing his remaining R to the third rank. 19. Bxh6+! Kxh6 20. Nxf7+! Now after 20... Rxf7 White has 21. Qxg6# 1-0 [Reinfeld]
|
Mode, 3, wraps the moves around the board as you can see below:
displaymode = 3
1. d4 d5 2. Nf3 Nf6 3. e3 c6 4. c4 e6 5. Nc3 Nbd7 6. Bd3 Bd6 7. O-O O-O 8. e4 dxe4 9. Nxe4 Nxe4 10. Bxe4 Nf6 11. Bc2 With a view to 12. Qd3 and 13. Bg5 , threatening 14. Bxf6 and 15. Qxh7# 11... h6 Black meets the threat but weakens his K-side. 12. b3 b6 13. Bb2 Bb7 14. Qd3 A new threat: 15. d5 menacing 16. Bxf6 and 17. Qh7# 14... g6 Again stopping the threat but weakening the castled position. 15. Rae1! Now the threat of Rxe6! is in the air. 15... Nh5 16. Bc1! Kg7 But not 16... Nf4 17. Bxf4 Bxf4 18. Rxe6! fxe6 19. Qxg6+ and mate next move. The weakening of Black's K-side is beginning to tell. 17. Rxe6! Nf6 Naturally Black avoids 17... fxe6 18. Qxg6+ Kh8 19. Qh7# 18. Ne5! c5 After 18... fxe6 19. Qxg6+ Kh8 20. Qxh6+ Kg8 21. Qg6+ Kh8 22. Re1 White wins by bringing his remaining R to the third rank. 19. Bxh6+! Kxh6 20. Nxf7+! Now after 20... Rxf7 White has 21. Qxg6# 1-0 [Reinfeld]
|
While there are four options, we strongly suggest that you use displaymode = 1 for all your htmltype = normal pages. Using mode 1, you can effectively remove the border using the .pgob class in your stylesheet to achieve the same effect as mode 2. Mode 3 sometimes renders incorrectly on some older browsers, while mode 0 has become somewhat antiquated due to the number of new page types added to Palview.
|