Master Index PagePages & Articles Master Detail DocumentCreate a new file named page.php in which you will insert a NeXTensio Master Detail. This will create a frameset composed of two separate frames, each one containing a list and a form. More exactly, NeXTensio will automatically create all the files targeted by this new created frameset: for the upper frame, a mindex.php file that will contain a list and a mdetail.php file that will contain the form. The files targeted by the lower frame are dindex.php, containing the list and ddetail.php, contains a form.
The concept of this structure is very simple: the upper frame files will help edit the pages by choosing the content of the page (Ex: you can decide what articles to appear in the selected page) or editing the page content (if it's a static page) while the lower frame files will help you edit the content of a selected page (Ex: you can edit an article from a selected page). Now open the mindex.php file and create a NeXTensio list. Edit the list and choose it's type. This list will be Master, as it will be a reference for the lower frame pages, the connection used (tutorial), the tables containing the published data (pages_pag and articles_art), the list title (Page management), the primary key (id_pag) and the foreign key (id_art). Choose the table columns (id_pag, title_pag, menu_pag) to be displayed and the field property (Read Only Text Fields). Give a label, set up a size for each field, click the OK button and then save the file.
The next step will be to edit the mdetail.php file. Create a NeXTensio Form and setup the form title, type, connection used, tables used, primary and foreign keys. In the displayed column section, you will select all the columns, as this page is meant to display all the detail information about a field contained by the mindex.php file. You will be able to select the HTML editor type for text_pag field, which means that you can use InterAKT KTML Editor to visually edit the field in HTML format. The id_pag field will have the Display As property set to text while all the other fields will have a Text Field property, as they do no require any HTML formatting. Click the OK button and save the file.
At this moment, you have a functional upper frame that will help you edit your KTMLtutorial site pages and the static pages content. The dynamic content of these pages (articles) will be edited using the lower frame files dindex.php and ddetail.php.
By clicking on the detail button, you can visualize and edit each page's content. As you can see from the picture below, the article's body can be edited and formated using the InterAKT KTML Editor. The KTML editor allows online HTML editing in a WYSIWYG environment without any HTML tag notions. You can also paste text from Word (or any other editor) with all text formatting preserved. |
Adobe acquired InterAKT
InterAKT has been acquired by Adobe.
Learn more
|