blesseld Posted April 23, 2010 Share Posted April 23, 2010 Hey, I started working on my Simple CMS... and I understand how to create/store content to a db, however I am having a hard time trying to figure out how to put it all together. My main problem is using the title to create a file that will then load the db content. website.com/my-page.php where my-page.php is stored in an Articles directory, with an include of some sort to retrieve the content. Can anyone point me in a good direction? Thanks, all help is appreciated. Quote Link to comment Share on other sites More sharing options...
teamatomic Posted April 23, 2010 Share Posted April 23, 2010 Yes, dont use the title, its supposed to be descriptive and contain keywords. Instead use the page_name to get the stored contents. HTH Teamatomic Quote Link to comment Share on other sites More sharing options...
mrMarcus Posted April 23, 2010 Share Posted April 23, 2010 Yes, dont use the title, its supposed to be descriptive and contain keywords. Instead use the page_name to get the stored contents. HTH Teamatomic for SEO purposes, having your page name as the same as the title, because of the usage of relevant keywords, is standard. Quote Link to comment Share on other sites More sharing options...
teamatomic Posted April 24, 2010 Share Posted April 24, 2010 Didnt say dont use the page name in the title, said dont use the title for determining the page to display. index.php?page=about is a lot better than index.php?page=about the widget company and its board of misdirectors or having to parse out the content holder from the title. HTH Teamatomic Quote Link to comment Share on other sites More sharing options...
blesseld Posted April 29, 2010 Author Share Posted April 29, 2010 Ok, I understand that, But would: domain.tld/my-page-name.php be better than domain.tld/page.php?page=my-page-name or does it not matter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.