Difference between revisions of "Piwigo"

From rbachwiki
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:


=Using the API=
=Using the API=
<p class="subheading"> access the api at https://www.yourdomain.com/gallery/tools/ws.htm </p>
<p class="subhead"> access the api at https://www.yourdomain.com/gallery/tools/ws.htm </p>
<h3 class="subhead">use alpinejs</h3>
<pre>
<pre>
   <section class="catlist" x-data="{cat: [],
   <section class="catlist" x-data="{cat: [],
Line 17: Line 18:
          
          
         }" x-init="getcat()">
         }" x-init="getcat()">
   
 
   
    <br>
         <template x-for="d in cat.result.categories">
         <template x-for="d in cat.result.categories">
             <div class="categories">
             <div class="categories">
Line 31: Line 30:
         </template>
         </template>
      
      
        </section>
    </section>
</pre>
</pre>
==[[Open Source Software]]==
==[[Open Source Software]]==

Latest revision as of 20:59, 4 January 2023

Move to a new server

  • Export entire Database from old server
  • Create Blank temp database into new server
  • import database into new server
  • Copy Entire folder to new server
  • edit /local/config/database.inc.php

Using the API

access the api at https://www.yourdomain.com/gallery/tools/ws.htm

use alpinejs

  <section class="catlist" x-data="{cat: [],
        getcat(){
            fetch('https://www.vortexcreativecenter.com/gallery/ws.php?format=json&method=pwg.categories.getList')
            .then((response) => response.json())
            .then((json) => this.cat = json);
        }
        
        }" x-init="getcat()">
  
        <template x-for="d in cat.result.categories">
            <div class="categories">
               <a :href="d.url"> <figure>
                    <img :src="d.tn_url" alt="">
                    <figcaption x-text="d.name"></figcaption>
                </figure></a>
     
            </div>
    
        </template>
    
    </section>

Open Source Software