Questions tagged [viewhelper]
71 questions
0
votes
0 answers
How do mock for viewHelper in zf2
I'm trying to do mock for viewHelper and can't do this.
When I am trying to run phpunit I get the assert error "Failed asserting that two strings are equal." because the analiticHelper hasn't been overwriten. I wrote setAllowOverride(true) for my…

Oleksii.B
- 618
- 8
- 16
0
votes
1 answer
tx-news: use a main category in the link / speaking url
I am developing a site which has two main area's which I destinguish as two main system categories.
I use the latest version of tx-news (5.3.2) for articles and I assign them firstly to one of the two main system categories, and then to a specif…

webman
- 1,117
- 15
- 41
0
votes
1 answer
TYPO3 viewhelper that renders only the url (href) not the a tag
I have the need in a fluid template to create a link for a complete table row, this syntax requires the following html code (taken from this question)
which I try to…

webman
- 1,117
- 15
- 41
0
votes
3 answers
TYPO3 count objects with constraint and display result in fluid template
I have build an extension with the extension builder that handles objects, an object can be an "item" or a "project".
An object has a field status which has 4 options, and is filled with an integer (3 = sold).
An object can be signed as a "project",…

webman
- 1,117
- 15
- 41
0
votes
1 answer
typo3 fluid format number without trailing zeros
In my typo3 extension I got a double value saved via backend. I want to put this value out in the frontend.
I want the double to be formated to use the german ',' as decimal seperator (and a max precision of 1). So I used f:format.number viewhelper…

user3154108
- 1,264
- 13
- 23
0
votes
1 answer
TYPO3 Fluid Viewhelper Content of First Subpage
I created a content to show the content of subpages.
…

MarioProject
- 417
- 4
- 25
0
votes
2 answers
typo3 fluid template: cObject within too many conditions in viewhelper
I need to put an hour selection within a form, so I created a custom viewhelper which rounds the minutes to multiples of 5 only.
in setup.ts I decalare the time;
lib.time = TEXT
lib.time {
data = date:H:i
}
in the template I call the…

webman
- 1,117
- 15
- 41
0
votes
1 answer
How to create a multidomain sitemap in TYPO3?
There's a multidomain website with different root levels in one TYPO3 instance.
I want to create a sitemap which includes all pages from all microsites in this instance. When I use a vhs viewhelper (v:page.menu) there's no way to set the entryLevel…

Ronny Sternecker
- 237
- 1
- 11
0
votes
1 answer
Using a custom ViewHelper in the configuration section
I have written some ViewHelpers that work totally fine, but only in the Main-Section... For better understanding:

jockel
- 3
- 4
0
votes
1 answer
Zend framework 2 get baseUrl from console controller
I tried to find a way to get base url of mixed (http + CLI) application. CLI is used to do some regular notifications, where app url is used.
I tried this, but it returns me only…

bksi
- 1,606
- 1
- 23
- 45
0
votes
1 answer
Best way to keep params in the uri for zf2
So a user is directed to a page in my ZF2 app as follows:
http://example.com/some/route/variable?auth=1234&channel=1234&tz=1234&locale=&client=1234
The controller loads a form:
if ($prg instanceof Response) {
return $prg
} elseif ($prg ===…

HappyCoder
- 5,985
- 6
- 42
- 73
0
votes
3 answers
zf2 pass multiple arguments in dynamic helper call
I'm trying to write a view helper that calls other helpers dynamically, and I am have trouble passing more than one argument. The following scenario will work:
$helperName = "foo";
$args = "apples";
$helperResult =…

jcropp
- 1,236
- 2
- 10
- 29
0
votes
1 answer
FluidTYPO3 vhs ViewHelper for SVG Images?
I use TYPO3 CMS 6.2.14, vhs 2.3.3, Flux 7.2.1 and FluidContent 4.3.1 - my TYPO3 Editor need the opportunity to upload SVG-Images via vhs-ViewHelper. I've made a new FluidTYPO3 Content Element (FCE), but there's no SVG Image visible in frontend. …

user2310852
- 1,654
- 1
- 25
- 52
0
votes
1 answer
ZF2 : How to call a view helper in a service?
I need use a view helper (myPaginationControl) in this service:
/.../
class TotoDisplayService implements ServiceLocatorAwareInterface
{
public function getReponse ($paginator)
{
$tab = '';
/.../
$tab .=…