[TYPO3-mvc] Typolink extbase fluid
Matt Janus
janus76uk at googlemail.com
Fri Nov 25 17:20:09 CET 2011
I found the post i saw this in -
http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2011-June/009735.html
On Fri, Nov 25, 2011 at 4:18 PM, Matt Janus <janus76uk at googlemail.com> wrote:
> Thanks for all your help and guidance with this!!
>
> I was still having issues getting external links to open in a new
> window/tab. I did a bit of hunting around and came across an idea in
> another post. This was to use conditions to kind of evaluate if the
> link was a number i.e less than 10000 (my site has way less pages!!).
>
> <f:if condition="{image.link} <= 10000">
> <f:then>
> <f:link.page pageUid="{thing.link}">
> Do something here
> </f:link.page>
> </f:then>
> <f:else>
> <f:link.external uri="{image.link}" target="_blank">
> Do something here
> </f:link.external>
> </f:else>
> </f:if>
>
> This seems to work fine. Although if it is possible, I would prefer a
> way to evaluate the condition as numeric rather than using the above
> limit.
>
> Cheers
>
>
> Matt
>
> On Fri, Nov 25, 2011 at 11:54 AM, Stefano Cecere <scecere at krur.com> wrote:
>> remember also that you can use this syntax:
>>
>> <f:format.html>
>> <link 30>Page 30</link>
>> </f:format.html>
>>
>> see email "FYI: Easy way of generating links to DAM Assets" and also in the
>> DAM newsgroup.. we were talking about this topic yesterday!
>>
>> ciao
>> stefano
>>
>>
>> On Fri, 25 Nov 2011 11:41:09 +0100, Matt Janus <janus76uk at googlemail.com>
>> wrote:
>>
>>> I am just starting out with extbase and fluid and thought I would try
>>> rebuilding an old pibase extension in fluid and extbase and to get the
>>> hang of it.
>>>
>>> I have got a bit stuck with a particular issue – typolinks.
>>>
>>> In the backend of the old extension, the user can complete a link
>>> field – this can be an external URL, page within the site, file or
>>> email address.
>>>
>>> In my old pibase extension I simply passed this value to
>>>
>>> $this->cObj->typolink
>>>
>>> And it would generate the correct link type in the frontend.
>>>
>>> Looking at fluid it seems that this has been separate into options for
>>> each type of link:
>>>
>>> <f:link.email
>>>
>>> <f:link.external
>>>
>>> <f:link.page
>>>
>>> How could I accomplish the same goal of being able to use any type of
>>> link within a fluid template? Can this be done by creating additional
>>> viewHelpers? Does typolink still function the same way in extbase?
>>>
>>> Any pointers you could give would be most welcome.
>>>
>>> Kind regards
>>>
>>> Matt
>>
>>
>> --
>> ____ ___ __ _ ______________________
>>
>> Stefano Cecere
>> Krur multimedia studio
>> _______________________________________________
>> 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