Jump to content


Confusion About Adding Template.


9 replies to this topic

#1 scraf

    Etomite Forum Fan

  • Member
  • Pip
  • 57 posts

Posted 23 February 2006 - 09:14 AM

OK, this is taking way too long.

I've created a template using the manager, but it doesn't show up in the manage files >> templates directory ( in the manager )

So I ftp a template to that directory, but that doesn't show up in the manager if I go to manage resources >> manage templates.

Catch 22 :(

( Clean install of 0.6.1 RTM )

#2 scraf

    Etomite Forum Fan

  • Member
  • Pip
  • 57 posts

Posted 23 February 2006 - 09:24 AM

aahhhhh.................... the style sheet resides in a "chunk"

Although I am no wiser as to the original question, I am happily editting away

#3 breezer

    Likes Etomite Forums!

  • Member
  • PipPip
  • 308 posts

Posted 23 February 2006 - 10:57 AM

Actually, the template used to display is stored in the database, the templates folder is just a place to store a hard copy for backup or images and stylesheets associated with the template.

To add a new template to the sysytem or edit an existing one go into manage resources> templates and add the html code there, and then you can put any images or stylesheets associated with that template in the templates folder. You can put the styles in a chunk but it is more economical to link ito it via a link tag in the head of the template.

#4 scraf

    Etomite Forum Fan

  • Member
  • Pip
  • 57 posts

Posted 13 March 2006 - 10:12 AM

Has there ever been a way to use an external text editor instead of the "manage resources> templates" resource?

That would only be possible by having the template as a normal text file as opposed to pulling it out of the database, I guess.

What I am really missing is the ability to do a "Control+Z" to undo lousy tweaks. ( Being a lousy tweaker )

#5 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 13 March 2006 - 10:33 AM

No, there hasn't :)

#6 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 13 March 2006 - 03:09 PM

scraf, on Mar 13 2006, 06:12 AM, said:

What I am really missing is the ability to do a "Control+Z" to undo lousy tweaks. ( Being a lousy tweaker )
Backups...!!! Backups...!!! Backups...!!!

Oh, did I mention backups... :?:


<<< On the lighter and more philosophical side... >>>

Quote

"Getting tired of making mistakes is one of the biggest factors in causing humans to improve at given tasks... The road to perfection might be long or it might be short - I can't say as I'm still searching for the on-ramp..." - Ralph 2006...  :lol:


#7 scraf

    Etomite Forum Fan

  • Member
  • Pip
  • 57 posts

Posted 21 March 2006 - 04:55 PM

Sorry, I missed that post, Ralph.

What's your usual method of backing up, sql dumps, or do you make text copies of the templates etc.?

Anecdote........

Today I had a beautiful looking front page to a site (imho) ready for my boss to show to the client. I knew that he was seeing the client at 16.00, about ten to I went to the supermarket to pick up some wine for her indoors who was coming around, also at 16.00.

There I was in the supermarket at 13.50, my boss rings "did you take the site off the web"? "Er no"

I rush home, "site's fine".

"no, it's not"

It's working in Firefox, but all over the shop in IE, clear the cache doesn't help, I was sure that I had cross browser checked.

Whip off a screenshot to my boss, say that I'll try and sort it.

So anyway I go into a blind panic, there was a Javascript news ticker that could have been to blame, started eliminating things, finally worked out that it was a flash logo that was causing the problems. Replaced the logo with a .gif, couldn't find the news ticker anymore, text messaged the boss, "it's working, just no moving things anymore".

He missed the appointment, has another one tomorrow morning.

I have a good look, it seems that while tidying up my code, when I accumulated all the flash parameters into a chunk I seemed to have missed the </object> tag. Firefox didn't mind, IE went haywire.

All is good now......

..... although inbetween my SO turned up with some "vol au vents" that must be eaten warm.

In short, it doesn't look like I am going to get laid tonight, the blame firmly rests on Bill Gates and Internet Explorer.

[/rant]

What I learned: If fixing things in a hurry use a clone of the template and css file, back up the text of the page you're working on.

Edited by scraf, 21 March 2006 - 04:56 PM.


#8 scraf

    Etomite Forum Fan

  • Member
  • Pip
  • 57 posts

Posted 21 March 2006 - 05:50 PM

scraf, on Mar 13 2006, 12:12 PM, said:

Has there ever been a way to use an external text editor instead of the "manage resources> templates" resource?

That would only be possible by having the template as a normal text file as opposed to pulling it out of the database, I guess.

What I am really missing is the ability to do a "Control+Z" to undo lousy tweaks. ( Being a lousy tweaker )

Dean, on Mar 13 2006, 12:33 PM, said:

No, there hasn't :)

How about this?

The template file is nothing more than a bit of code with a php "include", then the include resides in a text file on the server to be editted at will by a "live to ftp" text editor. ( that's the way I've been tweaking the css files )

That's going to work. :)

#9 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 21 March 2006 - 07:33 PM

scraf, on Mar 21 2006, 12:55 PM, said:

Sorry, I missed that post, Ralph.

What's your usual method of backing up, sql dumps, or do you make text copies of the templates etc.?

Backups...??? :blink: In a perfect world we wouldn't need no damned backups... :lol:

Hmmm... How do I backup - let me couint the ways...

I make text backups of "work in progress code" on my local machine as that's where I do my editing...

I do normal database backups, but not with the intention of recoving from my mistakes...

I've also been known to make backups of snippet code over in the chunks area in an effort to have less clutter in my already cluttered snippet list (210 and counting)...

I also do an FTP site backup every so often...

I also do a site backup across the intranet every so often...

I also use phpMyAdmin to clone my Etomite database every so often...

Oh, and did I mention - Backups...!!! Backups...!!! Backups...!!!

:lol:

#10 scraf

    Etomite Forum Fan

  • Member
  • Pip
  • 57 posts

Posted 24 March 2006 - 08:28 AM

OK, got it working, surprisingly easy thanks to mrruben5's "Include" snippet.

Simply made a templates/myTemplate/template.php file, uploaded it and then "included" it in the template editor of Etomite.

The only code in the actual template of Etomite being...

[[Include?phpfile=templates/myTemplate/template.php]]

Now I open the template.php file in my "live to ftp" text editor, and all my mistakes can be repaired with the old ctrl+Z

Yippee, as I'd become far to used to that way of developing..... "tweak", no good, undo "tweak again". :)

( A "live to FTP" editor means that when you hit "save" the file on the server is updated, be it localhost or live. I personally use UltraEdit which isn't freeware, but has the ability to do automatic back-ups I believe, Dreamweaver has also the technology, and it wouldn't surprise me if there was a decent freeware editor out there somewhere as well )

Edited by scraf, 24 March 2006 - 08:29 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users