- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Joomla. How to work with Display News module
June 2, 2012
Display News Module for Joomla是一个灵活、直观和强大的解决方案,用于在您的Joomla网站上发布内容.
Installtion
If your template comes with this module, you can find it in the /sources/modules/ folder of your template package. On the net, the module can be downloaded at http://extensions.joomla.org/extensions/news-display/articles-display/frontend-news/736
Open your Joomla your admin panel and go Extensions -> Extensions manager -> Install -> Upload Package File. 点击“浏览”并导航到的位置 DisplayNews.zip folder on your computer. Click on “Upload & Install” and wait till the module is successfully installed.
如果您可以将当前内容替换为实时演示示例数据,则可以继续执行 http://info.template-help.com/help/phpmyadmin-how-to-import-sample-data-dump-file.html
Otherwise, you will have to create the module manually. Go to the menu Extensions -> Module manager and click on New. Under Select a Module Type click DisplayNews.
Configuration
The Dismplay News Module 有多种选择,了解它们的最好方法是创建一个新的 module and play around with the options. 打开每个工具附带的文档文件 Joomla template 您需要在哪里找到列出所有模块的表. 的相应字段中复制并插入该流 module configuration page:
- Title;
E.g. Home articles
- Module Position;
e.g. user-6 etc
- Module Class Suffix (goes under Advanced Options -> Module Class Suffix) e.g. -home
其余选项的配置方式完全取决于您. 如果你把鼠标放在每个选项上,它会给你一个简短的描述,告诉你每个选项的作用. Lets’s take a quick overview at some of them:
Basic Options
- Count: enter 您希望在此中显示的许多项 module (0 for unlimited); E.g. 3
- Columns: set how many items to show per row; e.g.1 etc
- Order select the order for your articles. E.g. 订单,这意味着您的文章将按照订单栏输入的文章管理器;
- Layout select the style to display the content items; E.g. Flat
- Date type 允许您选择用于显示和过滤的日期类型,例如.g Creation
Content Selection Options
- In Set category type choose ”only selected”;
- Set categories by selecting one or some categories, 您可以将显示的项目限制为特定类别中的项目. The category can be created in the Content -> Category manager ->Add New Category , 在哪里需要指定类别标题、别名、设置状态为 published, click Save and it will appear in the list.
- Set articles select the articles that you have under Content -> Article manager. Usually the same value as in Count;
以下是文章内容的一个例子(建议在介绍文本之前放一张图片,并通过“阅读更多”按钮将介绍文本与其他内容分开):
Title Options
- Show Article Title allows you to show/hide the article title;
- Title Likeable makes the item title likeable;
- Title Tool Tip prefix;
- Filiter and Linit Title removes any html 介绍文本中的格式和特殊字符(出现在“ReadMore”之前). Here it can be limited by chars ir words;
- Length limit title 根据您在这里设置的值减少文章标题的长度.
Text Options
- Text 允许您选择显示内容的方式.g Intro Only
- Text Linkeable 允许您将介绍文本转换为指向该项目的可点击url
- Text Format allows you to remove any html formatting and special characters in the text
- Limit Text allows you to limit the text that is displayed
- Limit text length 允许您根据字符数限制文本,e.g 100
Image Options 允许您配置您在文章中使用的图像:to disable /enable them, make them clickable/unclickable (pointed to the full version iof the article); specify the number of images (如果需要显示所有图像,请留空).
For instance, if the Show images is set to "Separately" you can set the module 只显示介绍图像标题及其标题,而不显示介绍本身或文本的完整版本.
注意,如果您需要激活可用的选项 Image Re-Sizing, a BK-Thumb image plugin for Joomla should be installed.
Category Options
- Category Name allows you to disable/enabe it
- Category Linkable 允许您将类别名称转换为链接
- Text more 显示的文本是否为完整的阅读更多链接 module
- Show more category auto 当设置为yes时,允许您创建指向所有类别项目列表的链接;
Date/Author/Read More/Rating/Hits Options
- Date 允许您显示/隐藏文章的日期;
- Date/Time format 控制显示您的日期和时间的方式吧,欲了解更多信息请参考 http://php.net/manual/en/function.strftime.php
e.g. %a, %B %d
对于默认格式,只需将字段保留为空;
- Show Author or hide the author of the articles;
- Show Read More 允许您命名/禁用按钮和下一个选项 Text readmore 允许您指定此按钮的文本;
- Readmore tooltip prefix, please refer to http://docs.joomla.org/How_to_add_tooltips_to_your_Joomla!_website;
- Show Rating/Hits of the user or hide them;
Scroll Options
- Scroll 允许您使您的内容项目滚动在右,左等方向;
- Specify the height of the scroll;
- the scroll speed;
- Scroll delay 以毫秒为单位显示/刷新滚动数据, the lower the number, the quicker the speed ;
- Make your scrolling items pause on mouse over;
Popup Window Options: t他的一组选项允许您启用/禁用 pop-up in this module, specify the url for the pop-up; the pop-up window height and width in pixels.
Item ID Options: The Itemid 是Joomla用来决定哪些模块和模板需要出现在页面上的. 该选项为您提供了一种将itemID分配给 module,以便在MainContent中显示其他模块
Template Options 为您提供静态和动态过滤,以对其进行样式设置,并在 Static and Dynamic raw templates:
To see the 静态和动态模板命令的语法,鼠标移到它们上面.
for the 静态行模板(比较简单)可以使用
%s – if you need to add a section,
%c – category,
%d – date,
%a – author,
%t – title,
%h – hits,
%i – intro text,
%f – full text
%m – read more
Etc
In order to reset the default templates, 只需清除所有字段并保存更改, the next time you open it, the default ones will be there.
Integration Options 像准备内容插件应该启用准备插件支持,例如.g. if you use BK-Multithumb
Advanced Options
- Module Class Suffix Apply a CSS suffix to the module
- Caching. Use Global/No Caching. Whether or not to cache the content of this Module. A setting of "Use Global" will use the Cache Settings from the Global Configuration screen.
- Cache Time. The length of time, in minutes, before the Module is re-cached.
Under Menu Assignment -> Menu Selection select the pages you want to the module to appear on. Make sure that the module status is set to Published and click Save.
下面有一些示例,说明内容项在其中的外观 module:
Support for the Display News Module is provided at http://joomla.rjews.net/forum.
请随时查看下面的详细视频教程: