× Joomla Facebook Connect support forum

Topic-icon How to find template files

Active Subscriptions:

None
14 years 4 months ago #17961 by sitepicture
Hello, I'm not new to Joomla, but I don't really edit template files unless I know where they are located. I have firebug and httpwatch, but I wanted to know if there is a way to find the template files that are being called. For Example: If I try to get to this link which is exclusive to my sites members, I want to add the JFBConnect button to this page www.sitepicture.co/viewvideo/22/site-pic...nterview-part-1.html

I have others also, but I don't know where to go to edit the template file, is there a way to find out? I have a support team that can look into this, but I wanted to see if you all have a quick answer. Thank you for your help. Derrick
The topic has been locked.
Support Specialist
14 years 4 months ago #17969 by alzander
Replied by alzander on topic How to find template files
Derrick,
There's not always a sure-proof way to find the template files, as each extension developer can do things differently. There are some good suggestions that may help though.
* Turn off SEF, temporarily
* Navigate to the page you want to go to
* Usually, the URL will look like:
index.php?option=com_content&view=article&id=10 (This is using the component com_content to view an article with the id of 10)
There may be many extra parameters in the URL, but just a few that are key:
option=com_content - look in directory of /components/com_content
view=article - narrows down the directory to /components/com_content/views/article/tmpl

If present, there may even be a parameter for layout=blah, which would tell you it's the blah.php file in the tmpl directory above
If not, if you look at the tmpl directory, it may be obvious which file is being called. If not, you may need to test.

Finally, Joomla allows things called template overrides. Once you get the path above, you should check the following folder:
/templates/<YOUR_TEMPLATE>/html/com_content/
If the file you want to edit is there, make the edit there. If it isn't, you should generally create the directory above and copy the file from the /components directory to the /templates directory. This creates a template override, which means that your changes won't be undone when you upgrade the extension you're modifying.

Hope that all helps and isn't too confusing. If you have any other questions though, just let us know!

Thanks,
Alex
The topic has been locked.