This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Duplicate Blocks?


avatar
Chris Hall 40
From: -
Is it possible to use the same block type more than once?

For example, if I wanted to have the latest forum posts in the right column that displays posts from all forums and in the center header (but only on the front page) have the latest forum post from a single forum (in this case announcements)?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Duplicate Blocks?
avatar
Administrator
1340
From: Vienna, Austria
Yes, it should work.
1 Re: Duplicate Blocks?
avatar
OP 40
From: -
Does this still work with the most recent version?
1 Re: Duplicate Blocks?
avatar
Administrator
1340
From: Vienna, Austria
Only with a small modification. I plan to add the ability to clone blocks in one of the next releases.

Here is how you can clone the module manually:

1) Run the following SQL query in phpMyAdmin:
INSERT INTO esselbach_ct_preferences VALUES (NULL, '1', '0', '5', '831', 'WEBSITE_FORUM_NEW2', '', '5', 'forum_new2.php', '', '', '', '::1');


2) Copy /blocks/forum_new.php to /blocks/forum_new2.php and /blocks/conf/forum_new.php to /blocks/conf/forum_new2.php

3) Edit /blocks/forum_new.php in an editor and change:
          $input_block_options = $system -> decode_array( $preferences[ 'website_forum_new'] );

to:
              $input_block_options = $system -> decode_array( $preferences[ 'website_forum_new2'] );


4) Edit /blocks/conf/forum_new.php and change:
$input_block_options = $system -> decode_array( $preferences[ 'website_forum_new'] );

to:
$input_block_options = $system -> decode_array( $preferences[ 'website_forum_new2'] );


5) Now you can add the new block in the admin section:
Blocks => Add New Block => Select PHP Block Script => "Forum new2"

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.