简体   繁体   English

Joomla链接到准系统文章内容

[英]Joomla link to barebones article content

I know a trick to make link to article without template ( tmpl=component ), but I see that it still links some styles: 我知道在没有模板的情况下链接到文章的技巧( tmpl=component ),但是我看到它仍然链接某些样式:

index.php?option=com_content&view=article&id=171:uvjeti-plaćanja&catid=19:poliklinika&Itemid=101&tmpl=component

Is it possible to create link to just bare bones data you'd see in content editor for example? 是否可以创建仅链接到您在内容编辑器中看到的裸机数据的链接?

It would be prefferable if nothing else but pure article content is returned. 如果只返回纯文章内容,那将是可取的。 No html, body, head ... tags. 没有html, body, head ...标签。

I have ended up creating file raw.php which contains following code: 我最终创建了包含以下代码的文件raw.php

<?php defined( '_JEXEC' ) or die( 'Restricted access' );?><jdoc:include type="component" />

I have placed this into my template folder and I can just call it with following url: 我已经把它放到我的模板文件夹中了,我可以用下面的URL来调用它:

/?option=com_content&view=article&id=171&catid=19&Itemid=101&tmpl=raw

Analog to that you one can make new.php , place it to folder of current template in use and call it with &tmpl=new argument. new.php您可以制作new.php ,将其放置在使用中的当前模板文件夹中,并使用&tmpl=new参数调用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM