That was very helpful, as for the inludeObjects listing, what should be your approach? Create a function that lists the filenames of the directory and then output in a ftlist?
On Apr 7, 12:43 pm, "[email protected]" <[email protected]> wrote: > Ok awesome, thanks. > > On Apr 7, 12:41 am, AJ Mercer <[email protected]> wrote: > > > attached. > > > It is extremely half baked - knocked up quickly to scratch an itch. > > > TODO: Rule update() should retrieve a list of existing inludeObjects. At the > > moment you have to type the filename in yourself. > > > 2009/4/7 [email protected] <[email protected]> > > > > Hi AJ, i believe it is related to: > > > >http://groups.google.com/group/farcry-dev/browse_thread/thread/444b19... > > > > Could you share your code? > > > > Thanks, > > > > Marco. > > > > On Apr 6, 3:07 pm, AJ Mercer <[email protected]> wrote: > > > > Thanks Jeff. > > > > > The includeObj does start with underscore. > > > > There are other files in there already (site map and cuntauct us) that > > > are > > > > not showing up either. > > > > > I have just gone and created my on rule for Include Obj - this is doing > > > what > > > > I want > > > > > 2009/4/6 Jeff Coughlin <[email protected]> > > > > > > > When I go to select an Include, the only one that is showing in > > > > > > 'search' > > > > > > > What is the rule looking for to add items to the list? > > > > > > Depends on what version of FarCry you have. As of FarCry 4.0.4 > > > > > include files must be prefixed with an underscore (since you're using > > > > > 4.0.11, this includes you :) ). Previously you just needed a .cfm > > > > > file to exist in the includeObj folder. > > > > > > There is an open bug for this, however after 2 years I've just become > > > > > accustomed to using underscores (http://bugs.farcrycms.org/browse/ > > > > > FC-806). For the most part I've moved most of my stuff to rules now > > > > > anyway - which so far doesn't require underscores. > > > > > > The other requirement when adding a new include file is to update the > > > > > app scope (the include file listing is cached). > > > > > > Regards, > > > > > > -- > > > > > Jeff Coughlin > > > > > Web Application Developer > > > > >http://jeffcoughlin.com > > > > > -- > > > > AJ Mercer > > > > Web Log:http://webonix.net > > > -- > > AJ Mercer > > Web Log:http://webonix.net > > > farcry4_0_11-includeObj_rule.zip > > 2KViewDownload > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
