Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 12:12:43 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155504 Posts in 21710 Topics by 7736 Members
Latest Member: deenangle
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: new Modul SectionCloner (kasectioncloner 0.7)  (Read 380 times)
gingebaker

Offline Offline

Posts: 24


« on: May 12, 2009, 11:41:42 AM »

Hi...

I programmed a small module for displaying page content of a specific section on another page in your WB-Installation...

This module works fine with WYSIWYG sections, or FORM sections, and of course some others, like my ImgViewer Modul... After adding in on a page you get a dropdown list of all other sections available. Then you can choose wich section you want to clone...

It will not work properly with the guestbook module. And also the frontend.cc is not included automatically. But for me it makes good jobs for months now...

however, the section will no really be cloned. It only shows the desired section in the frontend output....
detailed info here:

  HOW IT WORKS:
  In the view.php in this module: The script checks the section you choosed in the backend.
  Than it sets the section_id and page_id parameter to the required values of the module you trying to clone/view.
  It stores the original section and page id in another var. Then it includes the view.php
  from the module that should be viewed. After that it restores the section and page id to the original value!

 
  CHANGE-LOG:
  - 0.5:    Initial release. Module tested to clone WYSIWYG-Sections and the KA Image Viewer.
              Will work on other section that do not save anything or have a link to the module-directory itself.
            (like guestbook v2.3).
  - 0.6:    fixed a bug with function "mysql_fetch_rowsarr". added if !function_exists in modify.php
  - 0.7:    fixed a bug with function "gen_page_list". added if !function_exists in modify.php<br />
            better site-path output in admin-section-select box
 
  TODO:
  1) find a way to also include the right css file with mod_register_fronte nd_files function.
  For now not possible because this functions is called directly from WebsiteBaker and the screen
  header is rendered before the kasectioncloner view.php file is invoked.
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #1 on: May 13, 2009, 08:53:55 AM »

Hi

seems to me that this module does the same as the Section Picker.
Am I right?

If not, would be nice if you can describe the difference.

rgds

erpe
Logged

gingebaker

Offline Offline

Posts: 24


« Reply #2 on: May 13, 2009, 09:32:10 AM »

well, yes it looks like it does the same thing...
I didn´t know the SectionPicker Module till now.

I did a look at the code of the SectionPicker and it looked like it does nearly the same...
2 differences what I saw...

- SectionPicker allows sections to be searched
- Section picker does not restore the original section_id in the view.php after calling the "view.php" for the desired Section... I don´t know what happens if after the SectionPicker there is another "normal section". And the section_id var has the changed id-value from the SectionPicker??
could be a problem? or not...

however, i will test these two when i have time, and check the differences exactly...

regards...
Logged
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #3 on: May 13, 2009, 11:21:14 AM »

Quote
- Section picker does not restore the original section_id in the view.php after calling the "view.php" for the desired Section... I don´t know what happens if after the SectionPicker there is another "normal section". And the section_id var has the changed id-value from the SectionPicker??
could be a problem? or not...

...not!.... grin

used the sectionpicker between other contents...only sectionpicker on one site and so on....no problems

ruud make real good stuff.... cool

regards martin
Logged

 
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!