plainblack.com
Username Password
search
Bookmark and Share

Page Wizard

PageWiz makes it possible to link data obtained from the DataForm wobject to a customised template inside a User Submission System (USS) framework.

PageWiz also makes it possible to edit data in the 'DataForm_entryData' table.

The magic happens by linking a new submission to a particular DataForm entry using the DataForm_entryData.DataForm_entryId field.

Data is linked into the template using the field names as specified in the DataForm.

Data values are linked using <tmpl_var fieldname_val>

Data labels are linked using <tmpl_var fieldname_lbl>

I have also used a slightly modified version of the DataForm wobject Email and Acknowledge templates that displays the DataForm_entryId to the user after he entering his data.

enjoy.

PageWiz Notes from the README file:

1. PageWiz is based on the USS wobject.

2. PageWiz makes it possible to link data obtained from the DataForm wobject to a customised template.

3. PageWiz makes it possible to edit data in the 'DataForm_entryData' table.

4. Create your customised template by making a copy of the 'Default Submission' template appearing under the PageWiz/Submission namespace.

5. An example custom template is included as custom-template.tmpl

6. Link your new PageWiz Wobject with your custom template by selecting your Submission Template from the drop down box in the 'Edit Page Wizard' view.

7. Create a new submission by selecting 'Post New Submission' option. Select 'DataForm EntryId' from the dropdown box - you are selecting the data fields to be linked to your custom template.

8. Please note : you must be logged in as the same user that entered the data into the DataForm wobject in the first place.

9. Edit the data associated with your submission by selecting 'Edit Data' in the submissions menu.

Custom templates

Data is linked into the template using the field names as specified in the DataForm.

Data values are linked using <tmpl_var fieldname_val>

Data labels are linked using <tmpl_var fieldname_lbl>

PLEASE NOTE:

PageWiz has ONLY been tested with WebGUI 5.4.4.

PageWiz Version 0.9 is a beta release.

The 'Edit Data' menu option must still be internationalised.

Installation:

1. Download the PageWiz-0.9.tar.gz.

2. Untar the file in your WebGUI root directory and move to your WebGUI/doc directory.

3. Run the create-PageWiz script in the docs/PageWiz directory. mysql -uwebgui -ppassword database < create-PageWiz.sql

4. Add an entry for this new wobject in your WebGUI config file. wobjects = PageWiz, Article, etc.....

5. Restart your webserver

Uninstalling:

1. Remove the wobject from your config file.

2. Run the drop-PageWiz.sql script in the docs/PageWiz directory: mysql -uwebgui -ppassword database < drop-PageWiz.sql

TODO

The 'Edit Data' menu option must still be internationalised. Any volunteers?

***********************************************

Any problems : e-mail eugene@reedflute.com

***********************************************

System RequirementsPlease be advised: this contribution was tested with something older than WebGUI 7.5. When this contribution was uploaded there was no field for the author to fill out regarding it's requirements.
Comments
4reedflute: "I have just been informed by an user that this wobject is broken under WebGUI 5.5.x.

I'm working on a bug fix and hope to upload to this area by next week 22 April"
4reedflute: "The PageWiz Wobject is seriously broken in WebGUI 5.5.x.

This is due to fundamental changes in the way that the discussion system works.

from the WebGUI 5.5.4 Gotchas file:

"* If you have any custom Message Board templates they will be destroyed as they no longer apply to the new discussion system. If you want to save them, please copy them to a safe location prior to the upgrade.

* If you were doing any custom coding against the userDefined fields in the old discussion system, please be aware that these fields no longer exist in the new discussion system due to the complexities of the new system.

* If you have any SQL Reports or custom macros that pull data from discussions then you'll need to rebuild them because the discussion data structures have changed significantly."

The changes required to get PageWiz to work on 5.5.x are not trivial and I can only afford to fix them when I need to do so for my own needs - which should be within the next three months.

In the mean time - if you have to use the PageWiz wobject you must either stick with WebGUI 5.4.4

OR

You may help by porting PageWiz wobject to WebGUI 5.5.x

Sorry about the inconvenience - but if the changes to the Discussion system was better documented things may have been different."
DownloadPageWiz-0.9.tar.gz PageWiz-0.9.tar.gz
LinksNo Support Offered
Statistics Downloads: 344
Views: 6003
Rating: 4
Updated: 8/12/2005
Keywords Assets
NavigationBack to the Bazaar
© 2018 Plain Black Corporation | All Rights Reserved