Difference between revisions of "Piwigo"

From rbachwiki
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Move to a new server=
=Move to a new server=
*==Export entire Database from old server==
*Export entire Database from old server
==* Create Blank temp database into new server==
* Create Blank temp database into new server
==* import database into new server==
* import database into new server
==* Do a regular installation of the piwigo software on the new server. The new installation will create a new blank database==
* Copy Entire folder to new server
==* copy each usable tables from the old installation to the new one==
* edit /local/config/database.inc.php
==** Click on the table you want to copy from==
 
==** click Operations==
=Using the API=
==** Copy table to (database.table) ==
<p class="subhead"> access the api at https://www.yourdomain.com/gallery/tools/ws.htm </p>
==** pick database and table ==
<h3 class="subhead">use alpinejs</h3>
==** cho0se Data Only==
<pre>
==* _image_tag, _image_category, _images, _categories==
  <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>
</pre>
==[[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