Working with designer
- Started
- Last post
- 13 Responses
- phirschybar
Hey all..
I am a php developer working with a designer and we are trying to work in strict XHTML. He is providing the structure (XHTML) and I am now populating the pages with content. Do you have any techniques or links to techniques or advice on how to use special tags to strip out the mock content on his pages and replace with the dynamic stuff. I want to be able to let him continue working on HTML pages and CSS without being affected at all by what I am doing on the dynamic end. I was thinking of inserting comments into the HTML files which would indicate where dynamic stuff begins and ends and then have php strip those areas out and replace. Anybody have advice? Need more clarification?
- stewart0
pfff, maybe DW templates will do?
- phirschybar0
nah, we are hand-coding everything.. no DW stuff.
- UndoUndo0
get him to define his own tags and place all content to be generated from php inbetween the tags?
use find and replace for the entire site ripping out the tags and inserting the code?
- phirschybar0
undo.. thats exactly what I am thinking. But my obstacle right now is how to do it well. I am thinking of adding comments before and after his "mock" content that he has on the template structure HTML page. And then doing a search replace while indexing the locations of the comments, so I can actually strip out the content. But this seems heavy handed... thoughts?
- SteveJobs0
one method might be server side includes. are you new to web dev?
- SteveJobs0
ahem, is he new to web dev....
*goes and gets some coffee...
- phirschybar0
steve.. no I am fluent in php but am wondering if this technique has been used, mastered or dealt with by others and is documented anywhere. The MAIN IDEA here is to allow the designer to continue being able to design and change the structure of the HTML page without me having to touch it all all. All content is coming from a DB
- UndoUndo0
ummm...... you would have to predefined yr tags/comments and work out what you need before you both start and ensure the designer placed the right tags in the right locations or disastor could strike!
is this a massive site? because it wouldn't take long to insert php for say 30 pages, other than that i would conider getting the designer to work from a number of templates and or get the designer to design a number of templates, drive the whole site from a database and get php to generate the pages.
hope that helps
- SteveJobs0
yeah, i'd still recommend ssi...
- JazX0
Do you have any techniques or links to techniques or advice on how to use special tags to strip out the mock content on his pages and replace with the dynamic stuff?
phirschybar
(Apr 27 05, 06:35)Superglue
- phirschybar0
this is a very similar approach to what I am looking for...
http://www.alistapart.com/articl…
only thing that sucks about this is that I would have to replace the mock content with 'require' statements... hmmm...maybe there is a way around this?
- BZZZP0
"special tags" i think you mean regular eexpressions.
put each of your php output blocks in include files.
also, go heavy on the oopish side with the php, so he can get stylistically into the generated content without actually rooting around in the code.
- phirschybar0
any examples of the OOPish style you refer to? links?