Sounds ok cept for the things noted below.

Gavin Cooney spoke the following wise words on 4/06/2004 2:26 PM EST:
*/Home Page:/*
Use a normal dmHTML page with a display method using cfmodule or cfinclude to include the table (will be list) of subjects. This will use the buildlink tag to create the links based on navalias of the courses (see below).

Sounds alot like a publishing rule to me. IMO generally most things are best implemented as either dmInclude or a publishing rule -- allows reconfiguration without having to change any physical files and you have less templates. If you want to share the rule amongst certain pages then you could either make a new template, change an existing template, make your rule aware of where its being called from and only display when neccessary or make a second rule which modifies the content of the first rule depending on where its being called from.


Use another cfinclude to include the swf that will show the previous user tests.

The url would be something like: /go/mcq/

*/Configure Test in a subject:/*

I was going to create a navigation node for each subject each containing an include in farcry. These would be arranged by exam so the structure would be something like:

When it comes to maintainability and getting access to all those lovely farcry things custom types are your friend. You might consider these instead of includes?


-High School Certificate
--Mathematics
--English
-School Certificate
--Mathematics
--English

And then the url would be /go/mcq/hsc/Mathematics

The navalias for each subject would be say subject_12345 where 12345 is the subject id. This means the my include on the home page could loop thru the subjects and do a buildlink based on “subject_” & subject_id.

If the navalias was subject_12345 then the url would be not as above but as: /go/mcq/hsc/Mathematics_12345


Sounds like it would work but I think this might be better:

- Have a custom type bosExam. Create your nav nodes for your subjects and under each nav node create your bosExam type and set the subject ID in the PLP. The display for the custom type can just add the subject id to the flash vars accordingly.

- On /go/mcq/ have a publishing rule that builds the table of links to the bosExam objects and another publishing rule that inserts the swf of the users previous tests.

This is a form that submits to itself, so that should be ok using a farcry include.

You can check for form vars from publishing rules (which is how I currently handle form submissions.)


The redirect when this is completed is not done yet because CFCOOKIE may be used on this page, and if it is that messes up using a CFLOCATION. I was thinking of using getPageContext().forward(url) to send the user to the test page…..

Well apart from the cookie issue this will probably will nicer for the user anyway.


*/Test Page:/*

I was just going to leave this page as is in the root folder, and the Application.cfm and OnRequestEnd.cfm will log the time spent etc (we already do this but no harm!). So this would be out of farcry really.

ok.

*/Test Results Page:/*

Was going to do this as an include in a navnode off the multiple-choice homepage. So the url for a particular test would be something like: /go/mcq/test-results?testid=123&testuuid=some_uuid

Then, of course, I will put all the admin stuff in a custom tab in the farcry admin.

ok.

Is this the right way to be going about it, or should I be using custom types or something else?

I guess it depends how much of the FarCry framework you want to leverage. If you plan on moving this app to be more FarCry centric (which is what it sounds like as you want to use the tree etc) then custom types and publishing rules are most flexible.


If you want to keep the app portable and usable outside the framework then you may want to stick with includes -- although none of your app logic would have to change if using custom types and publishing rules so I don't see why you'd stay with includes.

I am expecting up to a few hundred thousand page views in this part of the site per day around the time of the real HSC exams in October/ November. This is based on 20,000 tests or more by 5 or ten page views per test. If I have my navigation etc cached properly do you think farcry would be ok for this task?

Not sure about the load (you'd have to make a proof-of-concept and test this yourself). Its very easy to add caching around containers in templates. You'd have to deal with your own caching with includes.


-- tim lucas

http://www.toolmantim.com

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to