Fórum
Display a value from personal database in theme
Kelly Markiewicz, modificado 6 Anos atrás.
Display a value from personal database in theme
New Member Mensagem: 1 Data de Entrada: 22/08/17 Postagens Recentes
Hi,
I am new to Liferay, and is currently using LR 7. What I want to do seems very simple but I am having a difficult time figuring it out. In my theme (header), I want to display a year that is stored in a personal database (not the Liferay database). Currently the year is hard coded in a Freemarker template, src/templates/navigation.ftl but the year value stored in my database will change.
How can I display a value from my database in the theme?
Thank you very much!
Kelly
I am new to Liferay, and is currently using LR 7. What I want to do seems very simple but I am having a difficult time figuring it out. In my theme (header), I want to display a year that is stored in a personal database (not the Liferay database). Currently the year is hard coded in a Freemarker template, src/templates/navigation.ftl but the year value stored in my database will change.
How can I display a value from my database in the theme?
Thank you very much!
Kelly
Marco Endres, modificado 6 Anos atrás.
RE: Display a value from personal database in theme
Regular Member Postagens: 112 Data de Entrada: 22/08/12 Postagens Recentes
Hello Kelly
The first idea that comes to my mind is loading the year inside of a portlet and write a portlet-provider for the portlet/theme and load the portlet inside of the theme.
best regards
Marco Endres
The first idea that comes to my mind is loading the year inside of a portlet and write a portlet-provider for the portlet/theme and load the portlet inside of the theme.
best regards
Marco Endres