Jump to content
jcc5018

creating page templates

Recommended Posts

Hi, I am currently building a portfolio using the drag and drop design software wix. I have tried coding it myself in dream weaver but I always get hung up the design. So What i want to do is get the basic ideas of the site with the WIX program, and then recreate it myself in dreamweaver as there are some things that the program can not do that I would like. My problem has been in the design process though. I always read to code repeating items in separate files so you only have to change one file if something changes. Things like the header, footer, navigation, ect.My question is, what is the proper way to include these elements. In the past I have designed a basic CSS layout and then I'd include the various elements with PHP include. For the navigation, I tended to use PHP switch statements to load the appropriate content into the content portion of my design. Unfortunately this results in having only one web address that doesnt change to the various pages. I'm assuming the proper way would be to include the different elements into the content index file itself. Does that make sense? Is there a way to do this without PHP? How do the different sections fit within the <body> tag? What's the best process in putting all these parts together and organizing them within the site folder structure? If this is not clear, I will try to provide an example. Thanks for any help.

Share this post


Link to post
Share on other sites

No, without something like php your template approach doesn't make sense. Templates need to be dynamic. So, I'd do the php tutorials if I was you and give serious thought to kicking the front-end habit (wix, dreamweaver, etc) at least until you can demonstrate the basics.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...