Page 1 of 1

PostPosted: Wed Aug 15, 2007 7:51 am
by compudude86
ok, i have a handful; of dataface apps, and would like a link to only appear in certain ones, but not all of the apps. is there a way to do this?

PostPosted: Wed Aug 15, 2007 9:49 am
by shannah

This is not a problem.Ê Any template can be overridden on a per-application basis by adding a template of the same name into the templates directory of your application's directory.

-Steve


PostPosted: Wed Aug 15, 2007 10:25 am
by compudude86
so, lets say i have 1 app, in a folder called book, in the www file. also in the www file, is a folder called "dist", which holds a few dataface apps, for example here, 1, 2, 3, 4, 5. so in my templates file, to change my header, i would make a file called 1_header.html ? thanks

PostPosted: Wed Aug 15, 2007 2:12 pm
by shannah

Not quite.

Am I correct in assuming that all of your applications are stored in separate directories?

If so, then suppose you have your #1 application in the www/dist/1 directory.Ê Then you would create a directory www/dist/1/templates where you can place templates for that application only.Ê You can copy template files from the dataface/Dataface/templates directory to your application's templates directory (www/dist/1/templates) and modify them to suit your purposes for that app.


-Steve