Jump to content


Content solution?


3 replies to this topic

#1 Brandonador

    Young Padawan

  • Members
  • Pip
  • 238 posts
  • Gender:Male
  • Location:Michigan
  • Interests:I really love computers. Especially the internet, and discovering new people's ideas, and designs. Love to look at different layouts and coded designs that people come up with. And Flickr, one of my favorite sites...

Posted 15 March 2007 - 08:55 AM

Ok, well, I have made my new design for my website.. a simple.. website template I made in Adobe Photoshop and coded in Dreamweaver.. and I kind of ran into a problem. And I don't know what to do. Basically how can I manage the content on the front of the page, because I still want it to be my blog also. And I would like to add pages with tutorials, FAQs, games, etc etc. I was thinking about just doing this..

<?PHP include("header.php") ?>
<?PHP include("navigation.php") ?>
Content here.
<?PHP include("footer&misc.php") ?>

But, I don't know if this is the easiest way, and an actually safe and simple way to organize dynamic content on each page. Such as the tutorial pages, contact page, etc etc. What ideas do you have on this? I pretty much am stomped on what to do. :angrylooking: :P

Brandon

#2 _*Creative Insanity_*

  • Guests

Posted 15 March 2007 - 09:39 AM

Just use one page and categories.
Like the links would be like:

<a href="pages.php?cat=tut">Tutorials</a>
<a href="pages.php?cat=blog">Blog</a>
<a href="pages.php?cat=faq">FAQ</a>
In the database have a category field to hold the category names.
Then when you enter data in your admin panel the add page has a dropdown with the choice of categories you have.

#3 thedanharkins

    Young Padawan

  • Members
  • Pip
  • 24 posts
  • Gender:Male
  • Location:Kalamazoo, Michigan
  • Interests:Graphics, Webdesign, Gaming, Game Customization, Parkour, Movie making.

Posted 15 March 2007 - 04:42 PM

Yea, use the GET php command in your page. And have your header and footer all set up on the index.php and have the include be something like,
<?php include ('$page.php') ?>

And have what ever link you click make the page = that like,
<a href= "index.php?page=home">Home</a>
and then just upload both pages, but make sure that home.php doesn't have any of the header or footer code.

I'm not good at explaining in detail, but hopefully it will be enough to get my point across.

#4 Brandonador

    Young Padawan

  • Members
  • Pip
  • 238 posts
  • Gender:Male
  • Location:Michigan
  • Interests:I really love computers. Especially the internet, and discovering new people's ideas, and designs. Love to look at different layouts and coded designs that people come up with. And Flickr, one of my favorite sites...

Posted 15 March 2007 - 07:14 PM

Alright, thanks. :) I figured out how to do it. Haha, I renamed the normal, "page" variable to joystick.. :google:^_^.

Brandon





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users