Bug #64319
closed
FLUID: "f:link.page" and RealURL
Added by Vasyl Mosiychuk almost 10 years ago.
Updated over 9 years ago.
Description
I have problem with a view helper for creating links to TYPO3 pages.
This code: <f:link.page pageUid="1">Page link</f:link.page>
Output: <a href="http://www.domain.ltd/index.php?id=1">Page link</a>
... then I'm install ext: RealURL version 1.12.8
This code: <f:link.page pageUid="1">Page link</f:link.page>
Output: Page link
This code:
<f:for each="{menu}" as="menuPage">
<f:link.page pageUid="1">Page link</f:link.page>
</f:for>
Output: <a href="http://www.domain.ltd/page-link">Page link</a>
This code <f:link.page pageUid="1">Page link</f:link.page> inside "*f:for*" well works. Outside "*f:for*" does not work.
Why? This is bug?
Install: =
TYPO3 6.2.9 stable
EXT: fluid 6.2.0 stable
EXT: view 2.0.0 stable
EXT: vhs 2.2.0 stable
EXT: flux 7.1.2 stable
EXT: fluidpages 3.1.2 stable
EXT: fluidcontent 4.1.1 stable
EXT: fluidcontent_core 1.0.2 beta
EXT: realurl 1.12.8 stable =
That's strange to me, because I use too the Flux/Vhs/Fluidpages/Fluidcontent ecosystem (with the exception of fluidcontent_core) and I don't remember I've had problems :S
My first thoughts:
1. what does
<f:for each="{menu}" as="menuPage">
<f:link.page pageUid="1">Page link</f:link.page>
</f:for>
mean? That you repeat a link to the page with id=1 for every item in {menu}? It doesn't seem correct IMHO
2. Did you set config.baseURL? Are there other configurations like config.typolinkCheckRootline or config.typolinkEnableLinksAcrossDomains ?
This is a test code for to show where he works and where not work.
This code: <f:link.page pageUid="1">Page link</f:link.page>
Output: <a href="http://www.domain.ltd/index.php?id=1">Page link</a>
... then I'm install ext: RealURL version 1.12.8
This code: <f:link.page pageUid="1">Page link</f:link.page>
Output: Page link
This code:
<f:for each="{menu}" as="menuPage">
<f:link.page pageUid="1">Page link</f:link.page>
</f:for>
Output: <a href="http://www.domain.ltd/page-link">Page link</a>
The code you wrote is the same you gave in the ticket description; my question was why did you wrote:
<f:for each="{menu}" as="menuPage">
<f:link.page pageUid="1">Page link</f:link.page>
</f:for>
which seems totally wrong to me: indeed, the output
<a href="http://www.domain.ltd/page-link">Page link</a>
Does not seems to have sense, unless your page with id=1 has "page link" as title.
I think that your code should be something like:
<f:for each="{menu}" as="menuPage">
<f:link.page pageUid="{menuPage.uid}">Page link</f:link.page>
</f:for>
Said that, my first suggestion is to check the realurl configuration file. could you add it to this ticket?
- Status changed from New to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Also available in: Atom
PDF