Loading...
 
Features / Usability

Features / Usability


Executing server-side code?

posts: 4

I've been working with Tiki for a couple days now, and I can't find anything directly on this topic. I'm looking at various CMS systems to migrate an ancient site into. One thing I've started doing, and will continue to do, is to write PHP classes that can handle various tasks. For instance, one page has a signup form for training classes we offer. The form calls one class method to get an array of class ID numbers and descriptions, which is then passed to another method to create a select list displayed in the form, e.g.:

$selectBox = $forms->makeSelectBox($classes->getClassList());
echo $selectBox;

From what I gather on Tiki, this sort of code can't be included directly in a page anywhere. How would one go about handling this sort of task from within Tiki? That is, displaying material built from database queries, form submissions, etc. I see a couple options, like dynamic content or direct sql queries, but I think some sort of plugin is also a possibility if I'm reading the docs correctly. What do others do in this sort of situation?

posts: 400
I would try Trackers first. If you create one tracker that has the class information, then it's easy to refer to that in another tracker for a drop down list. Trackers are also used to create forms.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting