$auth = new auth("EXPORT"); $page = new page("Export"); $wizard = new Wizard($lang->get("export_data", "Export Content and Templates Wizard")); $wizard->setTitleText($lang->get("wz_export_title", "This wizard is used to exchange clusters, cluster-templates and page-templates between your N/X installation and others. The wizard generates a XML File, which you can store on your local hard drive and exchange with other N/X-Users.")); ////// STEP 1 ////// $step = new Step(); $step->setTitle($lang->get("wzt_export_type", "Select type to export")); $step->setExplanation($lang->get("wze_export_type", "On the right you need to select the type of data you want to export. Clusters are storing content. When you export clusters, the templates are automatically exported too. Cluster-Templates are schemes for creating clusters. Page-Templates are used for creating pages in the website. Cluster-Templates, Meta-Templates and layout are automatically exported when you export a Page-Template.")); $resources[0][0] = $lang->get("cluster", "Cluster"); $resources[0][1] = "CLUSTER"; $resources[1][0] = $lang->get("cluster_template", "Cluster Template"); $resources[1][1] = "CLUSTERTEMPLATE"; $resources[2][0] = $lang->get("page_template", "Page Template"); $resources[2][1] = "PAGETEMPLATE"; $step->add(new WZRadio("resource_type", $resources)); ////// STEP 2 ////// $step2 = new STSelectResource(); $step2->setTitle($lang->get("wzt_sel_exp_res", "Select Resource for export")); ////// STEP 3 ////// $step3 = new Step(); $step3->setTitle($lang->get("wzt_descr", "Add description")); $step3->setExplanation($lang->get("wzt_descr_expl", "You should add a short description to the exported data.<br/><br/> Anyone who will import the data will easier understand, what he exports.")); $step3->add(new WZText("exp_description", $lang->get("description", "Description"), "TEXTAREA")); ////// Step 4 ////// $step4 = new STExportResource(); $wizard->add($step); $wizard->add($step2); $wizard->add($step3); $wizard->add($step4); $page->add($wizard); $page->draw();
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with N/X; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA **********************************************************************/ require_once "../../config.inc.php"; require_once $c["path"] . "modules/channels/st_import.php"; $auth = new auth("ANY"); $page = new page("Import Articles"); $wizard = new Wizard($lang->get("wz_articleimport", "Article-Import Wizard")); $wizard->setTitleText($lang->get("wz_articleimport_title", "This wizard is used to import article data to a channel from different sources. You can import from existing Multipages or other channels. You have to make sure that the corresponding templates are compatible.")); ////// STEP 1 ////// $step = new STSelectResource("CHANNELCATEGORY"); $step->setTitle($lang->get("wzt_articleimport_target", "Select target channel")); $step->setExplanation($lang->get("wze_articleimport_target", "On the right you need to select the target channel. All imported articles will be stored within this channel.")); ////// STEP 2 ////// $step2 = new Step(); $step2->setTitle($lang->get("wzt_articleimport_srctype", "Select source type")); $step2->setExplanation($lang->get("wze_articleimport_srctype", "Please select the type of source you want to import the articles from.")); $source_types[0][0] = $lang->get("multipage", "Multipage"); $source_types[0][1] = "PAGE"; //$source_types[1][0] = $lang->get("channel"); //$source_types[1][1] = "CHANNEL"; //$source_types[2][0] = $lang->get("cluster"); //$source_types[2][1] = "CLUSTER"; $step2->add(new WZRadio("source_type", $source_types)); ////// Step 3 ////// // determine singlepages