Foren
Theme for private user page
Paul Schmidt, geändert vor 11 Jahren.
Theme for private user page
Junior Member Beiträge: 34 Beitrittsdatum: 28.07.10 Neueste Beiträge
Hello community,
I created a page, set the theme and exported the configuration as lar file.
I added these entries to my portal-ext.properties:
The I created a new user and logged in.
When I go to his private user page, I get an exeption:
It seems, that the configured theme is not used.
I tried to export the lar with theme options checked and unchecked. No changes.
For every try, I created a new user.
What is wrong with my configuration.
I created a page, set the theme and exported the configuration as lar file.
I added these entries to my portal-ext.properties:
default.user.private.layouts.lar=${liferay.home}/default_private_userpage.lar
default.user.private.layouts.enable=true
default.user.public.layouts.enabled=false
default.user.private.layout.regular.theme.id=mytheme_WAR_mytheme (it's the entry from layout table in Liferay database)
The I created a new user and logged in.
When I go to his private user page, I get an exeption:
An unexpected system error occurred.
javax.servlet.jsp.JspException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'include' in class com.liferay.taglib.util.VelocityTaglib threw exception java.lang.NullPointerException at _SERVLET_CONTEXT_/html/themes/classic/templates/portal_normal.vm[line 83, column 8]
It seems, that the configured theme is not used.
I tried to export the lar with theme options checked and unchecked. No changes.
For every try, I created a new user.
What is wrong with my configuration.
Gaurav Jain, geändert vor 11 Jahren.
RE: Theme for private user page
Regular Member Beiträge: 145 Beitrittsdatum: 31.01.11 Neueste Beiträge
I used it for my portal. It was working fine.
However I didn't used following property:
default.user.private.layout.regular.theme.id=
Can you please try after commenting/removing this property ?
However I didn't used following property:
default.user.private.layout.regular.theme.id=
Can you please try after commenting/removing this property ?
Paul Schmidt, geändert vor 11 Jahren.
RE: Theme for private user page
Junior Member Beiträge: 34 Beitrittsdatum: 28.07.10 Neueste Beiträge
I tried again two exports (with/out theme options) and two new users. Same result.
Gaurav Jain, geändert vor 11 Jahren.
RE: Theme for private user page
Regular Member Beiträge: 145 Beitrittsdatum: 31.01.11 Neueste Beiträge
Is the theme applied on user classic or your custom mytheme?
If your custom them - do you have certain conditions in your theme which is causing this exception? Maybe you can check this once.
If your custom them - do you have certain conditions in your theme which is causing this exception? Maybe you can check this once.
Paul Schmidt, geändert vor 11 Jahren.
RE: Theme for private user page
Junior Member Beiträge: 34 Beitrittsdatum: 28.07.10 Neueste Beiträge
I want all new private userpages to have my custom theme.
The exeption thrown is not on my custom theme, because a vm file is referenced.
My theme is written in Freemarker (ftl)
The exeption thrown is not on my custom theme, because a vm file is referenced.
My theme is written in Freemarker (ftl)
Paul Schmidt, geändert vor 11 Jahren.
RE: Theme for private user page
Junior Member Beiträge: 34 Beitrittsdatum: 28.07.10 Neueste Beiträge
Does anybody else have a hint for me?
Florencia Gadea, geändert vor 11 Jahren.
RE: Theme for private user page
Regular Member Beiträge: 146 Beitrittsdatum: 27.03.12 Neueste Beiträge
Hi!
Did you ever find a solution to this? I'm facing the same issue...
Thanks,
Flor.
Did you ever find a solution to this? I'm facing the same issue...
Thanks,
Flor.
Paul Schmidt, geändert vor 11 Jahren.
RE: Theme for private user page
Junior Member Beiträge: 34 Beitrittsdatum: 28.07.10 Neueste Beiträge
Using a custom side template is working with the portal-ext.properties params.
The only unsolved issue is the theme problem.
Because of that we used another way to achieve our target.
We are using one public page and reading the required parameters from user object. Its a really dirty workaround because we need many custom fields and lots of processing overhead.
The only unsolved issue is the theme problem.
Because of that we used another way to achieve our target.
We are using one public page and reading the required parameters from user object. Its a really dirty workaround because we need many custom fields and lots of processing overhead.
Florencia Gadea, geändert vor 11 Jahren.
RE: Theme for private user page
Regular Member Beiträge: 146 Beitrittsdatum: 27.03.12 Neueste Beiträge
What a pity... I have the theme problem too... and I can't use a public page.
Ok, thanks for sharing Paul.
Ok, thanks for sharing Paul.
Florencia Gadea, geändert vor 11 Jahren.
RE: Theme for private user page
Regular Member Beiträge: 146 Beitrittsdatum: 27.03.12 Neueste Beiträge
Hey, my problem got solved. I changed the name of the page, it had a dash on it.
Is it possible that this was the cause???
Is it possible that this was the cause???
Paul Schmidt, geändert vor 11 Jahren.
RE: Theme for private user page
Junior Member Beiträge: 34 Beitrittsdatum: 28.07.10 Neueste Beiträge
Unfortunately not. My page was named "Home"
Florencia Gadea, geändert vor 11 Jahren.
RE: Theme for private user page
Regular Member Beiträge: 146 Beitrittsdatum: 27.03.12 Neueste Beiträge
One more test. Did you uncheck the 'hidden' checkbox? (if checked)
Paul Schmidt, geändert vor 11 Jahren.
RE: Theme for private user page
Junior Member Beiträge: 34 Beitrittsdatum: 28.07.10 Neueste Beiträge
The page wasn't hidden.