8
I wish I had caught this sooner. We shall have to track the regular forums more closely since Formulize is getting "into the wild" through the repository (we're used to thinking of it existing only on the dev.xoops.org site).
Anyway, Formulize and Pageworks would be good for this kind of thing, but I imagine based on the timing of these posts, that something else has been done to fill the void.
The documentation for Pageworks is still more in the "reference" side of things and not enough "how-to", but writing good docs, especially for development tools, is challenging.
Anyway, in a nutshell, for anyone reading this now or in the future who is wondering how it could be done....
1. Make a form that people can fill in with the info you want. Add a field that is only visible to your moderator group which they can check off if they want this posted as news, or whatever you want to call it.
2. Make a Framework for that form alone (create a second "dummy" form with one textbox to use as the second form in the Framework).
3. Make a Pageworks page that connects to the Framework and then use some custom code sort of like this to handle the display of the info...
foreach($data as $entry) {
if(display($entry, "publish")) {
print ""
. display($entry, "name") . "";
print ""
. display($entry, "team") . "";
print ""
. display($entry, "age") . "";
}
}
4. Make a block that contains the Pageworks page and put that block on your site whereever you need it displayed.
That's only an overview obviously, but it's all doable through configuration in the admin-side, except for the small custom code you'd need in the Pageworks page to control the formatting of your info.
--Julian