开发者

Joomla, include content

I am building one web site. I build some modules which hold menu, logo, news... Inside a news module I have link Read more, and when I click on that link it's open new web page. Problem is I can't see any text in this new windows.

How I can include module wh开发者_运维知识库ich will display text like this?


You need to give us a lot more information before we can answer. I can tell you this though -

Joomla builds a site based on the default template. The template will have an index.php file that will be the basis for each page. Joomla parses the URL query string to determine what "page" is supposed to display. In that template there should be a bit of code that tells Joomla to display the output of the appropriate template. It looks like this -

<jdoc:include type="component" />

The output of your "news module" should display here. The template will also have various positions that display around the component, these are called module positions. They will typically look like this -

<jdoc:include type="modules" name="right" style="xhtml" />

This would display the modules that have been placed in the "right" position.

The reason you don't see any text can be anything, your template, the component, an error in a module, bad CSS, bad javascript, the list is infinite. We need to know what component you are using, the modules, the code being executed, and a link to the site would be nice.


I think it will be better to create a new custom module in joomla. In this custom module you can paste you HTML or insert you content and from Read More button in the bottom of the editor you can insert the read more link in the content. I think it will be work fine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜