show only the content of article

前端 未结 1 1486
北海茫月
北海茫月 2021-01-06 16:56

how do I only show content in a single article?

I am using Joomla 2.5 and Ajax to call a single article, but when I render the article in a

相关标签:
1条回答
  • 2021-01-06 17:43

    If you only want to get component you can append tmpl=component parameter with the url. Your article url will be like this-

    index.php?option=com_content&view=article&id=1&tmpl=component
    

    Or you can try like this-

    $('#result').load('index.php?option=com_content&view=article&id=1&tmpl=component #container');
    

    Loading Page Fragments

    0 讨论(0)
提交回复
热议问题