Josh Asbury 15年 前 Ryan - What will be the recommended way to customize this type of stuff from here on out? For example, I typically change the company logo's size in the included CSS block. Also, should other Javascript includes still be added to the bottom of portal_normal.vm? 投票するためにはログインが必要です。 次として送信する: キャンセル Ryan Park Josh Asbury 15年 前 Hi Josh,The CSS in that block could be over written simply by specifying a higher weighted CSS selector in you css file. For example,body #banner .logo a {height: 10px; width: 10px}As far as including the JS, what are you attempting to include? You could write your JS into javascript.js in the javascript folder in your theme and it will automatically get included. 投票するためにはログインが必要です。 次として送信する: キャンセル Josh Asbury Ryan Park 15年 前 Thanks, Ryan. I'll give that a shot. Regarding the Javascript, I am including some other jQuery libraries like Superfish and Cycle Lite for some of my themes. I thought that adding them via the portal_normal in this manner #js("$javascript_folder/superfish.js")was a good practice -- and then calling them from the theme's javascript.js. How would you recommend including stuff like this? 投票するためにはログインが必要です。 次として送信する: キャンセル Ryan Park Josh Asbury 15年 前 Hey Josh, I'm not entirely sure what is the best practice to include another JS library but that is how I would include it as well. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ryan Park Josh Asbury 15年 前 Hi Josh,The CSS in that block could be over written simply by specifying a higher weighted CSS selector in you css file. For example,body #banner .logo a {height: 10px; width: 10px}As far as including the JS, what are you attempting to include? You could write your JS into javascript.js in the javascript folder in your theme and it will automatically get included. 投票するためにはログインが必要です。 次として送信する: キャンセル Josh Asbury Ryan Park 15年 前 Thanks, Ryan. I'll give that a shot. Regarding the Javascript, I am including some other jQuery libraries like Superfish and Cycle Lite for some of my themes. I thought that adding them via the portal_normal in this manner #js("$javascript_folder/superfish.js")was a good practice -- and then calling them from the theme's javascript.js. How would you recommend including stuff like this? 投票するためにはログインが必要です。 次として送信する: キャンセル Ryan Park Josh Asbury 15年 前 Hey Josh, I'm not entirely sure what is the best practice to include another JS library but that is how I would include it as well. 投票するためにはログインが必要です。 次として送信する: キャンセル
Josh Asbury Ryan Park 15年 前 Thanks, Ryan. I'll give that a shot. Regarding the Javascript, I am including some other jQuery libraries like Superfish and Cycle Lite for some of my themes. I thought that adding them via the portal_normal in this manner #js("$javascript_folder/superfish.js")was a good practice -- and then calling them from the theme's javascript.js. How would you recommend including stuff like this? 投票するためにはログインが必要です。 次として送信する: キャンセル Ryan Park Josh Asbury 15年 前 Hey Josh, I'm not entirely sure what is the best practice to include another JS library but that is how I would include it as well. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ryan Park Josh Asbury 15年 前 Hey Josh, I'm not entirely sure what is the best practice to include another JS library but that is how I would include it as well. 投票するためにはログインが必要です。 次として送信する: キャンセル
Eddie Wang 14年 前 Hi Ryan,Can I remove the $theme.include($top_head_include) from my theme? If yes, is there any significant effect to liferay functionality Or do you know specifically which head JavaScript can be remove ?? If no, any reason why not? Any suggestions, insights or advice would be welcome and appreciated.Thanks in advance 投票するためにはログインが必要です。 次として送信する: キャンセル