Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Ajay Bansal
Doubts regarding velocity, Alloy Ui, theme
30. März 2013 11:22
Antwort

Ajay Bansal

Rang: New Member

Nachrichten: 15

Eintrittsdatum: 22. März 2013

Neue 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
RE: Doubts regarding velocity, Alloy Ui, theme
30. März 2013 15:39
Antwort

gordon daniels

Rang: Liferay Master

Nachrichten: 704

Eintrittsdatum: 23. August 2008

Neue 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
David H Nebinger
RE: Doubts regarding velocity, Alloy Ui, theme
31. März 2013 05:04
Antwort

David H Nebinger

Community Moderator

Rang: Liferay Legend

Nachrichten: 9211

Eintrittsdatum: 1. September 2006

Neue 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
RE: Doubts regarding velocity, Alloy Ui, theme
31. März 2013 16:16
Antwort

gordon daniels

Rang: Liferay Master

Nachrichten: 704

Eintrittsdatum: 23. August 2008

Neue Beiträge

David: way to go.
David H Nebinger
RE: Doubts regarding velocity, Alloy Ui, theme
31. März 2013 19:54
Antwort

David H Nebinger

Community Moderator

Rang: Liferay Legend

Nachrichten: 9211

Eintrittsdatum: 1. September 2006

Neue Beiträge

And I did it all via mobile emoticon
gordon daniels
RE: Doubts regarding velocity, Alloy Ui, theme
2. April 2013 06:41
Antwort

gordon daniels

Rang: Liferay Master

Nachrichten: 704

Eintrittsdatum: 23. August 2008

Neue Beiträge

David: impressive :-)