installing a module twice under different names?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
stevegos

installing a module twice under different names?

Post 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
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: installing a module twice under different names?

Post by calguy1000 »

No. Modules cannot be installed twice.

Forking a module requries extensive changes to the php files.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: installing a module twice under different names?

Post by velden »

Could you give some more details about what you need to do with Gallery templates. I think it's very flexible.
Locked

Return to “Modules/Add-Ons”