Re: Templates/Graphics/Text

From: Date: Tue, 01 May 2001 14:13:55 +0000
Subject: Re: Templates/Graphics/Text
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51201@lists.php.net to get a copy of this message
Personally I prefer to do the following: -Include things like navigation, banners, etc in a nav.inc file. Since this is loaded first I include meta tags for search engines in here -My content goes in individual files, that can be dynamically loaded -I have a third "footer" file which includes anything at the end, such as table closings and the graphics to close up the site As long as the meta tags are in the main page (ie the nav in my example), the search engine can parse it out and display it. They just won't get a url with a ?something=something. I may be wrong though. That's just how I do it Chris Anderson aka "Null" -------------------------------------------- PHP Developer / Nulltech PHP-GTK Grunt / gtk.php.net STA-DoD, TO and DDay Administrator / www.stronger.org DOD Co-Owner / www.dayofdefeat.com Zeroping Staff Member / www.zeroping.com Volition Programmer / www.Volition-net.com ----- Original Message ----- From: "Ashley M. Kirchner" <ashley@pcraft.com> To: "PHP-General List" <php-general@lists.php.net> Sent: Wednesday, May 02, 2001 5:27 PM Subject: [PHP] Templates/Graphics/Text | | I'm trying to figure out what's the best way to do something that | may be simple, however I can't for the life of me envision it. | | I want to have three files as follows: | | [ NOTE: I may be thinking of this the wrong way (by thinking up | three files.) If someone has a better suggestion, please speak | up! I'm willing to entertain other solutions. ] | | -> img_template.php (which contains the full, graphical | website page, except for the content) | -> txt_template.php (which contains the full page, without | any of the bells and whistles, graphics | javascript and all) | -> content_page.html (which is the actual content) | | This is where I get stuck. What to do? To me, the easiest seems | to be one single (control) file for the whole site, which then loads | up the content based on the URI. For example: | | http://our.web.site/index.php?page_to_load | - this will grab the img_template.php file, then | - fetch 'page_to_load.html' and insert it into the template | and serve it. | | However, will this pose a problem for search engines? Or for | anything else? I don't know. Anyone? | | Now, we would also like to have the whole site be in text format | (really a slimmed down page without all the graphics, roll-overs, easy | to print and such). | | I'm thinking, add another variable: | | http://our.web.site/index.php?page_to_load&format=text | | or: http://our.web.site/index.php?page_to_load&format=graphic | | But again, how will search engines handle this? | | And, I would also have to be able to dynamically update any anchor | links that show up in the content so it knows what it needs to link to | in terms of format. Somewhat stupid to have someone click on a | 'text only' link, and when following another link from that it drops | back to a graphic based page. | | | Call for comments. Suggestions. A blow to the head. Something. | I'd like to make this so that future site re-designs won't be as | painful as this one is turning out to be (currently all 500+ pages of | the site have everything hard coded, so changing something in say a | menu causes a real problem). | | And yes, I've looked at FastTemplates and I'm, uh, somewhat lost, | but that may be because I haven't really spent a whole lot of time | reading up on it. Also, the stuff on there dates back to 1999 - has | it not been updated recently? Or did it not need any? | | AMK4 | | -- | W | | | I haven't lost my mind; it's backed up on tape somewhere. | |____________________________________________________________________ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Ashley M. Kirchner <mailto:ashley@pcraft.com> . 303.442.6410 x130 | SysAdmin / Websmith . 800.441.3873 x130 | Photo Craft Laboratories, Inc. . eFax 248.671.0909 | http://www.pcraft.com . 3550 Arapahoe Ave #6 | .................. . . . . Boulder, CO 80303, USA | | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net | For additional commands, e-mail: php-general-help@lists.php.net | To contact the list administrators, e-mail: php-list-admin@lists.php.net | |

« previous php.general (#51201) next »