index.php missing from "path2item" URLs
- lars.butveit
- Topic Author
- Offline
Less
More
- Posts: 89
- Thank you received: 4
9 years 3 months ago #3131
by lars.butveit
index.php missing from "path2item" URLs was created by lars.butveit
I just noticed that wherever I use "path2item" the URL is missing the index.php part.
The link just starts with ?option=com_joodb&view=article&joobase=....
Can somebody help with a fix to this?
Thanks,
-Lars
The link just starts with ?option=com_joodb&view=article&joobase=....
Can somebody help with a fix to this?
Thanks,
-Lars
Please Log in to join the conversation.
- lars.butveit
- Topic Author
- Offline
Less
More
- Posts: 89
- Thank you received: 4
9 years 3 months ago #3148
by lars.butveit
Replied by lars.butveit on topic index.php missing from "path2item" URLs
Please, somebody take a look at this.
Info on what file to hack would be enough for me.
Info on what file to hack would be enough for me.
Please Log in to join the conversation.
- Dirk
- Offline
Less
More
- Posts: 1222
- Thank you received: 225
9 years 2 months ago - 9 years 2 months ago #3179
by Dirk
Replied by Dirk on topic index.php missing from "path2item" URLs
Path2Item is uses if you want to link in the catalog to a single item.
You can only use it inside the {joodb loop} commands of your catalog template.
Path2Item is the only a relative url. But the same value is used for the morebutton and link on the titlefield also.
So if these links are correct and you used path2item in the right way it might be invalid html,
Check your page source.
You can only use it inside the {joodb loop} commands of your catalog template.
Path2Item is the only a relative url. But the same value is used for the morebutton and link on the titlefield also.
So if these links are correct and you used path2item in the right way it might be invalid html,
Check your page source.
Last edit: 9 years 2 months ago by Dirk.
Please Log in to join the conversation.
- lars.butveit
- Topic Author
- Offline
Less
More
- Posts: 89
- Thank you received: 4
9 years 2 months ago #3180
by lars.butveit
Can you direct me to the file(s) that generate this relative link, and I will look in the code myself.
Thanks,
Lars
www.tamiyabase.com
Replied by lars.butveit on topic index.php missing from "path2item" URLs
I know.dirk wrote: Path2Item is uses if you want to link in the catalog to a single item.
You can only use it inside the {joodb loop} commands of your catalog template.
I don't use the more button, but I can confirm that the link on titlefields is also missing the "index.php" prefix in the URL.dirk wrote: Path2Item is the only a relative url. But the same value is used for the more button and link on the title field also.
I use a SEF component (sh404SEF) and the URL log in this component shows that the links are made from Joodb without the index.php part. My page Source then shows the SEF urls, not the non-sef urls from joodb.dirk wrote: So if these links are correct and you used path2item in the right way it might be invalid html,
Check your page source.
Can you direct me to the file(s) that generate this relative link, and I will look in the code myself.
Thanks,
Lars
www.tamiyabase.com
Please Log in to join the conversation.
- joest
- Offline
9 years 2 months ago #3181
by joest
Replied by joest on topic index.php missing from "path2item" URLs
com_joodb/helpers/joodb.php
;-)
;-)
Please Log in to join the conversation.
- lars.butveit
- Topic Author
- Offline
Less
More
- Posts: 89
- Thank you received: 4
9 years 2 months ago - 9 years 2 months ago #3182
by lars.butveit
Replied by lars.butveit on topic index.php missing from "path2item" URLs
Hi joest & Dirk,
Please have a look at the following links which describe the problem I'm seeing:
I have turned off SEF urls for the entire database, so the joodb urls are shown:
The Box Art database:
Link to catalog view: tamiyabase.com/index.php?option=com_jood...&Itemid=1041&lang=en
This db shows links in the catalog view without index.php
The code used to generate the link (image link) is:
The urls generated look like this:(note the missing "index.php")
The Models DataBase:
Link to catalog view: tamiyabase.com/index.php?option=com_jood...g&Itemid=776&lang=en
This db shows links in the catalog view with index.php
The code used to generate the link (image link) is:
The urls generated look like this:
The only difference I can spot is the use of {path2item} on the code where the index.php is missing.
Any suggestions to what can cause this problem?
-Lars
Please have a look at the following links which describe the problem I'm seeing:
I have turned off SEF urls for the entire database, so the joodb urls are shown:
The Box Art database:
Link to catalog view: tamiyabase.com/index.php?option=com_jood...&Itemid=1041&lang=en
This db shows links in the catalog view without index.php
The code used to generate the link (image link) is:
<table style="width: 670px;">
<tbody>
<tr>
<td>{joodb loop}<div class="{joodb loopclass}">
<div style="display: table-cell; vertical-align: middle; width: 150px; text-align: center;"><a href="{joodb path2item}"><img src="/images/stories/boxart/thumb_box_{joodb field|boxart_modelref}_01.jpg" alt="Tamiya {joodb field|boxart_modelref} {joodb field|boxart_title}" /></a>
</div>
The urls generated look like this:
http://tamiyabase.com/?option=com_joodb&view=article&joobase=18&id=1&Itemid=1041
The Models DataBase:
Link to catalog view: tamiyabase.com/index.php?option=com_jood...g&Itemid=776&lang=en
This db shows links in the catalog view with index.php
The code used to generate the link (image link) is:
<table>
<tbody>
<tr>
<td>{joodb loop}<div class="{joodb loopclass}" clear="both">
<div style="#position: absolute; #top: 50%; display: table-cell; vertical-align: middle; width: 130px;"><a href="index.php?option=com_joodb&view=article&joobase=8&id={joodb field|id}&Itemid=776"><img src="/images/joodb/db8/img{joodb field|id}-thumb.jpg" alt="Tamiya {joodb field|model_name}" /></a>
</div>
The urls generated look like this:
http://tamiyabase.com/index.php?option=com_joodb&view=article&joobase=8&id=1&Itemid=776
The only difference I can spot is the use of {path2item} on the code where the index.php is missing.
Any suggestions to what can cause this problem?
-Lars
Last edit: 9 years 2 months ago by lars.butveit.
Please Log in to join the conversation.
Moderators: Dirk, joest