0

I need some help with integrating Joomla to an existing site. The existing site is made of several .php files which shows static text.

I have copied all css and js files to a new template in Joomla and the design seems to work pretty well.

I want to make an article in Joomla for each .php file in the old site containing their 'news'. Here's my question: how can i make my template print the article's title and content based on a $_GET id?

TylerH
  • 20,799
  • 66
  • 75
  • 101
shuwo
  • 879
  • 2
  • 8
  • 7
  • 1
    Are you trying to keep the old content in the .php files? In the long run, it might be easier to migrate all of the content into standard Joomla articles, then set your article titles accordingly. Otherwise, it sounds like you may want a combination of a custom component and some calls to the JDocument object. – jlleblanc Feb 17 '10 at 20:26
  • can you explain more about "custom component and some calls to the JDocument object" please? there are about 200 articles so i dont feel like copy-pasting them into joomla manually.. – shuwo Feb 18 '10 at 11:40

2 Answers2

0

Do you have a sandbox where we can see your work in action?

greenkoi
  • 306
  • 1
  • 2
  • 8
0

Try adding this code after <head> tag in your template file.

" <jdoc:include type="head" />"

thomasbabuj
  • 3,779
  • 3
  • 24
  • 22