[TYPO3-mvc] How to get full URI in fluid template

Claus Due claus at wildside.dk
Thu Feb 2 12:14:55 CET 2012


Hi guys,

Another option:

<a href="{fed:page.absoluteUrl()}#somehash">blah</a> - this will always place the entire URL, including arguments, then append the "somehash" anchor.

Cheers,
Claus

On Feb 2, 2012, at 11:47 AM, g4-lisz at tonarchiv.ch wrote:

> On 01.02.2012 23:19, Stefan Frömken wrote:
>> Am 26.01.2012 01:12, schrieb g4-lisz at tonarchiv.ch:
>> 
>>> 
>>> P.S. I need this to make #anchors working again with realurl and base tag.
>>> 
>>> 
>> 
>> So...why you don't working with pageViewHelper?
>> 
>> <f:link.page pageUid="123" section="anchor" absolute="1">Link</f:link.page>
>> 
>> should render something like this
>> 
>> http://www.example.com/index.php?id=123#anchor
>> 
>> Stefan
>> 
> Hi Stefan
> 
> I put config.prefixLocalAnchors = 1 in the TS template, but for some reason this didn't do the trick for certain plugins.
> 
> I didn't know of this "absolute=" parameter... is this a new feature? I Have to check this out.
> 
> Cheers,
> Till
> 
> 
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list