Jump to content


Modifying A Template


7 replies to this topic

#1 Theo

    Etomite Forum Newbie

  • Member
  • 42 posts

Posted 05 January 2006 - 01:42 PM

I'm trying to learn how templates work by modifying an existing one.

My starting point is AlexisProRedux

I used the file manager to loaded my new jpg logo to templates/AlexisProRedux

used the file manager to edit template.php

Looking throught the file I spot a line that appears to be loading the image so changed this line:
<td align="center" valign="middle" class="logoBox"><a href="[~[(site_start)]~]"><img src="assets/images/logoGradient.jpg" alt="" /></a></td>
to this
<td align="center" valign="middle" class="logoBox"><a href="[~[(site_start)]~]"><img src="templates/AlexisProRedux/accordion troll.jpg" alt="" /></a></td>
which should load my logo from the AlexisProRedux temlate folder instead of logoGradient.jpg from thye assets folder.
Cleared the site cache (not sure if this is required)

Then launch the site, but it still displays the old logo

What have I missed?

#2 Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 05 January 2006 - 01:48 PM

Did you only modify the original template or did you save it as a new template? Because if you did so, you'll have to change the template your pages are using. It's on the 'publishing' tab when editing a document.

#3 Theo

    Etomite Forum Newbie

  • Member
  • 42 posts

Posted 05 January 2006 - 01:49 PM

No I just modified the existing template, and left its name the same.

#4 breezer

    Likes Etomite Forums!

  • Member
  • PipPip
  • 308 posts

Posted 05 January 2006 - 01:55 PM

if I am correct by reading this line:

Quote

used the file manager to edit template.php

you edited the original template in the themes folder?

you have to edit the template in the manager - resources - templates - alexispro

the template in the themes folder is just a hard copy of the original as the one used on your site is actually in the databse and has to be edited in the manager area.

#5 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 05 January 2006 - 02:33 PM

breezer is correct, the working copy is located under Etomite Manager > Manager resources > Manage templates... The copy in the templates directory is only there in case you screw up the original that is in the site database located as previously mentioned...

#6 Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 05 January 2006 - 02:45 PM

<< Slaps himself in the face, pours in more coffee and makes a mental note to read entire posts before answering ... >>

Edited by Jelmer, 05 January 2006 - 02:46 PM.


#7 Theo

    Etomite Forum Newbie

  • Member
  • 42 posts

Posted 05 January 2006 - 02:58 PM

Thats it, working now. Thanks. I feel sure I'll be back.

Etomite looked like just what I needed after trying e107, Joomla, and a few others. Now I can add to the benefits of Etomite: the most responsive support forum bar none.

Thanks again for answering dumb questions without making me feel an idiot.

But if I want to edit the style sheet I do that through the file manager right?

Edited by Theo, 05 January 2006 - 03:02 PM.


#8 Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 05 January 2006 - 03:09 PM

Yes. You can also use your regular FTP program to download and upload your stylesheet files.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users