In Admins/Plugins I see a tab named "Personal Plugin". What is this & how is it used?
-- Geoff
Offline
This is a very advanced feature that let you write your own plugin "live". Use it with heavy caution and be ready to deactivate it in the database in case there is any error in your plugin.
Offline
Are there any examples of how this is used? I have several things that I want to do
1) Insert my own button/link into the upper right-hand menu bar
2) Insert metadata into the <head> section of photo pages
Is this a reasonable way to accomplish this are there better methods?
-- Geoff
Offline
Offline
geoffschultz wrote:
Are there any examples of how this is used? I have several things that I want to do
see already existingplugins and tips we have given on that forum
geoffschultz wrote:
1) Insert my own button/link into the upper right-hand menu bar
I recommend to use a prefilter, you know I've told about that ^^
geoffschultz wrote:
2) Insert metadata into the <head> section of photo pages
there is already a plugin for head elements
Offline
flop25 wrote:
geoffschultz wrote:
1) Insert my own button/link into the upper right-hand menu bar
I recommend to use a prefilter, you know I've told about that ^^
I plan to do that, but think that I'll just modify the code in the files beforehand and then use a prefilter to implement them. I don't want to try/change too many things at once.
As far as inserting my own button/link, I've figured out how to do this for pictures, but not for categories/thumbnails. I asked this in http://piwigo.org/forum/viewtopic.php?id=20031 but no response.
flop25 wrote:
geoffschultz wrote:
2) Insert metadata into the <head> section of photo pages
there is already a plugin for head elements
This plugin only output static information. I haven't found any way to make it output variables.
-- Geoff
Offline
geoffschultz wrote:
flop25 wrote:
geoffschultz wrote:
2) Insert metadata into the <head> section of photo pages
there is already a plugin for head elements
This plugin only output static information. I haven't found any way to make it output variables.
If you can says me where is infos I can says you how add !
have you add config IPTC in local config ?
Offline
ddtddt wrote:
If you can says me where is infos I can says you how add !
have you add config IPTC in local config ?
How do I do that? And where was I supposed to have found out that I needed to do this? Note that I'm using Advanced Metadata.
[edit:] I found the info, but I'm still not sure how I was supposed to have known to do this.
Last edited by geoffschultz (2012-07-25 22:10:40)
Offline
geoffschultz wrote:
[edit:] I found the info, but I'm still not sure how I was supposed to have known to do this.
and where is info ?
Offline
ddtddt wrote:
and where is info ?
I searched the forum for "IPTC local config" and found many references to it. However, I had no idea that I needed to configure this.
Note that I've been painting a bathroom for most of today, so I haven't had a chance to actually try any of what I saw. That will have to wait until I get up early in the morning and have a few hours of uninterrupted work!
-- Geoff
Last edited by geoffschultz (2012-07-26 12:12:56)
Offline
I'm doing the following on a test database until I make sure that I'm doing the correct things:
I added the following to my local config file:
$conf['use_iptc'] = true; $conf['use_iptc_mapping'] = array( 'name' => '2#005', 'keywords' => '2#025', 'author' => '2#080', 'comment' => '2#120', 'country_code' => '2#100', 'province_state' => '2#095', 'country_name' => '2#101', 'city' => '2#090', 'sublocation' => '2#092' );
and created the corresponding table rows in _images. I then resynchronized and _images was populated with the correct values. Based upon that I can see how to generate the <meta> tags that I need.
What confuses me is that Advanced Metadata appears to analyze the images in realtime and somehow provides that information. Thus it seems that there's no reason to store it in the database. Is this correct and if so, how do I access the data?
-- Geoff
Offline
geoffschultz wrote:
I'm doing the following on a test database until I make sure that I'm doing the correct things:
I added the following to my local config file:Code:
$conf['use_iptc'] = true; $conf['use_iptc_mapping'] = array( 'name' => '2#005', 'keywords' => '2#025', 'author' => '2#080', 'comment' => '2#120', 'country_code' => '2#100', 'province_state' => '2#095', 'country_name' => '2#101', 'city' => '2#090', 'sublocation' => '2#092' );and created the corresponding table rows in _images. I then resynchronized and _images was populated with the correct values. Based upon that I can see how to generate the <meta> tags that I need.
What confuses me is that Advanced Metadata appears to analyze the images in realtime and somehow provides that information. Thus it seems that there's no reason to store it in the database. Is this correct and if so, how do I access the data?
-- Geoff
Can you give me 1 photo by e-mail with this metadata
Offline
Within Personal Plugin, how do I obtain the filename?
-- Geoff
Offline