| [ PHPXref.com ] | [ Generated: Sun Jul 20 16:34:05 2008 ] | [ Back-End CMS 0.7.2.1 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 To try to avoid some confusion about the shift from .4.x to .5.x, thought I'd clarify a few things here: 2 3 BE0.4.x BE0.5.x 4 5 Public Files 6 Note: as in BE0.4, this can be adjusted 7 main_file.php index.php 8 9 10 Config Files 11 Note: there are two config files as BE0.5.x is now a module of phpSlash 12 includes/settings.inc public_html/config.php3 & public_html/BE_config.php 13 14 15 Admin View 16 BE0.5 uses sessions so when you have logged in admin options stay with you. You can browse the site (much as a regular user would), however admin options will be presented on each page. To break out of the admin view you need to logout. 17 18 19 Templates (why are there so many of them) 20 BE0.4.x used a single template to define a whole page. BE0.5.x uses three (esentially). slashHead.tpl, BE_body.tpl & slashFoot.tpl. It's more complicated than this as phpSlash's blocks allow you to add left or right had columns all through the web form. It does make it more complicated to set up, however it becomes a lot more powerful & easy to maintain. The template option in the admin web form allows you to specify a new look for a specific page or article. If you created a template 'newlook' it would look for slashHead-newlook.tpl, BE_body-newlook.tpl & slashFoot-newlook.tpl. If it didn't find one of them, it would just use the default (ie. slashHead.tpl, BE_body.tpl or slashFoot.tpl). If you want to add threading to most web sites you could do this pretty easily by just adding a slashHead-thread1.tpl. 21 22 To upgrade your templates from .4.x the critical piece is to know where to splice them. You would do this much as if you had a simple header.inc or footer.inc file. if you had a template which you had called 'home.tpl' that you wanted to use on the home page of BE5 you could split it into slashHead-home.tpl.tpl, BE_body-home.tpl.tpl & slashFoot-home.tpl.tpl. The double '.tpl' would be required unless you change the template name to 'home' in your database. 23 24 Best place to look for what BE5 is doing with the templates is in the source. Viewing the source will show you which templates are being called to generate a given page. 25 26 Mike 27
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |