xoops forums

DMarvelus

Just popping in
Posted on: 2005/4/10 0:17
DMarvelus
DMarvelus (Show more)
Just popping in
Posts: 70
Since: 2005/1/29
#1

another core request

I don't think it should be necessary to duplicate modules just because I want to have 2 separate sets of blocks. For example, lets say I wanted recent news from one category, then some where else on the site, recent news from another category.

It should be a very simple process to clone a block in the administration menu. After all, a cloned block is nothing more than a function call with different parameters.

This would involve keeping the options for each cloned block separate in the database though.

Any one tried this before?

m0nty

XOOPS is my life!
Posted on: 2005/4/10 0:23
m0nty
m0nty (Show more)
XOOPS is my life!
Posts: 3337
Since: 2003/10/24
#2

Re: another core request

i don't think that's exactly a core problem.. that would fit more into how the module developers design their modules, as the module developer actually designs the blocks for their modules.

DMarvelus

Just popping in
Posted on: 2005/4/10 3:33
DMarvelus
DMarvelus (Show more)
Just popping in
Posts: 70
Since: 2005/1/29
#3

Re: another core request

Maybe I didn't make myself clear.

I have made modules before...

The question is... Can I design a module to have a single block that may be duplicated as many times as i want WITHOUT copying the module directory?

For example, let's say I wanted to make a recent headlines block. But the user of the module should decide that they could duplicate it for Technology news, Political news, then Entertainment news or any amount of duplicated blocks they want.

I would say, this would not be a difficult change to make in the core, and it would keep people from having to copy the module directory... Copying the module directory and changing the code is totally unnecessary when it could be done easily in the core, and it could be part of the blocks admin.

JasonMR

Just can't stay away
Posted on: 2005/4/10 3:48
JasonMR
JasonMR (Show more)
Just can't stay away
Posts: 655
Since: 2004/6/21
#4

Re: another core request

How about you take a look at GIJOEs Block Admin Module, that should resolve your problem/issue

DMarvelus

Just popping in
Posted on: 2005/4/10 4:02
DMarvelus
DMarvelus (Show more)
Just popping in
Posts: 70
Since: 2005/1/29
#5

Re: another core request

thanks.