简体   繁体   English

Joomla:页面中仅包含文章标题

[英]Joomla: Include only article title in page

I would like to only include the title of my article on a specific section of my page. 我只想在页面的特定部分添加文章标题。 How can I do so? 我该怎么办?

It would be great if I could do something like the following: 如果我可以做以下事情将是很棒的:

<jdoc:include type="component" attribute="title" />

I am using a custom template and would just like to separate the article title from the content. 我正在使用自定义模板,并且只想将文章标题与内容分开。

In Joomla there no option to show something like, 在Joomla中,没有显示类似的内容的选项,

<jdoc:include type="component" attribute="title" />

for showing the article title. 用于显示文章标题。

You can use Joomla default com_content component for this its have all basic layouts available, In additionally you can override these layouts to your template folder for making entirely different layouts. 您可以为此使用Joomla默认的com_content组件,它具有所有可用的基本布局。此外,您可以将这些布局覆盖到模板文件夹中以制作完全不同的布局。

by default Joomla article manager have following layouts. 默认情况下,Joomla文章管理器具有以下布局。

1) Blog :- Showing all article title with its content (the content can be limit with read more option) 1)博客:-显示所有带有其内容的文章标题(该内容可以使用更多选项进行限制)

2) Category :- Show all categories as a link. 2)类别:-显示所有类别作为链接。

3) Single article :- Show single article in a page with its title and all 3)单篇文章:-在页面中显示其标题和全部的单篇文章

and more. 和更多。

If you check with menu manager you will get all these options and more with article type. 如果您与菜单管理器联系,您将获得所有这些选项以及更多文章类型。 Just create a menu choose its article type and proper layouts, like blog,single article or category etc. 只需创建一个菜单,然后选择其文章类型和适当的布局即可,例如博客,单个文章或类别等。

Hope its make sense.. 希望它有意义。

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

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