[[!NewsPublisher? &show=`pagetitle,longtitle,introtext,content,1,19,5,11,15,12,13,17,16,14,10,9,8` &initdatepicker=`1` &parent=`3` &required=`pagetitle,longtitle,introtext,content,tags,age,developer,publisher,game,platform,reviewed,release,points,summary,pros,cons` &template=`arvostelu`]]
[[!NewsPublisher? &show=`pagetitle,longtitle,content,1,19,2,3` &initdatepicker=`1` &required=`pagetitle,longtitle,content,tags` &parent=`2` &template=`artikkeli`]]
[[!NewsPublisher? &show=`pagetitle,longtitle,introtext,content,1,19,2,3` &initdatepicker=`1` &parent=`4` &required=`pagetitle,longtitle,introtext,content,tags` &template=`spesiaali`]]
protected function _getTemplate() {
if ($this->existing) {
return $this->resource->get('template');
}
$template = $this->modx->getOption('default_template');
if ($this->props['template'] == 'parent') {
if (empty($this->parentId)) {
$this->setError($this->modx->lexicon('np_parent_not_sent'));
}
if (empty($this->parentObj)) {
$this->parentObj = $this->modx->getObject('modResource', $this->parentId);
}
if ($this->parentObj) {
$template = $this->parentObj->get('template');
} else {
$this->setError($this->modx->lexicon('np_parent_not_found') . $this->parentId);
}
} elseif (!empty($this->props->template)) {
if (is_numeric($this->props['template'])) { /* user sent a number */
$t = $this->modx->getObject('modTemplate', $this->props['template']);
/* make sure it exists */
if (! $t) {
$this->SetError($this->modx->lexicon('np_no_template_id') . $this->props['template']);
}
} else { /* user sent a template name */
$t = $this->modx->getObject('modTemplate', array('templatename' => $this->props['template']));
if (!$t) {
$this->setError($this->modx->lexicon('np_no_template_name') . $this->props['template']);
}
}
$template = $t ? $t->get('id')
: $this->modx->getOption('default_template');
unset($t);
}
return $template;
}
Tried the fix and still no luck. It’s something specific to my installation or server. I tried the parameter on a fresh install (localhost) and it worked as it did with you.
Quote from: Hat-rack at Jan 06, 2011, 05:14 PM
Bobray, is there a plan to implement some sort of image/file upload mechanism?
I thought about implementing it for Image TVsit, but just didn’t have time to do it. Part of the problem is whether it should let you select from existing files on the server (as the Manager does with Image TVs), or whether it should let you upload new files from a local machine (and put them where?).

) getting NewsPublisher to work... except, I cannot get RTE to work.&cancelbutton=`0` &cancelbutton=`1`
[[!NewsPublisher? &initrte=`1` &rtcontent=`1` &groups=`Interest Groups` &show=`pagetitle,longtitle,Email,Location,content` &published=`1` &hidemenu=`0` &cacheable=`System Default` &searcheable=`System Default` &richtext=`1` ]]