Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
EDC:
Download extensions for Elxis CMS
.
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Modules
»
About Frontpage module
« previous
next »
Print
Pages: [
1
]
Author
Topic: About Frontpage module (Read 14699 times)
armpouniotis
Sr. Member
Posts: 377
About Frontpage module
«
on:
February 13, 2009, 15:13:17 »
Hi all !
one question: I have successfully installed the Frontpage module again (which means now I have 2 Frontpage modules), and i have put it in a specific position.
Unfortunately, only one of the two modules works....
How can I make it work both of them at the same time
Thank you in advance
Chris
Logged
Christos Armpouniotis
Ivan Trebješanin
Elxis Team
Hero Member
Posts: 1663
Re: About Frontpage module
«
Reply #1 on:
February 13, 2009, 16:02:20 »
What do you mean "installed"? Frontpage module is already a part of Elxis.
Logged
I've got a snap in my finger...
Got rhythm in my walk...
armpouniotis
Sr. Member
Posts: 377
Re: About Frontpage module
«
Reply #2 on:
February 13, 2009, 16:31:54 »
I mean, that now I have the Frontpage module twice !
And I want to work both of them at the same time !
Any ideas ?
Logged
Christos Armpouniotis
CREATIVE Options
Authorized Elxis Professional
Elxis Community
Hero Member
Posts: 2334
Professional services for Elxis CMS
Re: About Frontpage module
«
Reply #3 on:
February 13, 2009, 16:32:58 »
What do you mean "installed"?
Logged
armpouniotis
Sr. Member
Posts: 377
Re: About Frontpage module
«
Reply #4 on:
February 13, 2009, 16:35:19 »
I changed the XML file of this module, I zipped both the xml and php file under the name of "mod_frontpage_2" and then I installed through the admin zone.
The system accepted it, but I can't use both of them at the same time.
Logged
Christos Armpouniotis
CREATIVE Options
Authorized Elxis Professional
Elxis Community
Hero Member
Posts: 2334
Professional services for Elxis CMS
Re: About Frontpage module
«
Reply #5 on:
February 13, 2009, 16:54:33 »
Why you did that
Just create a copy from the site module menu, by selecting the module and press the button "copy" from the top right menu.
Logged
armpouniotis
Sr. Member
Posts: 377
Re: About Frontpage module
«
Reply #6 on:
February 13, 2009, 16:58:28 »
ok I did that,
but still, I can't use both modules at the same time....
Logged
Christos Armpouniotis
ks-net
Elxis Community
Hero Member
Posts: 2072
Kostas Stathopoulos
Re: About Frontpage module
«
Reply #7 on:
February 13, 2009, 20:12:12 »
Note:
multiply instances
of mod_frontpage in the
same page
won't work.
copy module as Sirigos said but use one of them in same page!
Logged
ks-net.gr
CREATIVE Options
Authorized Elxis Professional
Elxis Community
Hero Member
Posts: 2334
Professional services for Elxis CMS
Re: About Frontpage module
«
Reply #8 on:
February 13, 2009, 20:22:44 »
For multiply instances in the same page use UDC
http://www.elxis-downloads.com/com_downloads/miscellaneous/41.html
Logged
Farhad Sakhaei
Elxis Community
Hero Member
Posts: 1190
I know nothing , Should know more & more
Re: About Frontpage module
«
Reply #9 on:
February 23, 2009, 17:31:28 »
He want to have 2 instances of FrontPage module ...
This is a normal request ...
He don't want UCD
This is a bug and should be fix ...
Logged
DediData Web Hosting Services
CREATIVE Options
Authorized Elxis Professional
Elxis Community
Hero Member
Posts: 2334
Professional services for Elxis CMS
Re: About Frontpage module
«
Reply #10 on:
February 23, 2009, 19:37:52 »
Farhad anywhere you look there are limitations !
It is as if you are asking the car industry to have any time you want extra space in the luggage dept. in your car.
If you examine the module you will see the instances as a hard code. This is how the module has been created ! if you want, open it and do it yourself, don't present everything as bugs. We can't expect the Elxis Team to do everything for us!!
The UDC is the best way to resolve this limitation & to do the job armpouniotis needs.
Logged
Farhad Sakhaei
Elxis Community
Hero Member
Posts: 1190
I know nothing , Should know more & more
Re: About Frontpage module
«
Reply #11 on:
February 23, 2009, 20:51:13 »
To fix the problem , download the attached file and extract it ... Copy/Overwrite contained files and folders on your /modules folder
Problem solved
What was the problem ?
The class cannot be redeclare
[attachment deleted by admin]
«
Last Edit: February 23, 2009, 20:55:04 by Farhad Sakhaei
»
Logged
DediData Web Hosting Services
datahell
Elxis Team
Hero Member
Posts: 10356
Re: About Frontpage module
«
Reply #12 on:
February 23, 2009, 21:43:38 »
This is not a bug, the module has been designed to work like this.
Going back to the "mambo days", where Elxis began, most modules could be used only once because there were functions written in a "spaghetti style" that loaded without checking if there were previously already defined. Gradually we followed a different approach on modules development (OO programming) that, besides other, allowed us to have more instances of a module available on the same page. This method has not been applied to all modules as some modules have been designed to be used only once. One of them is the front-page module. I can not imagine why you need to have 2 instances of the front-page module on the same page. Of course the solution to your problem is to check if the class has been already defined, as Farhad proposed, it is up to you if you want to apply this patch.
«
Last Edit: February 23, 2009, 21:45:15 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
armpouniotis
Sr. Member
Posts: 377
Re: About Frontpage module
«
Reply #13 on:
February 26, 2009, 15:26:39 »
You see,
since I have some kind of imagination I just wanted to use 2-3 instances of the Frontpage module in different ways.
Since I did that with banner module or with latest news module, I thought I could do the same thing with Frontpage module.
UCD is quite helpful but it is not convinient in the case that I want to present some content items.
Never mind.... Probably future versions of Elxis will give us the opportunity to do that !
Thank you anyway !
Logged
Christos Armpouniotis
datahell
Elxis Team
Hero Member
Posts: 10356
Re: About Frontpage module
«
Reply #14 on:
February 26, 2009, 18:43:07 »
Use Farhad's patch. It will work just fine.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Extensions
»
Modules
»
About Frontpage module