We've got a joomla website and are now in the process of developing a sencha-touch application to complement it.
Since our website is in joomla, I don't want to have t开发者_StackOverflow中文版o write any PHP to extract page data separate from the main site.
Is there any type of querystring parameter that can disable the theme?
IE:
http://example.com/about-us?show-theme=false
If this is not possible, is there any other option to achieve similar results?
index2.php is depreciated and is no longer supported in new versions of Joomla. What you are looking for is ?tmpl=component. You can add that to any Joomla URL and it will only display what you have coded in the /templates/YOUR TEMPLATE/component.php file. The default loads just the component output, but you can customize it to do what ever you want.
Do I get your question right: you want to extract the content from the page, without menu and so on? 2 possibilities, then:
- Extract it from the concerning RSS feed (of the front page, of a category ... if you need more options you can install an component such as Total RSS
- Use index2.php: example site (This doesn't seem to work if you use URL Rewriting as in your example URL.)
you can add format=raw in the URL. This will only output the content of the component and not the template.
This is used to show printable pages. You may have to create a view.raw.php file along with the view.html.php
精彩评论