Skip to content

Need default pdf viewer on object detail page while using generated thumbnails #135

Answered by evanwill
sayheyakanksha asked this question in Q&A
Discussion options

You must be logged in to vote

@sayheyakanksha yes that is possible.
Here is another Discussion about pdf display with some thoughts.
But basically what you need to do is slightly modify the file "_layouts/item/pdf.html" in your project. On line 10 of that file you will see the liquid include:
{% include item/item-thumb.html %}

replace that with this include instead:
{% include item/pdf-embed.html %}

That's it!

Hope your project goes well!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sayheyakanksha
Comment options

Answer selected by sayheyakanksha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants