Jonas Fonseca 12年 前 Awesome, although I does raise the question where to put an extension if it needs to both change the style (theme specific) and some logic (hook specific). Any thoughts on that? I am also curious as to whether it is possible to use an instance portlet ID, if for example I wanted to change only the look and feel of the asset publisher on my front page? 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Jonas Fonseca 12年 前 - 編集済み Well, it's not hard to work out where a change should go.- If it should affect the whole portal, put it in a hook- if it should not affect the whole portal, put it in a themeYou can use instance portletIds. To make sure I tested (and fixed) the scenario of applying first to all instanceable portlets on a page (include no instance in the naming) as well as overriding a single portlet with a more specific change (using the instanceId). e.g._diffs/templates/html/taglib/ui/page_iterator/start.101_INSTANCE_0dmaduACd9V6.ftl_diffs/templates/html/taglib/ui/page_iterator/start.101.ftlThe change should appear in trunk today once https://github.com/brianchandotcom/liferay-portal/pull/1046 is accepted. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Ray Augé 12年 前 The instance portletId fix is now in trunk (and will be in 6.1). 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Jonas Fonseca 12年 前 - 編集済み Well, it's not hard to work out where a change should go.- If it should affect the whole portal, put it in a hook- if it should not affect the whole portal, put it in a themeYou can use instance portletIds. To make sure I tested (and fixed) the scenario of applying first to all instanceable portlets on a page (include no instance in the naming) as well as overriding a single portlet with a more specific change (using the instanceId). e.g._diffs/templates/html/taglib/ui/page_iterator/start.101_INSTANCE_0dmaduACd9V6.ftl_diffs/templates/html/taglib/ui/page_iterator/start.101.ftlThe change should appear in trunk today once https://github.com/brianchandotcom/liferay-portal/pull/1046 is accepted. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Ray Augé 12年 前 The instance portletId fix is now in trunk (and will be in 6.1). 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Ray Augé 12年 前 The instance portletId fix is now in trunk (and will be in 6.1). 投票するためにはログインが必要です。 次として送信する: キャンセル
Jonas Fonseca 12年 前 Thanks for the update. Can't wait to put this to good use. 投票するためにはログインが必要です。 次として送信する: キャンセル
(あなた) 11年 前 [...] Basically you can't: http://www.liferay.com/community/forums/-/message_boards/message/14269385 BUT, if you take a look here: http://www.liferay.com/web/raymond.auge/blog/-/blogs/jsp-include-buffer... [...] Read More 投票するためにはログインが必要です。 次として送信する: キャンセル
dauphine laure 10年 前 hello,I have followed your tutorial and got my red box ^ ^For cons, I wondered if it was possible, to follow this to overload an entire jsp?I think about : ROOT\html\taglib\ui\search\start.jspthanks 投票するためにはログインが必要です。 次として送信する: キャンセル
dauphine laure 10年 前 hello,I have followed your tutorial and got my red box ^ ^For cons, I wondered if it was possible, to follow this to overload an entire jsp?I think about : ROOT\html\taglib\ui\search\start.jspthanks 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé dauphine laure 10年 前 Yes it's possible! Simply do not delegate to the original jsp i.e. don't use the buffer logic. Just output whatever you need. 投票するためにはログインが必要です。 次として送信する: キャンセル dauphine laure Ray Augé 10年 前 agreebut I can't put code "jsp" directly into the template.For example, if I put the first line <% @ include file = "/ html / taglib / ui / search / init.jsp '%>it is not analyzed, but just displayed.I should not use the right tag for that ... ? 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé dauphine laure 10年 前 You can't use the jsp direct include at all from a template.It "might" work if you simply use the dispatched include with only the init.jsp#set ($V = $includeTag.setPage('/html/taglib/ui/page_iterator/init.jsp')).. but that's a long shot. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé dauphine laure 10年 前 Yes it's possible! Simply do not delegate to the original jsp i.e. don't use the buffer logic. Just output whatever you need. 投票するためにはログインが必要です。 次として送信する: キャンセル dauphine laure Ray Augé 10年 前 agreebut I can't put code "jsp" directly into the template.For example, if I put the first line <% @ include file = "/ html / taglib / ui / search / init.jsp '%>it is not analyzed, but just displayed.I should not use the right tag for that ... ? 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé dauphine laure 10年 前 You can't use the jsp direct include at all from a template.It "might" work if you simply use the dispatched include with only the init.jsp#set ($V = $includeTag.setPage('/html/taglib/ui/page_iterator/init.jsp')).. but that's a long shot. 投票するためにはログインが必要です。 次として送信する: キャンセル
dauphine laure Ray Augé 10年 前 agreebut I can't put code "jsp" directly into the template.For example, if I put the first line <% @ include file = "/ html / taglib / ui / search / init.jsp '%>it is not analyzed, but just displayed.I should not use the right tag for that ... ? 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé dauphine laure 10年 前 You can't use the jsp direct include at all from a template.It "might" work if you simply use the dispatched include with only the init.jsp#set ($V = $includeTag.setPage('/html/taglib/ui/page_iterator/init.jsp')).. but that's a long shot. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé dauphine laure 10年 前 You can't use the jsp direct include at all from a template.It "might" work if you simply use the dispatched include with only the init.jsp#set ($V = $includeTag.setPage('/html/taglib/ui/page_iterator/init.jsp')).. but that's a long shot. 投票するためにはログインが必要です。 次として送信する: キャンセル
Víctor Ponz 9年 前 I'm trying to apply this approach in Liferay 6.2 ga3 but nothing happens. What can I do to override a jsp from a theme?Thanks 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 Did you enable the portal property?https://github.com/liferay/liferay-portal/blob/6.2.x/portal-impl/src/portal.properties#L656-L660 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 Which property?Thanks 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 Please follow the link I posted above. 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 The link on the previos comment didn't work, but the one on the e-mail didThanks, 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 Sadly the comments don't support real links.. you have to copy paste!Let's call it a "security feature"! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 I know, but if you try to copy and paste that one, doesn't work, at least on my browser 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 true... weird! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 Hi Ray. With the property theme.jsp.override.enabled=true I can use this approach. But now the question is that I'm unable to make it works because I only get ${pageContext.findAttribute('html')} printed, like on this forum posthttps://www.liferay.com/es/web/raymond.auge/blog/-/blogs/jsp-include-bufferThanks in advance 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Víctor Ponz 9年 前 Did you enable the portal property?https://github.com/liferay/liferay-portal/blob/6.2.x/portal-impl/src/portal.properties#L656-L660 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 Which property?Thanks 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 Please follow the link I posted above. 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 The link on the previos comment didn't work, but the one on the e-mail didThanks, 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 Sadly the comments don't support real links.. you have to copy paste!Let's call it a "security feature"! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 I know, but if you try to copy and paste that one, doesn't work, at least on my browser 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 true... weird! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 Hi Ray. With the property theme.jsp.override.enabled=true I can use this approach. But now the question is that I'm unable to make it works because I only get ${pageContext.findAttribute('html')} printed, like on this forum posthttps://www.liferay.com/es/web/raymond.auge/blog/-/blogs/jsp-include-bufferThanks in advance 投票するためにはログインが必要です。 次として送信する: キャンセル
Víctor Ponz Ray Augé 9年 前 Which property?Thanks 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 Please follow the link I posted above. 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 The link on the previos comment didn't work, but the one on the e-mail didThanks, 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 Sadly the comments don't support real links.. you have to copy paste!Let's call it a "security feature"! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 I know, but if you try to copy and paste that one, doesn't work, at least on my browser 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 true... weird! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 Hi Ray. With the property theme.jsp.override.enabled=true I can use this approach. But now the question is that I'm unable to make it works because I only get ${pageContext.findAttribute('html')} printed, like on this forum posthttps://www.liferay.com/es/web/raymond.auge/blog/-/blogs/jsp-include-bufferThanks in advance 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Víctor Ponz 9年 前 Please follow the link I posted above. 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 The link on the previos comment didn't work, but the one on the e-mail didThanks, 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 Sadly the comments don't support real links.. you have to copy paste!Let's call it a "security feature"! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 I know, but if you try to copy and paste that one, doesn't work, at least on my browser 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 true... weird! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 Hi Ray. With the property theme.jsp.override.enabled=true I can use this approach. But now the question is that I'm unable to make it works because I only get ${pageContext.findAttribute('html')} printed, like on this forum posthttps://www.liferay.com/es/web/raymond.auge/blog/-/blogs/jsp-include-bufferThanks in advance 投票するためにはログインが必要です。 次として送信する: キャンセル
Víctor Ponz Ray Augé 9年 前 The link on the previos comment didn't work, but the one on the e-mail didThanks, 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 Sadly the comments don't support real links.. you have to copy paste!Let's call it a "security feature"! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 I know, but if you try to copy and paste that one, doesn't work, at least on my browser 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 true... weird! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 Hi Ray. With the property theme.jsp.override.enabled=true I can use this approach. But now the question is that I'm unable to make it works because I only get ${pageContext.findAttribute('html')} printed, like on this forum posthttps://www.liferay.com/es/web/raymond.auge/blog/-/blogs/jsp-include-bufferThanks in advance 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Víctor Ponz 9年 前 Sadly the comments don't support real links.. you have to copy paste!Let's call it a "security feature"! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 I know, but if you try to copy and paste that one, doesn't work, at least on my browser 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 true... weird! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 Hi Ray. With the property theme.jsp.override.enabled=true I can use this approach. But now the question is that I'm unable to make it works because I only get ${pageContext.findAttribute('html')} printed, like on this forum posthttps://www.liferay.com/es/web/raymond.auge/blog/-/blogs/jsp-include-bufferThanks in advance 投票するためにはログインが必要です。 次として送信する: キャンセル
Víctor Ponz Ray Augé 9年 前 I know, but if you try to copy and paste that one, doesn't work, at least on my browser 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Víctor Ponz 9年 前 true... weird! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 Hi Ray. With the property theme.jsp.override.enabled=true I can use this approach. But now the question is that I'm unable to make it works because I only get ${pageContext.findAttribute('html')} printed, like on this forum posthttps://www.liferay.com/es/web/raymond.auge/blog/-/blogs/jsp-include-bufferThanks in advance 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Víctor Ponz 9年 前 true... weird! 投票するためにはログインが必要です。 次として送信する: キャンセル Víctor Ponz Ray Augé 9年 前 Hi Ray. With the property theme.jsp.override.enabled=true I can use this approach. But now the question is that I'm unable to make it works because I only get ${pageContext.findAttribute('html')} printed, like on this forum posthttps://www.liferay.com/es/web/raymond.auge/blog/-/blogs/jsp-include-bufferThanks in advance 投票するためにはログインが必要です。 次として送信する: キャンセル
Víctor Ponz Ray Augé 9年 前 Hi Ray. With the property theme.jsp.override.enabled=true I can use this approach. But now the question is that I'm unable to make it works because I only get ${pageContext.findAttribute('html')} printed, like on this forum posthttps://www.liferay.com/es/web/raymond.auge/blog/-/blogs/jsp-include-bufferThanks in advance 投票するためにはログインが必要です。 次として送信する: キャンセル