Support Forum

Please use this support forum to submit your questions. But before that please browse to the extension page for previously discussed issue and you may get your solution already. In order to post a new support question, you need to login first. If you don't have account, please register to JoomlaKave.

Support Forum open - (Sunday to Thursday at 9.00am to 7.00pm GMT, UTC +06.00) & Closed on Friday and Saturday)

 

  1. Sam Heidt
  2. PDF Embedder For Joomla
  3. Friday, January 05 2018, 01:17 AM
  4.  Subscribe via email
I want to use PDF Embedder For Joomla to display pdf's only on mobile devices. I would hope to use it on all devices but I had format issues.

I'm using a Rockettheme template that detects device types and will display Desktop/Phone properly as per below. However, cddocembed is detected and tries to display on the Desktop.

I need to use PDF Embedder only on mobile. Any suggestions appreciated.

<p><span class="hidden-phone"> This is a Desktop </span></p>
<p>
<span class="visible-phone">This is a Phone
{cbdocembed url="http://salz2.lowcountrytechnology.com/images/heidtbook/Preface.pdf";}
</span></p>
Rate this post:
Comment
There are no comments made yet.
0
Votes
Undo
Hi,


<span class="visible-phone">This is a Phone
{cbdocembed url="http://salz2.lowcountrytechnology.com/images/heidtbook/Preface.pdf";}
</span></p>


Did you test this code at your template ?

If it does work, then hope we can "visible-phoneadd" class at embedded code. We need to test it. Please let us know.

Thanks

Rion K
JoomlaKave Team
Comment
There are no comments made yet.
Sam Heidt Accepted Answer
0
Votes
Undo
No, didn't work as cddocembed displayed on the desktop. I've tried a number of other approaches including a minor change to your code to keep it from running on a desktop but had other problems.

I read your documentation again and saw how to change screen size - easy. That was one of the main reasons I went down this path - screen was too small. I upped the size and it looks OK so I'll go with it on both the desktop and the phone. Very nice!

One other change would be VERY helpful in my case and I saw the same issue on other posts. We have to give the entire URL in the cddocembed call. Much better would be the relative URL. The issue for me is I will have over 60 pages with a hard coded URL pointing to my test site. When I move to production, all 60 pages will have to be manually changed.

Better would be to allow

{cbdocembed url="http://salz2.lowcountrytechnology.com/images/heidtbook/Preface.pdf";;}

to be expressed as

{cbdocembed url="/images/heidtbook/Preface.pdf";}

so a change to production would occur without manually changing 60+ pages.

Thanks for your help...Sam
Comment
There are no comments made yet.
0
Votes
Undo
Hi,

Thanks for the details. then we need to customize for you. It is not possible to add options at the plugin back end. So what you are wanting, We can give you that by customizing this plugin. So it will then work with relative URL and also only on mobile devices. In this case You have to pay a customization charge.

If you agree, Please let us know We will let you know the charge amount.

Thanks

Rion K
Joomlakave Team
Comment
There are no comments made yet.
Sam Heidt Accepted Answer
0
Votes
Undo
No, I'm OK with it as it is. But thanks for your reply...Sam
Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Google+