Page 1 of 1

installing a module twice under different names?

Posted: Tue Jul 30, 2013 1:58 pm
by stevegos
Hi

I have a need to duplicate a module and install it twice under different names. The module in question is Gallery and does not appear to allow different settings for templates - well the ones I need to change per template appear to be global.

So I thought about installing it twice under different names. Is this possible?

Looking at the xml file the only part which is readable is the first few lines:

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE module [
  <!ELEMENT module (dtdversion,name,version,description*,help*,about*,requires*,file+)>
  <!ELEMENT dtdversion (#PCDATA)>
  <!ELEMENT name (#PCDATA)>
  <!ELEMENT version (#PCDATA)>
  <!ELEMENT mincmsversion (#PCDATA)>
  <!ELEMENT description (#PCDATA)>
  <!ELEMENT help (#PCDATA)>
  <!ELEMENT about (#PCDATA)>
  <!ELEMENT requires (requiredname,requiredversion)>
  <!ELEMENT requiredname (#PCDATA)>
  <!ELEMENT requiredversion (#PCDATA)>
  <!ELEMENT file (filename,isdir,data)>
  <!ELEMENT filename (#PCDATA)>
  <!ELEMENT isdir (#PCDATA)>
  <!ELEMENT data (#PCDATA)>
]>
<module>
	<dtdversion>1.3</dtdversion>
	<name>Gallery</name>
	<version>1.6.1</version>
  <mincmsversion>1.10</mincmsversion>
	<help>
At the bottom I can see the name and version. Is it just a case of changing this to a new unique name and the module will install twice?

I don't have a test environment to hand otherwise I would test it.

All help greatly appreciated.

Steve

Re: installing a module twice under different names?

Posted: Tue Jul 30, 2013 2:05 pm
by calguy1000
No. Modules cannot be installed twice.

Forking a module requries extensive changes to the php files.

Re: installing a module twice under different names?

Posted: Tue Jul 30, 2013 5:10 pm
by velden
Could you give some more details about what you need to do with Gallery templates. I think it's very flexible.