link per application, not global
Archived from the Xataface Users forum.
compudude86 — Wed Aug 15, 2007 7:51 am
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?
shannah — Wed Aug 15, 2007 9:49 am
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
compudude86 — Wed Aug 15, 2007 10:25 am
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
shannah — Wed Aug 15, 2007 2:12 pm
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