[% currentPage = 'editDir.html' %] [% currentPageTitle = 'Edit Directory' %] [% id = modwheel.getParam('id') title = modwheel.getParam('title') keywords = modwheel.getParam('keywords') summary = modwheel.getParam('summary') active = modwheel.getParam('active') detach = modwheel.getParam('detach') parent = modwheel.getParam('parent') sort = modwheel.getParam('sort') template = modwheel.getParam('template') username = modwheel.getCurrentUser() execute = modwheel.getParam('execute') executeDeleteFile = modwheel.getParam('executeDeleteFile') deleteFileId = modwheel.getParam('deleteFileId') %] [% # ######### Fetch the article requested. %] [% this = modwheel.fetchObject(id => id, type ="'directory'") %] [% UNLESS this %] [% error = 'No such directory' %] [% END %] [% IF this.id %] [% id = this.id %] [% END %] [% # ######### Set default values %] [% UNLESS active %] [% active = 'off' %] [% END %] [% UNLESS sort %] [% sort = 10 %] [% END %] [% UNLESS parent %] [% parent = 1 %] [% END %] [% # ############ Save the object. %] [% IF execute == 'Yes' %] [% UNLESS title %] [% error = 'All objects must have a title.' %] [% END %] [% UNLESS error %] [% ret = this.setObjectValues( type => 'directory', name => title, keywords => keywords, description => summary, active => active, detach => detach, parent => parent, sort => sort, template => template owner => username, revised_by => username) %] [% ret = modwheel.saveObject(this) %] [% UNLESS ret %] [% error = "Internal Error: Couldn't save object." %] [% END %] [% END %] [% END %] [% IF executeDeleteFile == 'Yes' and deleteFileId %] [% ret = modwheel.deleteRepositoryFile(deleteFileId) %] [% END %] [% INCLUDE header_start.html %] [% INCLUDE header_end.html %]

Edit directory: [% this.name %]

[% includeChangePathButton = 'Yes' %] [% INCLUDE currentpath.html %]

Name

Keywords

Summary

Active: Sort: Custom template:

Detach from tree:

Tags for this object:

[Add new tags]

Files connected with this object:

[% IF execute == 'Yes' %] [% IF error %] [% error %] [% ELSE %] Directory successfully saved. [% ret %] [% END %] [% END %]

Help

You can use basic html tags, also if you want to reference a file that is connected with this object you can type: [file:2] where 2 is the id of the file (the number to the left in parantheses in the list of files above). [% INCLUDE footer.html %]