Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Kravchenko Dmitry
How to place company address and phone on each page of the site?
30. April 2013 04:11
Antwort

Kravchenko Dmitry

Rang: Regular Member

Nachrichten: 139

Eintrittsdatum: 4. Oktober 2010

Neue Beiträge

What is expected way to place company address on each page of the site? In page footer, for example?

Should I create custom layout, theme or only portlets can know this data?

How to know this data from layout or theme?

Is this true that, from within portlet class an organization addresses can be accessed by calling Organization class method, while organization phones can be accessing only by service call?
Rahul Sharma
RE: How to place company address and phone on each page of the site?
30. April 2013 07:38
Antwort

Rahul Sharma

Rang: Junior Member

Nachrichten: 60

Eintrittsdatum: 10. Januar 2012

Neue Beiträge

The theme is the proper place to put your company address.
You can modify portal_normal.vm file in the theme to do the required changes.
Bart Simpson
RE: How to place company address and phone on each page of the site?
1. Mai 2013 00:22
Antwort

Bart Simpson

Rang: Liferay Master

Nachrichten: 524

Eintrittsdatum: 29. August 2011

Neue Beiträge

This kind of information does not change on regular basis, if you have the option you can hard code it into theme rather then retrieving it from the api as the api would make calls on page loads.
There are some different ways / views about putting content in theme as described here https://www.liferay.com/web/raymond.auge/blog/-/blogs/embedding-portlets-in-themes-on-liferay
KK rajput
RE: How to place company address and phone on each page of the site?
1. Mai 2013 03:23
Antwort

KK rajput

Rang: Expert

Nachrichten: 266

Eintrittsdatum: 10. April 2008

Neue Beiträge

Hi ,
I think simplest approach is to create a web content and add this web content in footer.vm.

Sample code : In footer.vm
#set($content=$journalContentUtil.getContent($group_id, "$webcontent_Id",null,"$locale",$theme_display));

$content;

Best this you can manage web content on run time as well apply css and js specific to it.

HTH
Kamal
Kravchenko Dmitry
RE: How to place company address and phone on each page of the site?
1. Mai 2013 15:31
Antwort

Kravchenko Dmitry

Rang: Regular Member

Nachrichten: 139

Eintrittsdatum: 4. Oktober 2010

Neue Beiträge

I don't understand, what all this database mumbo-jumbo about organizations, communities etc is required for if we should avoid using it???