|
|
|
MenuThis chapter describes the functionality of the different menu entries. TrapEd has the following menu-hierarchie: FileThe following file-specific functions are listed here: Open...![]() Opens a Vignette attr-file. With a licensed version you will be able to read a complete attr-file into TrapEd and display the
complete project-structure. Without a license only three
project-directories will be displayed. Depending on the version of
transferproject with which the attr-file is build, you can have two
charsets:
If you are not sure open your file with the checkbutton
Sometimes you have large Vignette-projects, or at least large attr-files, which are only large becuase there are tons of records in it. Mostly these record-meta-data (which is stored in the attr-file) is of no use, when you simply want to look at the template-code. The Open-dialog has an option to ignore the records (or the submitted files) while reading. Of course you cannot save the modified attr-file with
records, when you have read the attr-file with the
Furthermore you can tell TrapEd to ignore all the useless
attributes (e.g. who is interested in the attribute If you have forgotten which parameters you have provided while opening the file, you can look at File/Properties. If the file was read in UTF-8, "compressed" or with files/records ignored this is mentioned in the properties-dialog. Save as...There is no "Save"-function in TrapEd because you should not overwrite your attr-file unless you already made a backup-copy. You should keep this as a backup, if something is destroyed. Save as... saves the complete project-structure to a file. This functionality is only available if you have obtained a License. If you have a large attr-file and you only want to edit and search
through an attr-file you may save the data "compressed". That is
without all those unnecessary attributes like Export selected subproject...With the export-function you can write subsets of the complete project to an attr-file. The selected subproject is taken as the root. This function is only available if you have obtained a License. You also have to be careful here, when there are submitted files in any exported subprojects, because you have to adapt the *.zip (or *.tar) -archive-file with the submitted files as well. Like in "Save as..." you can save the data in a compressed form. Dump to filesystem...![]() Maybe you don't like the integrated editor in TrapEd? You can use your own editor an simply edit all the templates within a directory. With "Dump to filesystem" you can write all the templates below the marked project into the choosen directory. Suppose you have the following project-hierarchie: JspSamples You can write the templates in these formats: DocrootThe paths of the templates are created relative to your choosen directory. Inside the created directory the template is written in Vignette-manner:
<cache> = With this mode you can dump the templates as if they were created for
the webserver-cache (you have to put in your dynamic FlatAll the templates are written with their names (and their
extension) into the choosen directory (this is possibly the option you
usually use). If you export the above project-structure into directory
CMS-ExplorerThis mode dumps the files as if you have used the CMS-Explorer.
The additional template information which is written as XML into "*.vgn"-files when you export from CMS-Explorer are neither written nor read from TrapEd. After dumping you can simply edit the templates with your favourite editor. After changing the template-files simply synchronize the directory again (of course with the same "mode"). Synchronize with filesystem...With this functionality you can read the previously dumped files into TrapEd. You should provide the same mode (Docroot, Flat or CMS-Explorer) as provided when dumping. When synchronizing TrapEd simply goes through all templates beneath the marked (left-explorer-tree) project and checks for an identically named file in the provided "synchronize-directory". If a file with this name is found and the file-content is different from the one in TrapEd the template within TrapEd is overwritten with the content from the file. Additionally CMS-Explorer-like files (those which store the meta-data of templates in XML-format) are not read from TrapEd. Import directory...This functionality is used to import many files beneath a choosen directory. This can be used to create attr-files from scratch. Simply choose a directory and import it. All the files beneath this directory will be imported. To specify which file-extension should be mapped to which tempate-type, simply set the file-extension-associations in the import-pane of the option-dialog. You can choose extension for Tcl-ServerPages (TSP), Active-ServerPages (ASP),
Java-ServerPages (JSP) and simple "submitted" Files (e.g. images). Be
careful when importing "submitted" files. You have to create your own tar- or
zip-file (depending on the Vignette-server-platform) which contains
these files. The tar- or zip-file has to have exactly the same name as
your attr-file (for an overview on how The generated attr-file is only valid for Vignette V6. Furthermore
there is no Check consistencyTo provide a basic kind of sanity check, you should check the consistency before saving the project and importing it into Vignette. This is especially important if you have imported a directory-structure, which may contain the same filenames in different directories (these are mapped to template-names, which have to be unique!). Check consistency does the following checks:
PropertiesThe dialog prints information about the attr-file (if one is opened). ![]() Properties-dialog The properties-dialog shows information about:
EditDelete template/projectThe marked project, template, ... will be deleted. You can also mark
a project, template, ... in the explorer-tree and press
To mark multiple items hold down the Be careful to delete projects which has submitted files. Because only the metadata is stored inside the attr-file, while the real file/image-data is stored in the *.zip/*.tar-file, you should adapt the *.zip/*.tar-file manually (see Faq). Go to ID/DB key...Often while doing a transferproject you get error-message like: "error ... /ci/121a". Find this content-item with Vignette's Project Manager is mostly a PITA. With TrapEd you can simply insert the ID into this dialog and TrapEd will jump directly to that template. Furthermore you can also jump directly to a template or a record if you have the database key. This database key is listed in the "Misc"-Tab of the "Details"-Dialog in the Vignette Project Manager and often refered to in template-error-messages. Search/replace...This provides the main functionality of TrapEd. Search/replace is always context-sensitive to the currently marked project/template/... For a more detailed description see SearchReplace. Search all...With the functionality you can search for all projects/templates/... with a specific pattern. All the hits are listed and you can jump directly to the hits when clicking on the result list. You can also mark the entries and copy them to the clipboard (with Ctrl-c) and paste them into Excel or whatever you need. This is really useful for documenting purposes. For a more detailed description see SearchReplace. New Project/Template/File/RecordSince version 2.0 of TrapEd it is possible to create new
objects. Simply mark the project beneath which you want to create an
item and choose You get a nearly empty input-mask to enter the attributes. But be
careful when e.g. create a new template and choosing the
ViewStatisticsThis function does compute some simple statistics on the currently marked project and lists them. It shows the number of templates with different attribute-values (e.g. how many templates are "Always Private", or who created how many templates). This may be a help for detecting problems (e.g. when the number of templates with "cache" = "y" is zero) or may help with documenting the project. Especially the information from "LockedBy" may be helpful, because you may run into problems while importing this "transferproject"-export. Some additional info from the attr-file, like the database-connection, ... are also listed in this dialog. LicenseThis opens the license-dialog. It displays the harddisk-id which is the base for the License. ExtrasOptions→ AttributesHere you can specify which attributes you want to edit. Most of the times you are not interested in all the possible attributes, so you can simply click on the ones you are focused. → ImportSpecify which file-extensions should be mapped to which kind of templates/files. You can choose between extensions which are mapped to TSP/ASP or JSP-templates or which should be created as "Files" (be careful: files have to be imported with a separate tar- or zip-file; see Import directory...) The file-extensions are case-insensitive (as usual under Windows). → MiscTo improve the display of your templates you can specify different settings according to what you normally do. ![]() Options-dialog Misc-tab You can configure the following settings:
Help (Content)This tries to start a browser to open you locally saved HTML-pages. If they were not found in the expected directory you get a notice where you can find the online-documentation. But anyhow, as you are reading this, you may already have found the help ;-) Context MenuYou can get a context-sensitive menu when you click with the right mouse-button on the projects/templates/... in the project-tree. Edit ButtonsView![]() Inside the "Edit"-Pane you have a "View"-Button for Templates (next to the "Save"-Button on the bottom of the "Edit"-Pane). Clicking this button opens the template-code in your favourite editor. Be aware that the code cannot be edited in your editor. If you want to change the code you can edit it in your editor and paste it back into the body-textarea of TrapEd. You can configure your editor in Extras>Options>Misc. View/Execute![]() With TrapEd (since version 2.1) you can even have a look at
"submitted files". If the folder from which you have opened the
attr-file contains a file named "View" will open the file in your standard-editor (the same way as "View" for templates does. This would be senseful if you have submitted files like javascript, stylesheets, ... which can be viewed with an editor. "Execute" will open this file with the configured programm (depending on the file-extension and the associated program in your Windows-configuration). E.g. with "Execute" you can open submitted images with your favorite viewer. Copyright © 2001-2010, Vogel. All rights reserved. Email: Last update: June 06, 2006, at 12:12 PM |