3093 Posts in 875 Topics by 654 members
| Go to End | ||
| Author | Topic: | 2052 Views |
-
Re: Setting an upload to folder

9 December 2009 at 7:12pm
You would need to use $this->URLSegment within your class rather than just $URLSegment which you'd use in a template.
e.g.
$fields->addFieldToTab('Root.Content.Image', new ImageField('Image', 'Image', null, null, null, 'assets/News/' . $this->URLsegment));
cheers
tsg
| 2052 Views | ||
| Go to Top |

