[英]Joomla! mod_article_category wrong links
I'm in trouble here. 我在这里遇到麻烦了。
I've been seeking the web for an anwser but I didn't find one detailed enought for my noob level in joomla! 我一直在网上寻找答案,但在joomla中找不到适合我的菜鸟水平的 详细信息 ! (2.5 here)
(这里2.5)
I use the module mod_articles_category
to display a list of articles sample which should link to the entire article. 我使用模块
mod_articles_category
来显示应该链接到整篇文章的文章示例列表。
I have created a menu (called Articles
with a link article
) bound to the articles
category. 我创建了一个菜单(称为
Articles
的链接article
绑定到) articles
类别。 (I heard it was necessary) (听说有必要)
So when I click on a link in my sample article list what happend ? 那么,当我单击示例文章列表中的链接时,发生了什么?
I land on the same page with this url mysite.com/index.php/article/1-a
我使用此网址
mysite.com/index.php/article/1-a
进入同一页面
The page don't have any style, all paths to the css/js files are wrong 该页面没有任何样式,css / js文件的所有路径均错误
What do I want when the link is clicked ? 单击链接后我想要什么?
index.php
file (and styles and xml of course) in my template folder. index.php
文件(当然还有样式和xml)。 How can I do that ? Thanks a lot ! 非常感谢 !
- EDIT - -编辑-
Hum finally I think that the problem comes from my $this->baseurl wich changes to the name of my menu. 哼,最后我认为问题出在我的$ this-> baseurl更改为菜单名称。
Example: 例:
If I call my menu Popopo
and its link domdomdidom
then the url will be mysite/index.php/domdomdidom/1-a
and my $this->baseurl /domdomdidom
wich cause all my paths to crash. 如果我叫菜单
Popopo
及其链接domdomdidom
则URL为mysite/index.php/domdomdidom/1-a
而我的$ this-> baseurl /domdomdidom
导致我的所有路径崩溃。
Any Idea of how to fix it ? 关于如何解决它的任何想法?
My paths are made this way: 我的路径是这样制作的:
<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/reset.css
Thx again 再次谢谢
The problem came from the url rewriting configuration (SEF) . 问题来自网址重写配置(SEF) 。 I switched it off and I have my styles back ;) (but the article isn't displaying, I still get the list.. it's another problem this one is ok)
我将其关闭,然后返回样式;)(但文章未显示,我仍然得到列表。.这是另一个问题,可以)
Also for better URL change htacces.txt to .htaccess and check the second Url Rewritting (you can even reactivate SEF). 另外,为了获得更好的URL,请将htacces.txt更改为.htaccess,然后检查第二个Url Rewriting(甚至可以重新激活SEF)。
Well sorry for all this noise. 非常抱歉,所有这些噪音。
Try this, 尝试这个,
Create a menu in your menu manager with name like Blog or Articles
在菜单管理器中创建一个名称为
Blog or Articles
菜单
Select menu type as any of the following based on your requirement 根据您的要求选择菜单类型为以下任意一种
Archived Articles
Single Article
List All Categories
Category Blog
Category List
Featured Articles
Create Article
now check the site and click the menu. 现在检查站点并单击菜单。
Hope its helped .. 希望它有所帮助..
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.