Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- craigh responded to »Using PageUtil::addVar() to load script code« 03:29 PM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Pagemaster - redirect from input-Form
-
- Rank: Registered User
- Registered: Jan 21, 2010
- Last visit: Mar 10, 2010
- Posts: 33
Is there a possibility to call another template after editing a pubtype with the pubedit_input_template? At the moment it calls the standard template, but I wish to call the template_2 after update. -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
I guess that something like this is done with the goto=stepmode,
unfortunately I'm not realy sure how it works but I guess that there are needed additional workflow states to jump through while editing.
I don't know if in the initial german documentation of the module Marco added some hints about the stepmode feature, but I'll need to play with it before the release of Clip 0.9
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Freshman
- Registered: Dec 30, 2006
- Last visit: Apr 20, 2010
- Posts: 58
You can try to add goto in operation file /modules/pagemaster/workflows/operations
Code
You may want to have separate operation files for diff pub types same as workflows
hmm you can try step mode template so it fit to this
Code
// resolve the template to use
$alert = SecurityUtil::checkPermission('pagemaster::', '::', ACCESS_ADMIN) && pnModGetVar('PageMaster', 'devmode', false);
// individual step
$template_step = 'input/pubedit_'.$pubtype['formname'].'_'.$stepname.'.htm';
if (!empty($stepname) && $render->template_exists($template_step)) {
return $render->pnFormExecute($template_step, $formHandler);
} elseif ($alert) {
LogUtil::registerStatus(__f('Notice: Template [%s] not found.', $template_step, $dom));
}
// generic edit
$template_all = 'input/pubedit_'.$pubtype['formname'].'_all.htm';
if ($render->template_exists($template_all)) {
return $render->pnFormExecute($template_all, $formHandler);
} elseif ($alert) {
LogUtil::registerStatus(__f('Notice: Template [%s] not found.', $template_all, $dom));
}
// autogenerated edit template
$render->force_compile = true;
$render->assign('editpub_template_code', PMgen_editpub_tplcode($tid));
return $render->pnFormExecute('var:editpub_template_code', $formHandler);
heh edit pub func don't support "standard" template override... like template=xxx
Edited by Kaik on Jan 14, 2011 - 08:08 AM.
--
rgfdgafgaf -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
- Moderated by:
- Support
