Questions tagged [view-helpers]

Use this tag for questions on ViewHelpers as used by the Fluid templating engine.

Viewhelpers are a part of Fluid. Fluid is a templating engine used primarily by TYPO3 and Neos.

ViewHelpers are special classes which build on base classes provided by Fluid. These classes can then be imported and used as part of the Fluid language.

More information:

423 questions
0
votes
0 answers

Ajax.ActionLink where to place pushState

I would like to know when I should be placing the "pushState" html5 when using Ajax.ActionLink. I do not know if I should change it on the OnBegin or OnComplete events within the AjaxOptions or when clicking the link (this last is the one I have…
mcartur
  • 325
  • 3
  • 13
0
votes
2 answers

Rails - finding the right place for common code

I have got myself quite befuddled. I have some code which takes some images, combines them and then spits out the combined image in .png format. Originally this code was a method for a model - with the model's associations indicating which images to…
Anita Graham
  • 456
  • 1
  • 5
  • 13
0
votes
4 answers

RoR: Linking to a page

I am trying to create a link on the "index of tickets" to link to "edit" page. (Pls see picture below) Right now I can type "0.0.0.0:3000/tickets/1/edit" to go to edit page. However, i'm not sure how to link to this page. Would you pls give me some…
Kevin H
  • 599
  • 1
  • 5
  • 10
0
votes
1 answer

Zend Plugin found in view not in layout

I've got a plugin that retrieves a list of buttons. When i call this plugin from the view (echo $this->GetAdminButtons()) it works fine. But I need to call this plugin from the layout.phtml and when i do, the application just stops (white screen, no…
Sephen
  • 1,111
  • 3
  • 16
  • 38
0
votes
1 answer

ruby rails helper full_title

I am on Chapter 4 of Michael Hartl's RoR tutorial, and having some troubles with rspec and using the full_title helper function. In part 4.1 of the tutorial, I have the helper code as follows. It's purpose is to make it so my help, contact, home,…
almel
  • 7,178
  • 13
  • 45
  • 58
0
votes
1 answer

how to pass name attribute in Beginform helper

Here, I want to pass name attributes to the Form. But this is passing name as query string: Following is the code I have used: @using (Html.BeginForm("Upload", "AjaxUpload", new { @name = "form1" })) { I have also remove @ at name it works as…
CodeManiac
  • 974
  • 8
  • 34
  • 56
0
votes
1 answer

Non standard rails routes in used in helper

In my routes.rb there is resources :clients_assessments do member do get :medical_edit get :mental_health_edit get :personal_edit end collection do end end Which gives routes medical_edit_clients_assessment GET …
Russ Petersen
  • 765
  • 1
  • 9
  • 29
0
votes
3 answers

subfolders in views/helpers zend

I want to create different folders insides my views/helpers and add my view helper classes inside them. But I am not able to access those classes. What is the best way to do this? I tried adjusting my application.ini file settings ... but no…
lak
  • 1
  • 1
0
votes
1 answer

Zend View Helper formMultiCheckbox, add css class

formMultiCheckbox($this->form->options->getFullyQualifiedName(), $this->form->options->getValue(), null, array('1' => $this->form->options->getMultiOption('1'))); ?> I have something like this, I want to add a css class to it.…
Matt
  • 7,049
  • 7
  • 50
  • 77
0
votes
2 answers

Rails view and controllers, (if/else statements)

I've just started my own rails project from scratch. I'm trying the view to display hello if the minutes variable is set to a certain value. The code is in the controller right now, and I want it to display the output in the view. is this possible?…
Namenone
  • 344
  • 2
  • 5
  • 19
0
votes
1 answer

Rails helper - line breaks between tags

This code in helper: def dgtags if params[:controller]=='my_controller' javascript_include_tag('dygraph-combined.js') << tag(:meta, :http_equiv => 'X-UA-Compatible', :content => 'IE=EmulateIE7; IE=EmulateIE9') << …
Paul
  • 25,812
  • 38
  • 124
  • 247
0
votes
1 answer

Use default module's action helpers in another module with Zend Framework

I think I've tried everything I've found to solve this, including all the answers here on SO. In my project there is an admin module, and then there's the default module. Now I want the admin module to use the default module's helpers. Preferably…
Markus Hedlund
  • 23,374
  • 22
  • 80
  • 109
0
votes
1 answer

access variables in layout partial from other controllers

today I wanted to use some variables in my shared/menu partial. I know that I should put somewhere in application_controller some helper method (or something like that) but it doesn't work for me. Here is my temporary solution…
lukaszkups
  • 5,790
  • 9
  • 47
  • 85
-1
votes
1 answer

FAL & Flexform viewhelper

To oputput a FAL image in Flexform, I need a viewhelper. Ok. but, what if I got more fields in the flexform so that I need to get for example TEXTinput fields , Selectfields AND the FAL image (which is related to sys_file_reference)? Is it possible…
TheTom
  • 934
  • 2
  • 14
  • 40
-1
votes
1 answer

How to open new javafx fxml window under if condtition?

I create a simple login form to checking username and password. I did it and my problem is while checking the username and password is correct open new fxml window. Can anyone drop some simple code to solve it.
Midhushan
  • 15
  • 9
1 2 3
28
29