1 of 6
1
Live Preview with Coda (and other IDEs)
Posted: 24 April 2007 12:36 PM   [ Ignore ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19269
Joined  06-03-2002

As happens most of the time when the internet is all abuzz with some new tool, the release of Panic software’s new web development IDE, Coda prompted most of us here at EllisLab to download it and try it out.  Allow me to share with you a nifty gem that makes Coda and other applications like it (Dreamweaver, Freeway Pro, etc.) have a leg up on other workflows when working on ExpressionEngine based sites.

Continue reading…

 Signature 
Profile
MSG
 
 
Posted: 24 April 2007 12:41 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  213
Joined  10-12-2003

Wow, what a fantastic idea, I’ll try it right now. Coda seems like a very nice application. I’ve been using BBEdit for years but I sense that applications like Coda are starting to make it irrelevant.

 Signature 

Peter Dinesen
Dinesen-Schacht LLC

Profile
 
 
Posted: 24 April 2007 12:47 PM   [ Ignore ]   [ # 2 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6243
Joined  08-04-2002

Derek…Getting a 404 on that continue link.

Profile
 
 
Posted: 24 April 2007 12:53 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19269
Joined  06-03-2002
PXLated - 24 April 2007 12:47 PM

Derek…Getting a 404 on that continue link.

Sorry about that, Randy; fixed.

 Signature 
Profile
MSG
 
 
Posted: 24 April 2007 01:03 PM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6243
Joined  08-04-2002

Cool…
There was a full review/pics out yesterday kind of blowing the surprise but had to wait for Panic to officially announce today and make it available. Downloaded Coda very early this am but am having one of those meeting, meeting, meeting days. Can’t wait to try this out later.

Profile
 
 
Posted: 24 April 2007 01:33 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  105
Joined  12-16-2002

Heh. Very nice, thank you. Funny, I was just in the process of prepping an email to both you guys and Panic about how much I’d like to see some integration. I’d still love to be able to build and manage templates directly from within Coda.

Profile
 
 
Posted: 24 April 2007 02:02 PM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  848
Joined  04-24-2002

Nice tip, Les and Derek. Makes Coda a little more interesting now. The editor needs help in a big way for me to consider switching though. If the next few updates fix it, I may give Coda another serious look.

 Signature 

chrisruzin.netTextMate EE BundlejEdit EE ModeSolspace
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
Posted: 24 April 2007 02:04 PM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19269
Joined  06-03-2002

It’s essentially SubEthaEdit, so it’s not horrible, but like you, I’d die if I could integrate TextMate into Coda.

 Signature 
Profile
MSG
 
 
Posted: 24 April 2007 03:59 PM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  916
Joined  07-18-2006

That tip given in the blog is pretty nifty, but it scares the bejebus out of me. Make edits to the live site in real time? Yikes!

Or does that mean you’re viewing changes live on your local machine, but then you can upload them when you see fit?

Profile
 
 
Posted: 24 April 2007 04:04 PM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19269
Joined  06-03-2002

When you are working with templates as files, you are always editing the site “live”—no different than editing templates in the template editor.  Whether you are doing that in a local environment, staging area, or live site is a completely different matter. wink

 Signature 
Profile
MSG
 
 
Posted: 24 April 2007 04:11 PM   [ Ignore ]   [ # 10 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  916
Joined  07-18-2006
Derek Jones - 24 April 2007 04:04 PM

When you are working with templates as files, you are always editing the site “live”—no different than editing templates in the template editor.  Whether you are doing that in a local environment, staging area, or live site is a completely different matter. wink

True smile

If you have things set up the way you describe, you can still use the built-in FTP features of Coda to get your templates to the live site?

Man I wish I could plug TextMate in as the editor. When I used SubEthaEdit (albeit a long time ago) it seems so lacking - really the big thing about it was the collaboration side.

Profile
 
 
Posted: 24 April 2007 04:14 PM   [ Ignore ]   [ # 11 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19269
Joined  06-03-2002

If you have things set up the way you describe, you can still use the built-in FTP features of Coda to get your templates to the live site?

That’s really the entire point of the described workflow.  When you use the Save Templates as Files feature of ExpressionEngine, your pages are served not from the database, but from the contents of those template files.  So editing via FTP instantly makes changes occur on your site.

 Signature 
Profile
MSG
 
 
Posted: 24 April 2007 07:28 PM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  916
Joined  07-18-2006

Hold me!

Profile
 
 
Posted: 24 April 2007 08:23 PM   [ Ignore ]   [ # 13 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  848
Joined  04-24-2002

I almost always save my templates as files. It makes editing them sooooo much easier.

 Signature 

chrisruzin.netTextMate EE BundlejEdit EE ModeSolspace
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
Posted: 24 April 2007 08:49 PM   [ Ignore ]   [ # 14 ]  
Lab Assistant
RankRank
Total Posts:  122
Joined  01-20-2003

My workflow has been Transmit and SubEthaEdit for a while so Coda seems a dream come true.

Is there any performance hit (or improvement) in using text file templates versus pulling them from the database?

Profile
 
 
Posted: 24 April 2007 08:54 PM   [ Ignore ]   [ # 15 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19269
Joined  06-03-2002
rish - 24 April 2007 08:49 PM

Is there any performance hit (or improvement) in using text file templates versus pulling them from the database?

The extra file access would only be noticeable on hosts with strained hardware.  And by noticeable, I mean that you would be able to see a numeric difference in script execution time, not really that it would be noticeable from a usage perspective.

 Signature 
Profile
MSG
 
 
Posted: 24 April 2007 10:44 PM   [ Ignore ]   [ # 16 ]  
Lab Assistant
RankRank
Total Posts:  122
Joined  01-20-2003

Great, it took me a while to get this working as I wanted it.
I ended up setting the Remote URL and Remote Root in Coda to both point at my template files directory and the following .htaccess (already rewriting out index.php elsewhere).

RedirectMatch 301 /system/template_files/(.*)\.php$ /$1/
Profile
 
 
Posted: 25 April 2007 04:49 PM   [ Ignore ]   [ # 17 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  374
Joined  09-30-2003

WOW!!  two new things to learn about in one week. First it was MAMP and now CODA…. I am into them both now.

re: templates.
As I recall from my past experience savng the Templates as Files is a “preference” that I had to always remember to check .... is there a way to make this as my DEFAULT preference? i.e i don’t want to worry that if i use the web-browser to update a template that it fails to save to the file, ... 

cheers

 Signature 

“Things look different from the seat of a bike carrying a sleeping bag with a cold beer tucked inside.”  ~Jim Malusa
“The bicycle has a soul. If you succeed to love it, it will give you emotions that you will never forget” ~ Mario Cipollini

Profile
 
 
Posted: 25 April 2007 04:55 PM   [ Ignore ]   [ # 18 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  19269
Joined  06-03-2002

is there a way to make this as my DEFAULT preference?

No, but if a template is already saved to a file, that checkbox will remain checked if you edit the template via the Template Manager in the control panel, so it will save to the existing file unless you uncheck it.

 Signature 
Profile
MSG
 
 
   
1 of 6
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 02:47 PM
Total Registered Members: 119539 Total Logged-in Users: 72
Total Topics: 125770 Total Anonymous Users: 43
Total Replies: 661801 Total Guests: 425
Total Posts: 787571    
Members ( View Memberlist )
Newest Members:  nottRobinKendpkitoyfr1arHomer Landisrogersgoldminesaricflan344Polzmejustulike