This topic is locked

4.2 list and view page image issue

9/22/2008 12:28:47 PM
PHPRunner General questions
J
jetacera author

I have a field for image upload of photos. I want the list page to show thumbnails and the view page to show full size. This was standard in previous versions of PHPRunner. Now if I check the Display thumbnails box on the View As tab, both the List page and the view page show thumbnails. If I uncheck the Display thumbnails box on the View As tab, both pages show full size! I have edit and add pages as well to allow for image upload.
I also have another view of the table with just list and view pages and it is doing the same thing! I even tried changing the view as to the default as basic text so I could hand code the image location, but it won't remove the association as an image.
HELP!
JET

Sergey Kornilov admin 9/22/2008

This behavior is by design. The same "View as" type will be applied on all View/List/Print etc pages.

J
jetacera author 9/22/2008

OK, so how do I get thumbnails to show on the list page and full size image to show on the view page?

J
jetacera author 9/22/2008

Just in case anyone is curious, I came up with a workaround solution.
I created another view of the table with just the View page (and the List since it's required) and made the image the full size image in the new view. I made the image the thumbnail size in the original.
Then I linked the View link from the original list page to the view page of the new view and linked the Back to list link on the new view page to the original list page. Make sense?

Sergey Kornilov admin 9/22/2008

There is a more simple workaround. Add an alias for image field in SQL query i.e.
select ...

image,

image as image1

from ...
Make sure image appears on the list page only, while image1 appears on view page only. You can set different "View as" types for these two fields.