
In frontend, I’m on doc child02. If I click on this custom buttom, it add new child in parent01, but if I’m on child03, it add new doc in parent02. Is it possible to do this? Do you have any idea for this?
I tried something like ’Neue Arbeiten’,’new’,’[*parent*]’,’7’,’1,2’ in Custom buttons (here ’7’ is template and ’1,2’ roles), but nothing...
Hello
First, thx for your plugins. Very usefull
I tried to add a custom button, that it could add a new doc in the current parent.
parent01
|
|child01
|child02
|
parent02
|
|child03
|child04
In frontend, I’m on doc child02. If I click on this custom buttom, it add new child in parent01, but if I’m on child03, it add new doc in parent02. Is it possible to do this? Do you have any idea for this?
I tried something like ’Neue Arbeiten’,’new’,’[*parent*]’,’7’,’1,2’ in Custom buttons (here ’7’ is template and ’1,2’ roles), but nothing...
if ($this->addbutton == 'true') {
// Add button
$addButton = '
<li>
<a class="qmButton qmAdd colorbox" title="'.$doc['pagetitle'].' » '.$_lang['create_document_here'].'" href="'.$this->modx->config['site_url'].'manager/index.php?a=4&pid='.$docID.'&quickmanager=true">'.$_lang['create_document_here'].'</a>
</li>';
// Does user have permissions to add document
if($this->modx->hasPermission('new_document')) $controls.=$addButton;
}
if ($this->addbutton == 'true') {
if ($doc['isfolder'] == 1) {
$targetID = $docID;
} else {
$targetID = $doc['parent'];
}
// Add button
$addButton = '
<li>
<a class="qmButton qmAdd colorbox" title="'.$doc['pagetitle'].' » '.$_lang['create_document_here'].'" href="'.$this->modx->config['site_url'].'manager/index.php?a=4&pid='.$targetID.'&quickmanager=true">'.$_lang['create_document_here'].'</a>
</li>
';
// Does user have permissions to add document
if($this->modx->hasPermission('new_document')) $controls .= $addButton;
}
Khm, save and close doesn’t work on my installation anymore. it saves document and QM window stay on top after. there is no close button at bottom too, so i’m often stuck in editing mode... is it possible to have rounded frame with close button around QM+ iframe window like in 1.0 version?
Seems easy, but how do I enable this for my other pages? It only shows up on my home-page.
I’m not sure how to enable it on another page. I see that the code is being included on the other pages though, it’s just being hidden by css.