A PHP Error was encountered

Severity: Notice

Message: Undefined variable: flickr_photo

Filename: models/flickr_model.php

Line Number: 25

Categorie: Liferay - Blog - Webdesign E-KON
No Dutch
Startpagina » Blog » Categorie: Liferay Share/Bookmark

Introduction Demo theme First way (complex) Second way (simple) Conclusion Downloads Introduction Sometimes a client needs to be able to modify web content that appears on multiple pages. In some occasions you just can’t put the web content in the right place using the “basic” WCM features like Layout Templates and/or Journal Templates. Consider things like a short introduction text in a header, a doormat, a footer, static navigation menu’s that rarely need to be updated, places for banners for temporary promotions and so on. What all these things have in common is that they don’t fit in the scope of Layout Templates or Journal Templates. You can’t reach the places I mentioned before with those facilities, because they mostly reside somewhere in the theme itself. In this blog post/tutorial I will demonstrate and explain 2 ways to embed web content in a Liferay theme — using a demo theme which you can download below! Demo theme Take a look at the screenshot below: The layout (theme) is made up out of four important areas: header: the area in the top of the layout; footer: the area in the bottom of the layout; sidebar: the area in the right center of the layout; content: the area i...

Lees meer


How to use logging in Liferay

Op 25 november 2010 door Kristof Verbraeken in categorie Liferay

How to use logging in Liferay Why use logging? One of the challenges in any programming environment is to be able to debug the code effectively. While developing Java applications you can print to standard output (System.out.println("This is a debug message!") to observe the execution of the program or look at the stack trace when an error (java.lang.Exception) occurs in the application or you can also use breakpoints in development tools (e.g. Eclipse). Suppose an application is not running properly in the production environment, yet in the development, test and/or staging environment everything is working fine. If you decide to print to standard output or to a log file, you need to worry about commenting out that code in production to reduce the overhead associated with those calls. Another solution for this is to define a Boolean variable (let’s say debug). If the value of the variable is true, the application prints a whole set of debug messages. You need to ...

Lees meer


How to set and use custom Velocity variables in Liferay First things first: what is Velocity? Velocity is a popular template engine for Java web applications. It’s one of the many useful projects of Apache. Liferay uses an implementation of the Velocity engine to render Velocity templates. These are files that typically have a vm extension. All Liferay themes make use of this Velocity template engine. A template engine is software that is designed to process web templates (in this case files with a vm extension) to produce output web documents. These web documents are mostly HTML or XML files, but it can also be complete different things like

Lees meer


How to add a breadcrumb navigation to Liferay web pages Today I will be talking about adding a breadcrumb navigation to Liferay web pages. For people that don’t know what this is I suggest reading this Wikipedia article about breadcrumb navigation. I assume that most (Liferay) web developers that land on this page know what a breadcrumb navigation is. Liferay comes with a breadcrumb portlet by default. You could add this portlet manually to all your web pages where you want a breadcrumb navigation, but for bigger (mostly existing) Web sites with many web pages this can be a time-consuming task. Liferay offers a direct solution for this: you can embed portlets within a Liferay theme, which mainly consists of Velocity templates. You simply need to add this ...

Lees meer


Building portals with Liferay (video)

Op 28 juni 2010 door Koen Stevens in categorie Liferay

Peter De Rudder from Amplexor is speaking about their experiences with the Liferay Portal software. E-KON did multiple Liferay implementations already. Feel free to have a look at some examples in our Liferay portfolio and contact us to help you with all your Liferay related inquiries. ...

Lees meer


A word about Journal Structures… A Journal Structure is an XML definition of the dynamic parts of Journal Articles. These parts can be text, a text box, a text area (HTML), an image, an Image Gallery item, a Document Library item, a Boolean flag (true or false), a selection list, multiple selection lists or a link to a page (Layout). Actually, the Journal Structure is a specific XML schema. Such a Journal Structure could look like this: If you create a Journal Article based upon this Journal Structure you will be able to: fill in a description in a text area (HTML) choose multiple images in the Image Gallery choose one file in the Document Library A word about Journal Templates… Journal Structures are used to define the data structure of a Journal Article. A Journal Template is actually a Velocity template in which you can use the data defined in the Journal Structure. You can find more about Journal Structures and Journal Templates on

Lees meer


From the moment you give Liferay a try and start your portal for the very first time you’ll notice something a bit dirty about Liferay URL’s. That’s right: I’m talking about the /web/guest prefix in the frontend. In the early days I was working with Liferay, I just thought that it was some “Java web development hocus pocus thing” that you will just have to accept when doing a Liferay implementation. Keeping the prefix in your URL’s is certainly not a disaster, but for SEO matters clean URL’s are prefered. It’s always a good idea to check the Liferay portal.properties first for properties that might be interesting for your Liferay implementation. You’ll find some properties in portal.properties that seem interesting regarding URL’s in Liferay. Check out these properties: layout.friendly.url.private.group.servlet.mapping=/group layout.friendly.url.private.user.servlet.mapping=/userlayout.friendly.url.public.servlet.mapping=/web Looks great doesn’t it? It looks like we can get rid of the /web/guest very easily! Just fill in an empty string for the layout.friendly.url.public.servlet.mapping property and we should be all done, right? I warn you though: don’t do this! Because you will break your Liferay installation completely and you won't be able to reach your portal anymore....

Lees meer


Liferay

Op 03 maart 2010 door Koen Stevens in categorie Liferay

E-KON is reeds sinds 2007 aan de slag met implementaties op basis van de open-source portal software Liferay. De Liferay software bestaat sinds 2001 en is intussen aan zijn 6de versie toe, wat het platform een zekere volwassenheid en compleetheid geeft. Zo zijn er bij Liferay out-of-the box tal van functionaliteiten standaard aanwezig. In een volgende blog post zullen we hier in meer detail op in gaan. E-KON implementeerde o.a. de volgende Liferay projecten: OZ501 - Onafhankelijk Ziekenfonds website

Lees meer


A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: views/index.php

Line Number: 181