17452 Posts in 4473 Topics by 1971 members
|Go to End|
15 July 2008 at 6:51am
there are hundreds, or thousands, of great WordPress themes. i wish someone would make a "WordPress Theme to SilverStripe Template Converter"
is there a way to do it manually?
18 July 2008 at 3:08pm
I'm not sure how you would go about writing a Wordpress to SilverStripe theme converter - I believe that Wordpress themes allow you do include PHP code in the theme, which would make it very difficult.
You could perhaps write a converter that recognised PHP snippets commonly used in wordpress templates. It would never be 100%, but it could probably lower the barrier to entry...
Grayzag (aka ajshort)
20 July 2008 at 12:24am
I think that the fact that wordpress themes are spread across multiple files, and not always in the same files, would make a WP to SS theme converter very difficult.
IMO, it's easier just to do it manually -> e.g, get the generated HTML output (just view source in firefox), paste it into a text editor and just replace the content and style sheets etc. with SilverStripe template tags.
20 July 2008 at 7:10am
Introducing some coding standards, like IDs anc Classes names for specific site sections would really simplify the conversion process ;)
Unfortunately, no one cares about this, so you can only hope that the menus will be called sth like "menu", text containers like "content" etc.
Recently, I was thinking about writing a program to convert a theme written in specific standards to SilverStripe, even done a bit of coding, but it's not ready yet so I seriously doubt that it will be useful for anybody (search forums for the Theme Maker to find it ;) )
20 July 2008 at 6:09pm
Wojtek we have had a bit of a play around with guidelines on naming see our html, css pages and our microformats page
http://doc.silverstripe.com/doku.php?id=html - lays out the core IDs
We are still drafting and testing these ideas and would love some feedback once we have the general ideas drafted / suggestions would be great.
21 July 2008 at 5:33am
As far as standards go, I'd like to suggest using the wordpress 'sandbox' paradigm. The sandbox sets many CSS class attributes for the mark-up sections. It adds class attributes like 'first-post,' for the first posting on the page, and many others, including some class attributes based on date and time of day.
A user of the sandbox theme only needs to put in a CSS file with positioning and other attributes: Kind of like the Zen Garden for Wordpress.
|Go to Top|