的Joomla! mod_article_category错误的链接

时间:2013-10-02 23:16:08

标签: php url joomla module

我在这里遇到麻烦。

我一直在寻找一个anwser的网络,但我没有找到一个详细的enought 为我在joomla的 noob level ! (2.5这里)

我使用模块mod_articles_category来显示应链接到整篇文章的文章样本列表。

我创建了一个绑定到Articles类别的菜单(名为article,链接articles)。 (我听说有必要)

所以,当我点击示例文章列表中的链接时会发生什么?

  • 我使用此网址mysite.com/index.php/article/1-a

  • 登陆同一页面
  • 页面没有任何样式,css / js文件的所有路径都是错误的

点击链接后我想要什么?

  • 我想登陆显示整篇文章的页面(比如你看到的wordpress?),但我的模板文件夹中只有一个index.php文件(当然还有样式和xml)。我该怎么办?

非常感谢!

- 编辑 -

哼哼最后我觉得问题来自于我的$ this-> baseurl更改了我的菜单名称。

示例:

如果我拨打我的菜单Popopo及其链接domdomdidom,则网址将为mysite/index.php/domdomdidom/1-a,而我的$ this-> baseurl /domdomdidom将导致我的所有路径崩溃。

关于如何修复它的任何想法?

我的路径就是这样:

<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/reset.css

再次


/ * ANSWER * /

问题来自网址重写配置(SEF)。我将其关闭,我的样式又回来了;)(但文章没有显示,我仍然得到列表..这是另一个问题,这个是好的)

另外,为了更好的URL,请将htacces.txt更改为.htaccess并检查第二个Url Rewritting(您甚至可以重新激活SEF)。

对所有这些噪音很抱歉。

1 个答案:

答案 0 :(得分:0)

试试这个,

在菜单管理器中创建一个名为Blog or Articles

的菜单

根据您的要求选择菜单类型为

Archived Articles
Single Article
List All Categories
Category Blog
Category List
Featured Articles
Create Article

现在检查网站并点击菜单。

希望它有所帮助..