Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
Backlight has three options for PHP Plug in.. What are the differences?
trying to get iFrames to work without any success, or knowledge on my part..
Offline
what do you mean three options for phplugins?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Page template advanced options has three pop plugin files to include..
Campagna.php. Phpplugins-samples.php. And the turning gate.php
Offline
Those are just samples, mainly meant as demos. What are you wanting to do?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
We've documented how to work with PHPlugins here:
http://backlight.theturninggate.net/doc … _phplugins
Offline
I know what I want, but I don't know where to look or what hammer to grab to get it done.
PHPlugin for dummies guide anywhere?
Wanting external files: PDF's to show. Would LOVE to have a catalog FLIP Book. that is what my current
Took a hammer to CS4 and Plugins for nicer Menus.
Tried a PMY iFrame... Can't get that to size vertically.
not a big enough hammer? not for lack of trying, just lack of knowledge.
http://iproof.me/galleries/standalone/pdf/
http://iproof.me/galleries/catalogs/onlinecat/
http://iproof.me/galleries/standalone/album/
Offline
have you looked through the PYM documentation and created a folder to hold the js and html files?
for existing pages, have you added the code to call the pym js?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
that is what I'm trying to use. replacing the body of the index.html file with
can't find examples that work.
<body>
<div id="example"></div>
<script type="text/javascript" src="https://pym.nprapps.org/pym.v1.min.js"> </script>
<script>
var pymParent = new pym.Parent('example', 'http://www.premierpersonalizedgifts.com/p', {});
</script>
</div>
<script src="pym.v1.min.js"></script><script>
var pymChild = new pym.Child();
</script>
</body>
Offline
I've not played with with the PYM Embedded iFrame presentation yet, maybe Matt can offer some guidance beyond the docs.
I can see that your HTML contains an extra closing </div> tag though.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
I don't think Pym is the thing for displaying PDF files. In fact, PDF files are difficult to show in a browser.
Read this:
http://stackoverflow.com/questions/2918 … df-in-html
While I haven't tried it, you should be able to include the script using PHPlugins.
Offline
what is frustrating is the PYM iframe's vertical size only seems to respond to text, not to any content. I know my method is not proper. Is there any example of PYM code working?
Offline
Matt's got one in the Backlight Demos section: http://backlight.theturninggate.net/gal … ed-iframe/
Don't know that it will help though.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
thanks.. but that is just text in a frame. Even NPR's site claims to use PYM iframe to link to an external document.
sorry to be so thick headed..
For a PDF.. got this to work on a Page.. kinda.. resizes on a computer. not on mobile.
http://iproof.me/NameBadgePDF/
<style>.embed-container { position: relative; padding-bottom: 100%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class='embed-container'><iframe src='http:/www.iproof.me/images/namebadge.pdf' style='border:0'></iframe></div>
Offline
Mark,
In terms of web code, I don't think a PDF qualifies as a "document"; it's a file. In the web context, "document" is shorthand for "HTML document", i.e. another web page.
Did you look at the pdf.js referenced in the StackOverflow post I shared?
Offline
yes. looked at the pdf.js don't know enough coding to unravel the means to get it to work.
Offline
Well, I have it in an open tab. Not sure when I'll get around to it, but I'll have a play with it one of these days and see whether it's worth implemented in some official way, maybe via Theater.
Offline
Matt, Ben,
Are there any extra hooks for the theater plugin?
Offline
Nothing extra. All hooks are outlined in the phplugins-pangolin-sample.php file.
Offline
OK,
Thanks
Offline
Pages: 1