Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » What tools do people use for building themes / templates?

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2 3 4
Go to End
Author Topic: 43909 Views
  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: What tools do people use for building themes / templates? Link to this post

    Just like Tatey, I use Smultron for creating .ss files.

    For CSS, I use CSSEdit.

    I also have the same problems with whitespace, and indentation. Having elements indented like blocks in PHP makes tracking page flow easier, IMHO anyways.

  • Wojtek
    Avatar
    Community Member
    149 Posts

    Re: What tools do people use for building themes / templates? Link to this post

    phpDesigner 2008 with all possible add-ons =] VERY powerful. parsing the php code live is nice ;)
    as for the .ss files, I have just created a new file type that is parsed similarly to html sites

  • Tatey
    Avatar
    Community Member
    18 Posts

    Re: What tools do people use for building themes / templates? Link to this post

    After using the Mac platform for over 6 months now, I've since adopted TextMate based on the recommendations of various developers. I highly recommend it to anyone developing on OS X.

  • Blackdog
    Avatar
    Community Member
    156 Posts

    Re: What tools do people use for building themes / templates? Link to this post

    Notepad++ for all my coding.

  • raVen
    Avatar
    Community Member
    4 Posts

    Re: What tools do people use for building themes / templates? Link to this post

    eclipse with the Aptana plugin and additional php plug in from Aptana. Its very nice. CSS editing Live PHP error handling and add .SS to Window => preferences => General => Content Types expand >Text and select HTML Source Files to get html code complete. Also comes with built in FTP and full Ajax Server.

  • Aaron
    Avatar
    Community Member
    63 Posts

    Re: What tools do people use for building themes / templates? Link to this post

    Exactly the info I was searching for too. I usually use NuSphere PHPEd, but for something like silverstripe, Dreamweaver would be more complete but for two problems that I can't work out:

    1. How to let Dreamweaver search through .ss files (or any other non-standard extension)
    2. How to setup up Dreamweaver to treat .ss files as HTML with code colouring and auto completion as SLJ stated.

    SLJ, can you you comment please?

    Cheers
    Aaron

  • Aaron
    Avatar
    Community Member
    63 Posts

    Re: What tools do people use for building themes / templates? Link to this post

    Well, managed to setup SS files to be recognised as HTML in Dreamweaver.
    http://livedocs.adobe.com/dreamweaver/8/extending/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=02_cus18.htm

    Now just to work out how to colour highlight the ASP style SS tags and why I cannot do a source search in SS files.

  • CodeGuerrilla
    Avatar
    Community Member
    105 Posts

    Re: What tools do people use for building themes / templates? Link to this post

    Add SS extension to:

    C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration\DocumentTypes\MMDocumentTypes.xml

    <documenttype id="HTML" internaltype="HTML" winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml,ss" macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml,ssi" file="Default.html" writebyteordermark="false">

    Open Up C:\Documents and Settings\<username>\Application Data\Adobe\Dreamweaver 9\Configuration\CodeColoring\CodeColoring.xml

    Paste the following between in the top under the <codeColoring> tag

    <scheme name="SilverStripe Template" id="SilverStripe_Template" priority="21">
       <ignoreCase>Yes</ignoreCase>
       <ignoreTags>Yes</ignoreTags>

       <blockStart name="Block Delimiter" id="CodeColor_PHPScriptBlock" doctypes="HTML" scheme="customText"><![CDATA[<%]]></blockStart>
       <blockEnd><![CDATA[%>]]></blockEnd>

       <brackets name="Bracket" id="CodeColor_JavaBracket"><![CDATA[([])]]></brackets>

       <commentStart name="Comment" id="CodeColor_PHPScriptComment"><![CDATA

    • ]></commentStart>
         <commentEnd><![CDATA
    • ]></commentEnd>

         <defaultText name="Text" id="CodeColor_PHPScriptVariables" />
         <defaultTag name="Other Tags" id="CodeColor_PHPScriptVariables" />
         <defaultAttribute />

         <stringStart name="String" id="CodeColor_PHPScriptString"><![CDATA["]]></stringStart>
         <stringEnd><![CDATA["]]></stringEnd>
         <stringStart><![CDATA[']]></stringStart>
         <stringEnd><![CDATA[']]></stringEnd>
         <stringEsc><![CDATA[\]]></stringEsc>

         <operators name="Operator" id="CodeColor_PHPScriptOperator"><![CDATA[+-*/%<>!?:=~^`.]]></operators>
         <numbers name="Number" id="CodeColor_PHPScriptNumber" />
         <idChar1>_$abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</idChar1>
         <idCharRest name="Identifier" id="CodeColor_PHPScriptIdentifier">_$abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789</idCharRest>

      <keywords name="Reserved Keywords" id="CodeColor_PHPScriptReserved">
         <keyword>if</keyword>
         <keyword>end_if</keyword>
         <keyword>else</keyword>
         <keyword>else_if</keyword>
         <keyword>control</keyword>
         <keyword>end_control</keyword>
         <keyword>base_tag</keyword>
      </keywords>

      <keywords name="Variables" id="CodeColor_PHPScriptVariables">
         <keyword>$Title</keyword>
         <keyword>$Link</keyword>
         <keyword>$XML</keyword>
         <keyword>$Parent</keyword>
         <keyword>$Form</keyword>
         <keyword>$Content</keyword>
         <keyword>$LinkingMode</keyword>
         <keyword>$LinkOrCurrent</keyword>
         <keyword>$LinkOrSection</keyword>
         <keyword>$MetaTags</keyword>
         <keyword>$URLSegment</keyword>
         <keyword>$Now</keyword>
         <keyword>$Created</keyword>
         <keyword>$LastEdited</keyword>
         <keyword>$Pos</keyword>
         <keyword>$TotalItems</keyword>
         <keyword>$Top</keyword>
         <keyword>$SeachResults</keyword>
         <keyword>$PageNum</keyword>
      </keywords>

      <keywords name="Functions" id="CodeColor_PHPScriptFunctionsKeywords">
         <keyword>Menu</keyword>
         <keyword>ChildrenOf</keyword>
         <keyword>Children</keyword>
         <keyword>AllChildren</keyword>
         <keyword>Parent</keyword>
         <keyword>Breadcrumbs</keyword>
         <keyword>CurrentMember</keyword>
         <keyword>PastMember</keyword>
         <keyword>PastVisitor</keyword>
         <keyword>Nice</keyword>
         <keyword>Year</keyword>
         <keyword>Ago</keyword>
         <keyword>Even</keyword>
         <keyword>Odd</keyword>
         <keyword>EvenOdd</keyword>
         <keyword>First</keyword>
         <keyword>Last</keyword>
         <keyword>Middle</keyword>
         <keyword>FirstLast</keyword>
         <keyword>ClassName</keyword>
         <keyword>SearchResults</keyword>
         <keyword>MoreThanOnePage</keyword>
         <keyword>Nextlink</keyword>
         <keyword>PrevLink</keyword>
         <keyword>CurrentPage</keyword>
         <keyword>TotalPages</keyword>
         <keyword>TotalItems</keyword>
         <keyword>Pages</keyword>
         <keyword>CurrentBool</keyword>
         <keyword>UL</keyword>
      </keywords>

      <sampleText doctypes="HTML,SS"><![CDATA[]]></sampleText>

      </scheme>

    The above rules are a work in progress and a probably not entirely correct but is a good start.

    If anyone improves on this please post back here.

    Thanks

    43909 Views
Page: 1 2 3 4
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.