Same answer as the first time, although you might want to consider abstracting themes at a higher level instead of just hiding sections via CSS. But this is pretty off-topic.
d On Apr 25, 2011 8:05 AM, "rocklee" <mini...@gmail.com> wrote: > Hi Dave, > > Thanks for your reply. Different theme maybe has different sections. For > example, the index.jsp page of theme1 maybe contains a "latest news" > section, but in theme2, there is a "popular products" section but no "latest > news" section. How to achieve this? > > Best Regards, > Lee > > On Mon, Apr 25, 2011 at 6:33 PM, Dave Newton-6 [via Struts] < > ml-node+4338026-1810801222-201...@n5.nabble.com> wrote: > >> Use CSS and include a different one for each theme. See the CSS Zen garden >> site for examples of what can be done with pure CSS. >> >> Dave >> On Apr 25, 2011 3:29 AM, "rocklee" <[hidden email]< http://user/SendEmail.jtp?type=node&node=4338026&i=0&by-user=t>> >> wrote: >> > I want to implement wordpress like themes, one application has different >> > themes, the template in each theme maybe have different layout and >> contains >> > different sections. User can select which theme to use. I thought there >> will >> >> > be a folder with different themes, like following: >> > >> > web >> > - WEB-INF >> > - themes >> > - theme1 >> > - index.jsp >> > - header.jsp >> > - footer.jsp >> > ... >> > - theme2 >> > - index.jsp >> > - header.jsp >> > - footer.jsp >> > ... >> > >> > I have been researching struts2 themes and templates, it seems the >> struts2 >> > themes is for detail ui components like a button, a dropdown etc. It has >> > different meaning than wordpress themes. I'm not sure where to start. Any >> >> > suggestions will be appreciated. Thanks a lot. >> > >> > -- >> > View this message in context: >> >> http://struts.1045723.n5.nabble.com/How-to-implement-wordpress-like-themes-tp4337790p4337790.html < http://struts.1045723.n5.nabble.com/How-to-implement-wordpress-like-themes-tp4337790p4337790.html?by-user=t > >> > Sent from the Struts - User mailing list archive at Nabble.com. >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [hidden email]< http://user/SendEmail.jtp?type=node&node=4338026&i=1&by-user=t> >> > For additional commands, e-mail: [hidden email]< http://user/SendEmail.jtp?type=node&node=4338026&i=2&by-user=t> >> > >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://struts.1045723.n5.nabble.com/How-to-implement-wordpress-like-themes-tp4337790p4338026.html >> To unsubscribe from How to implement wordpress like themes?, click here< http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4337790&code=bWluaXRpcEBnbWFpbC5jb218NDMzNzc5MHwtMTY2NTc5NjcyOQ== >. >> >> > > > -- > View this message in context: http://struts.1045723.n5.nabble.com/How-to-implement-wordpress-like-themes-tp4337790p4338143.html > Sent from the Struts - User mailing list archive at Nabble.com.