Difference between revisions of "Piwigo"
Jump to navigation
Jump to search
| Line 6: | Line 6: | ||
* edit /local/config/database.inc.php | * edit /local/config/database.inc.php | ||
=Using the API= | |||
<p class="subheading"> access the api at https://www.yourdomain.com/gallery/tools/ws.htm </p> | |||
<pre> | |||
<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()"> | |||
<br> | |||
<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]]== | ==[[Open Source Software]]== | ||
Revision as of 19:20, 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
<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()">
<br>
<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>