Reputation: 2221
I'm relatively new to Joomla so forgive me if this is a simple question. Anyway, I was given a template made from scratch to work on. This template has multiple pages such as index(obviously), blog and contact. My problem is aside from the index, none of my other layouts for the template appear. All I get is a white page. I'm suspecting it has something to do with my url (.../joomlaproj/templates/mytemplate/contact.php) Is there something I should add or change on my php file to make them appear. I've tried moving the contact and blog files outside the template folder but it still appears as an empty page. Why is this happening?
Upvotes: 0
Views: 272
Reputation: 6755
Besides reading the beginner documents and some documents on how to make a template, you should look at the core templates.
If it is a Joomla template your template should go into the templates/yourtemplatename folder and you should install it using discover install. But if you have not been given an xml file for it that is not going to work. The fact that you don't mention an xml file indicates to me that you do not have a Joomla template.
Joomla templates do have an index.php file, but you should open the file and see if the file looks anything like the Protostar or Beez index.php files. A Joomla template would possibly have a blog.php file which might be used to override the blog layout from Joomla and this file should look very similar to what you find in /components/com_content/views/category/tmpl/blog.php. It would be placed in the templates/mytemplatename/html/com_content/category folder.
Next you need to separate how you are thinking about content an how you are thinking about design.
Selecting one of the default templates (protostar in Joomla 3) set up your content. That is create your home page article, your contact page, and your blog page (with some sample content). Connect each of these to your navigation, and in general get the content working the way you want. Then using the design specifications you have been given you may need to create a layout override that matches it.
What is it that the contact.php file contains? You should show some code.
Upvotes: 1
Reputation: 19733
I think you might have misunderstood what Joomla is and how it works. It's a Content Management System and thus does not produce a static like website with simple PHP pages. You don't add each file such as contact.php and blog.php to the templates folder. You install an extension from the Joomla Extensions Directory according to what you require, create a menu item via the backend and assign the component to it.
Take a look at the Joomla docs to give you more details overview of it:
http://docs.joomla.org/Getting_Started_with_Joomla!
If you were given a choice of what to use for this project such as Joomla, Wordpress, custom coded etc, then have a quick think about how big the site is going to be. If it primarily a blogging site which will also include a contact form, then your best choice might be Wordpress. If it will contain more, such as a forum or any other more complex systems, then Joomla will be your best bet.
Hope this helps
Upvotes: 1