Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2017-06-30 22:12:09

Burty
Member
Registered: 2017-06-30
Posts: 3

Gallery displayed within a web page

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

 

#2 2017-06-30 22:36:10

teekay
Member
Registered: 2013-06-12
Posts: 286

Re: Gallery displayed within a web page

Offline

 

#3 2017-06-30 22:39:31

Burty
Member
Registered: 2017-06-30
Posts: 3

Re: Gallery displayed within a web page

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

 

#4 2017-07-01 18:47:18

teekay
Member
Registered: 2013-06-12
Posts: 286

Re: Gallery displayed within a web page

The API doesn't have anything to do with WordPress. It's just an example.

Offline

 

#5 2017-07-03 04:22:45

herewigo
Member
Registered: 2017-07-03
Posts: 3

Re: Gallery displayed within a web page

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

 

#6 2017-07-03 09:13:35

teekay
Member
Registered: 2013-06-12
Posts: 286

Re: Gallery displayed within a web page

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

 

#7 2017-07-03 10:34:45

flop25
Piwigo Team
Registered: 2006-07-06
Posts: 6588
Website

Re: Gallery displayed within a web page

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2017-07-03 15:54:15

Burty
Member
Registered: 2017-06-30
Posts: 3

Re: Gallery displayed within a web page

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

 

#9 2017-07-05 20:32:23

herewigo
Member
Registered: 2017-07-03
Posts: 3

Re: Gallery displayed within a web page

@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

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact