Grails tab order - grails

I was recently given a project to modify and I know very little about Grails. All I need to do is edit the code to make it so the user does not have to use a mouse, so I need to set the tab order. How do I do that?
Thanks!

Set the tabindex property on the fields in the .gsp files, just like an HTML page.

Related

How to add an external link under a page in Kentico?

We’re using Kentico 11.0.26 with MVC.
I need to add an external link under a page.
In content tree it should look something like this:
Page A
Page A1
Page A2
https://www.www.google.com/
The problem is that when I click the + button in Pages application, I only see page types, and there is no option to add a link.
Why not use value of page field to store the link and load the value inside of MVC app? Content tree alone does not have capability for this. All nodes have to be pages in one way or the other and plain old link to external domain can not be placed instead of page. To be honest I do not see benefit of having a link inside of content tree even for menu since you have to create menu using document path and not only its name anyway so accessing additional property should not be that much of a problem.
You could create a new content type to represent an external link and put that into your content tree. This would then also give you options to set additional properties of the link such as target and title rather than just a URL.

Grails- Add link href to button

I'm building a simple Grails app for a web development class. For the most part, the app is finished, but I'm having one sticking issue.
On the index page, I have a series of buttons that correspond to the List, Create, and other templates that are built in Grails via scaffolding. How can I dynamically pass on the correct path to the controller action?
In order to do this, I need to get the current page URL and add the proper location. Is that possible to do in Grails or should I stick with jquery or some other ajax solution?
What are you trying to achieve here,
If you want to generate link to controller actions that you can use for button href, you can do it like this,
<button href="${createLink(controller:'foo', action:'bar')}"/>
See the createLink tag
If you want to know controller and action name, ${controllerName} and ${actionName} can be used.
Can you use ${controllerName} to get the name of the current controller?
An alternative might be ${params.controller}, but again, not 100% sure it works in gsps

Grails global styling

I was wondering how one would apply a global stylesheet to their entire site? I want to add twitter bootstrap, and a select number of other global styles, so that all the visuals are consistent.
Would I add a <link> to the layouts/main.gsp file?
UPDATE
Seems it's the css/main.css file that I'm interested in. Along with the layouts/main.gsp's reference to it. Could someone confirm this?
By default grails will use the "main" layout for scaffolding. So yes, those are the two files you are interested in.

How can I find where actually is the theme file?

I am new to Symfony and I need to work to a large project with many themes to modify them. How can I find where actually is the theme file in which module, just looking at the HTML browser output? Or do I need to look somewhere else, routing for example?
What you want to do is use the Web Debug Toolbar.
Once you have that running on the page, using appname_dev.php, simple click the view link and it will show you which templates have been used. If you need to know which layout to use then use logs link, click none the sfPHPView.

navigation links in joomla articles

i have some problem that in articles its not showing the navigation links even i have set the perameters yes and default plugin is set.
so plz help me out for the same
Thanks
What template are you using? Are you sure that the template supports the article navigation? Switch the default template to Beez or Milky Way and see if it works there. If it does, you need to modify your template.

Resources