Hi,
Just installed the latest version of Piwigo and I'm playing about with a few themes - All looks great.
I've tried to search for an answer to my question so please forgive me if I've missed something obvious.
The gallery is great but I would like to display it within a web page, is there a topic/post which may assist me with this?
Many Thanks
Burty
Offline
Buzzword: API. See http://piwigo.org/doc/doku.php?id=dev:webapi:start
Offline
Hi,
Thanks for that but I'm not using WordPress.
I'm playing with using an iframe but having a few css issues right now.
Offline
The API doesn't have anything to do with WordPress. It's just an example.
Offline
I'm having the same question: Is it possible host a Piwigo gallery within a page of web site, e.g. within an iframe or a comparable HTML element? A previous post on this thread linked to a page for the web service API, but that's not what I'm asking. I'm looking for a "gallery control" that I can embed within a page of my site. Does Piwigo offer this? If so, is there documentation describing how to do this? Are there examples that show this in action?
Offline
What do you mean with a "gallery control" that the API doesn't offer?
You can select, list, display images, upload images, create albums, users and all that using the API. It just requires some programming skills in whatever language you website or CMS uses, or Javascript as a general way.
There are some ready-to-go plugins for CMSes and other applications build around the API. Worpress is just an example, the great Lightroom export plugin by alloyphoto is another one, the iOS app, Android app, and so on.
Are you maybe looking for something like eliz82's http://piwigo.org/ext/extension_view.php?eid=835 ?
Iframes are the easiest way, yet the least flexible.
Last edited by teekay (2017-07-03 09:18:42)
Offline
here the misunderstandings of Burty and herewigo can only overcome by learning ; we won't explain from scratch what is and how works www, html, php, server, js etc. You have plenty of documentations very well written all round the web.
what I also recommend is to ask to some students in web development or association of students/recent graduates in web development to advise you as a small paid service ; they will help you in defining you need and will translate them into technology choices
Offline
herewigo,
If you wish to use an Iframe then insert this within your Div where you wish your gallery to appear.
<code>
<iframe class="frame1" style="width:100%;" onload="resizeIframe(this)" src="http://www.yourdomain/piwigo/">
<p>Your browser does not support iframes.</p>
</iframe>
</code>
The above uses some javascript to set the height to 100%
<code>
<script>
function resizeIframe(obj) {
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
}
</script>
</code>
I hope this answers your question.
Offline
@Burty Thanks! That's exactly what I wanted to know. Being completely new to Piwigo, I wasn't sure what "final" product was supposed to be. The showcases I saw made me wonder if it's meant to create a "top-level" web page rather than a "gallery control" that can be embedded in other web pages.
Offline