<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=Configuration_Buttons_For_Bazaar_Packages</id>
	<title>Configuration Buttons For Bazaar Packages - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=Configuration_Buttons_For_Bazaar_Packages"/>
	<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Configuration_Buttons_For_Bazaar_Packages&amp;action=history"/>
	<updated>2026-04-11T15:43:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=Configuration_Buttons_For_Bazaar_Packages&amp;diff=11106&amp;oldid=prev</id>
		<title>Th.lauke@arcor.de: moved Configuration Buttons For Bazaar Pacakges to Configuration Buttons For Bazaar Packages:&amp;#32;misleading due to misspelling</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Configuration_Buttons_For_Bazaar_Packages&amp;diff=11106&amp;oldid=prev"/>
		<updated>2015-01-16T13:46:28Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/w/Configuration_Buttons_For_Bazaar_Pacakges&quot; class=&quot;mw-redirect&quot; title=&quot;Configuration Buttons For Bazaar Pacakges&quot;&gt;Configuration Buttons For Bazaar Pacakges&lt;/a&gt; to &lt;a href=&quot;/w/Configuration_Buttons_For_Bazaar_Packages&quot; title=&quot;Configuration Buttons For Bazaar Packages&quot;&gt;Configuration Buttons For Bazaar Packages&lt;/a&gt;: misleading due to misspelling&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 13:46, 16 January 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Th.lauke@arcor.de</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=Configuration_Buttons_For_Bazaar_Packages&amp;diff=10622&amp;oldid=prev</id>
		<title>Dct05r: Bazaar Configuration Buttons</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Configuration_Buttons_For_Bazaar_Packages&amp;diff=10622&amp;oldid=prev"/>
		<updated>2012-08-03T14:06:39Z</updated>

		<summary type="html">&lt;p&gt;Bazaar Configuration Buttons&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In order to better prompt users to configure Bazaar packages you can add a configure button to the EPrints Bazaar Store on the Installed Page. &lt;br /&gt;
&lt;br /&gt;
An example of this can be found in the AmazonS3 package. &lt;br /&gt;
&lt;br /&gt;
In order to add a configure button you can add a configure method to your EPMC screen as follows:&lt;br /&gt;
&lt;br /&gt;
=Step 1 - Allow Configuration=&lt;br /&gt;
&lt;br /&gt;
In the package initialisation you need to add &amp;quot;configure&amp;quot; to the &amp;quot;actions&amp;quot; declaration, e.g. &lt;br /&gt;
&lt;br /&gt;
  $self-&amp;gt;{actions} = [qw( enable disable configure )];&lt;br /&gt;
&lt;br /&gt;
The respective &amp;quot;allow configuration&amp;quot; method also has to be defined. &lt;br /&gt;
&lt;br /&gt;
  sub allow_configure { shift-&amp;gt;can_be_viewed( @_ ) }&lt;br /&gt;
&lt;br /&gt;
=Step 2 - Configure configuration=&lt;br /&gt;
&lt;br /&gt;
This is the &amp;quot;configure' method, and can be included such that enable and disable methods can be used in conjunction with a re-direct to a plain text (or perl) config file that can be edited using the normal editor. &lt;br /&gt;
&lt;br /&gt;
Again this example is from exif_tool and here you can change cfg.d/exif_import.pl to the path to your config file you wish to allow users to edit. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  sub action_configure&lt;br /&gt;
  {&lt;br /&gt;
        my( $self ) = @_;&lt;br /&gt;
  &lt;br /&gt;
        my $epm = $self-&amp;gt;{processor}-&amp;gt;{dataobj};&lt;br /&gt;
        my $epmid = $epm-&amp;gt;id;&lt;br /&gt;
  &lt;br /&gt;
        foreach my $file ($epm-&amp;gt;installed_files)&lt;br /&gt;
        {&lt;br /&gt;
                my $filename = $file-&amp;gt;value( &amp;quot;filename&amp;quot; );&lt;br /&gt;
                next if $filename !~ m#^epm/$epmid/cfg/cfg\.d/(.*)#;&lt;br /&gt;
                my $url = $self-&amp;gt;{repository}-&amp;gt;current_url( host =&amp;gt; 1 );&lt;br /&gt;
                $url-&amp;gt;query_form(&lt;br /&gt;
                        screen =&amp;gt; &amp;quot;Admin::Config::View::Perl&amp;quot;,&lt;br /&gt;
                        configfile =&amp;gt; &amp;quot;cfg.d/exif_import.pl&amp;quot;,&lt;br /&gt;
                );&lt;br /&gt;
                $self-&amp;gt;{repository}-&amp;gt;redirect( $url );&lt;br /&gt;
                exit( 0 );&lt;br /&gt;
        }&lt;br /&gt;
  &lt;br /&gt;
        $self-&amp;gt;{processor}-&amp;gt;{screenid} = &amp;quot;Admin::EPM&amp;quot;;&lt;br /&gt;
  &lt;br /&gt;
        $self-&amp;gt;{processor}-&amp;gt;add_message( &amp;quot;error&amp;quot;, $self-&amp;gt;html_phrase( &amp;quot;missing&amp;quot; ) );&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:EPrints_Bazaar]]&lt;/div&gt;</summary>
		<author><name>Dct05r</name></author>
		
	</entry>
</feed>