link per application, not global

A place for users and developers of the Xataface to discuss and receive support.

Postby 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?
compudude86
 
Posts: 59
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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

--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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
compudude86
 
Posts: 59
Joined: Wed Dec 31, 1969 5:00 pm

Postby 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


--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 5 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved