Foren

Doubts regarding velocity, Alloy Ui, theme

Ajay Bansal, geändert vor 11 Jahren.

Doubts regarding velocity, Alloy Ui, theme

New Member Beiträge: 15 Beitrittsdatum: 22.03.13 Neueste Beiträge
Q1. Can we use jsp file in custom theme instead of VM file?
Q2. Can we write AUI taglib code in VM file?
Q3. When we create theme project . then the names of VM file (portal_normal.vm) is fixed or can be changed?
Q4. How to add version & author to the custom theme?
Q5. whe we select a theme in web portal there additional option to "insert custom css" & "java script" . what is to be written there & how it would work?
Q6. If i write a form building code in main.js file in AUI then how would i add that form in my VM file in particular location?
gordon daniels, geändert vor 11 Jahren.

RE: Doubts regarding velocity, Alloy Ui, theme

Liferay Master Beiträge: 797 Beitrittsdatum: 24.08.08 Neueste Beiträge
Ajay: Hi - the odds of anyone answering these questions are slim. Most of the questions can be answered by reading the Documentation on creating a theme. Go to Documentation and look at the table of contents. There you can find you answers.

best of luck
thumbnail
David H Nebinger, geändert vor 11 Jahren.

RE: Doubts regarding velocity, Alloy Ui, theme

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
Ajay Bansal:
Q1. Can we use jsp file in custom theme instead of VM file?

No
Q2. Can we write AUI taglib code in VM file?

No
Q3. When we create theme project . then the names of VM file (portal_normal.vm) is fixed or can be changed?

I don't think so. If the standard is to use portal_normal.vm, just use it.
Q4. How to add version & author to the custom theme?

In liferay-plugin-package.properties file.
Q5. whe we select a theme in web portal there additional option to "insert custom css" & "java script" . what is to be written there & how it would work?

These are page level overrides to the theme.
Q6. If i write a form building code in main.js file in AUI then how would i add that form in my VM file in particular location?


You don't. Velocity templates contain HTML so the form goes in there and invokes the js.

Basically I think you're using the theme incorrectly. A form sounds like a separate portlet (perhaps embedded in the theme).
gordon daniels, geändert vor 11 Jahren.

RE: Doubts regarding velocity, Alloy Ui, theme

Liferay Master Beiträge: 797 Beitrittsdatum: 24.08.08 Neueste Beiträge
David: way to go.
thumbnail
David H Nebinger, geändert vor 11 Jahren.

RE: Doubts regarding velocity, Alloy Ui, theme

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
And I did it all via mobile emoticon
gordon daniels, geändert vor 11 Jahren.

RE: Doubts regarding velocity, Alloy Ui, theme

Liferay Master Beiträge: 797 Beitrittsdatum: 24.08.08 Neueste Beiträge
David: impressive :-)
Bradley Wood, geändert vor 11 Jahren.

RE: Doubts regarding velocity, Alloy Ui, theme