我有一个在 joomla 网站上以模式打开的页面。在该页面上,有一个链接到服务器上的文件的超链接。该文件会打开一篇 joomla 文章。当我在一篇文章上有一个链接到另一篇文章的超链接时,通常会发生的情况是,只有文章的内容显示在模式中,而不是框架中。但由于我使用 iframe 将超链接转发到文件,因此当它在模式中显示该文章时,它会显示框架。有没有办法让文章只显示内容,而不显示框架,同时仍然具有 iframe?我希望这个问题有意义。您可以在此链接上看到我在说什么,单击游戏模板:
http://zaazoo.thewebbusters.com/index.php?option=com_content&view=category&id=1&Itemid=2
如果您转到此链接,然后单击回合1、然后点击继续,您将看到文章如何仅显示内容而不显示框架。
http://zaazoo.thewebbusters.com /index.php?option=com_content&view=category&id=8&Itemid=4
任何帮助将不胜感激。
谢谢你,
戴夫
I have a page that opens in a modal on a joomla site. On that page, there is a hyperlink that links to a file on the server. That file opens up a joomla article. What normally happens when I have an a hyperlink on one article that links to another article is that only the content of the article displays in the modal, not the framework. But since I have the hyperlink forwarding to the file with the iframe, when it shows that article in the modal, it show the framework. Is there away to have the article show only the content, and not the framework while still having the iframe? I hope this question makes sense. You can see what i am talking about on this link, click on game template:
http://zaazoo.thewebbusters.com/index.php?option=com_content&view=category&id=1&Itemid=2
if you go to this link, and click on round 1, and then hit continue, you would see how the articles display only the content and not the frame work.
http://zaazoo.thewebbusters.com/index.php?option=com_content&view=category&id=8&Itemid=4
any help would be much appreciated.
Thank you,
Dave
发布评论
评论(2)
如果您只想显示文章,您可以将 &tmpl=component 添加到您要显示的 URL。
If you want to show just the article you can add &tmpl=component to the URL you are trying to display.
这可能不是最好的解决方案,但我建议使用 PhP include,例如:
由于 joomla 是基于 php 的,所以这应该可以工作,并且与 iframe 不同,include 将采用网站或模式的主题。
希望这有帮助:)
this might not be the best solution but i would recommend using a PhP include like :
Since joomla is php based this should work, and unlike iframes includes will take the theme of the site or modal.
Hope this Helps :)