Questions tagged [viewhelper]
71 questions
0
votes
2 answers
FLUID Link with target and class
I wrote a small Frontend Plugin "Text+Image+Link".
If my editor choose a file link or an external Link, he also assign to open the target in a new window: _blank
In my Fluid-Tempalte I wrote

user2310852
- 1,654
- 1
- 25
- 52
0
votes
1 answer
how to create viewhelpers with twig
I am using Twig on a standalone basis without symfony.
I made lots of templates that all work just fine. I have been trying to build a viewhelper just like in Fluid.
I wanted to create a viewhelper which basically just wraps a text with some html…

MasterOfCake
- 69
- 2
- 5
0
votes
2 answers
ZF2 widgets/views in layout
I am working on a website where I need a "widget" like view in my layout of Zend Framework 2.
the widget should show the operational status of the server (this is done).
(Correct me if this is bad MVC style)
I have build a controller with the…

KatsuoRyuu
- 321
- 4
- 19
0
votes
1 answer
Send Array from ViewHelper to the Fluidtemplate and printout
I'm working with Typo3, extbase and fluid. I will get an array (multidimensional associative Array) from a php file into my fluid template and print it out there with a loop.
I already have a own ViewHelper but I dont know how to send it to the…

Simonx7
- 1
0
votes
1 answer
ZF2 custom view helper shares variable across multiple elements - shared service issue?
I successfully added a custom view helper with the following configuration:
https://gist.github.com/webdevilopers/b22f7471fd2b8d60cdea#file-module-php
The view helper has a custom variable named…

webDEVILopers
- 1,886
- 1
- 21
- 35
0
votes
2 answers
Using ViewHelper inside a partial path
I'm working on a new extension and my model has the attribute 'type' which can get different strings from the TCA form. Strings only!
The name of the partial that my template should load is inside the 'type' attribute from my model. So here comes my…

simplychrislike
- 436
- 4
- 9
0
votes
2 answers
How to pass data to custom view helper called from a layout - zend
I have a Controller, Layout, Custom view helper. I'm passing a data from controller $this->view->foo = 'foo'; normally I get it on my layout.phtml,here I'm calling a custom view helper $this->navbar(); on layout.
How can I access that foo within my…

Anees Sadeek
- 168
- 1
- 10
0
votes
0 answers
How to pass the sitemap XML file to the Sitemap View Helper in Zend Framework 2?
I generated a sitemap.xml file and want to create a sitemap from it:
navigation()
->sitemap()
->setFormatOutput(true)
->setMaxDepth(2)
;
echo $this->navigation()->sitemap();
?>
How can I set the path to the file in the…

automatix
- 14,018
- 26
- 105
- 230
0
votes
1 answer
Call jquery datepicker viewhelper from custom viewhelper
I have a custom view helper in app/view/helper folder. The code for add text field is - in my code:
$this->view->formText('date');
But instead of text field i want to add jquery datepicker like this:
$this->view->datePicker('date');
But this…

masteryoda
- 272
- 2
- 20
-1
votes
1 answer
Which is best to use, ViewHelper or Partial View?
I was creating a viewhelper because there is logic on the rendering of the content.
But then I realize that I am hardcoding the html inside the viewhelper which is achievable
also using the partial view. Many says that views should not have logic in…

h3n
- 5,142
- 9
- 46
- 76
-4
votes
1 answer
How to prevent printing variables in view helper?
I have an array, which is loaded from a database. It is in the following format:
["aaa:bbb", "ccc:ddd"]
And need to build an HTML definition list from the array:
- aa
- bb
- cc
- dd

br.
- 1,259
- 1
- 14
- 21