This is a discussion on I have a page editing question. within the v3.1 Questions & Support forums, part of the v3.1 Legacy Help & Support category; I would really like to replace my main page with one that I have created in expression web. I assume ...
|
|||||||
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
I would really like to replace my main page with one that I have created in expression web.
I assume I need to upload the images to my images folder then replace a page with the one I created. In my new home page I do not want the nav table, features listings or the categories displayed. I created links to the same pages on my new page and they work My new page which is still under construction is live at www.thecarfixr.com in a temporary location for testing Which file do I replace to use this page? Is this possible? www.mankatoforsalebyower.com Thanks all! |
|
#2
|
||||
|
||||
|
Save your new page to your template folder root and name it "layout.tpl.php"
-Mike
__________________
Mike-N-Tosh v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0.9, 4.1RC1 Templates, Mods & Docs | My blog with much content for 68 Classifieds. Web Hosting | Web Design & Development | 68 Classifieds Customizations I am not a 68C employee, just a user and try to help out |
|
#3
|
|||
|
|||
|
Tater-
Mike's given good advice - I would add that you could come up with a design you like in any WYSIWYG editor and load it in a browser. View the source, copy all. Take the source code and load it in a text editor. Load one of the stock layout.tpl.php files in a second window of a text editor. Then copy from the stock layout.tpl.php file the smarty tags, table builds, etc and paste it into your new design where they're needed. When you're ready to publish your new layout, create a new folder inside your templates directory on the server. Upload the new layout.tpl.php there and login to admin to choose it as the layout you want. Any other elements that aren't inside your new template directory will be pulled from the default template directory. Basically, the only thing you will have in the new template directory will be an images folder, the layout.tpl.php file and your stylesheet. Hope this helps. |
|
#4
|
||||
|
||||
|
Quote:
__________________
v4.09 Developer MKClassifieds "All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642) |
|
#5
|
||||
|
||||
|
Just for clarification, you mean any other template files that you don't create in your new template folder (ie: something.tpl.php) will automagically be retrieved from the default template folder.
-Mike
__________________
Mike-N-Tosh v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0.9, 4.1RC1 Templates, Mods & Docs | My blog with much content for 68 Classifieds. Web Hosting | Web Design & Development | 68 Classifieds Customizations I am not a 68C employee, just a user and try to help out |
|
#6
|
|||
|
|||
|
Yes, that's correct.
When a page is called from the server, the php file sends what's needed to the smarty template files. The script looks in the database to see what template directory to use. It builds the page with the layout.tpl.php file in that directory and any other template files it finds there. If it doesn't see a template file it needs, it'll pull it from the default template directory. |
|
#7
|
||||
|
||||
|
I've followed the advice here very carefully but every time I try to create a new template I get an error message similar to the following;
Quote:
__________________
v4.09 Developer MKClassifieds "All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642) |
|
#8
|
||||
|
||||
|
With Smarty templates you need to be sure and wrap {literal} tags around any javascript code or css because that could cause this error.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can I run scripts in an content page? | dawyatt | v3.1 Questions & Support | 11 | 06-22-2007 03:50 PM |
| Can't edit page content | redgsr | v3.1 Questions & Support | 6 | 03-08-2007 02:41 PM |
| Problem getting page title | flyingpylon | v3.1 Questions & Support | 5 | 10-19-2006 02:15 PM |
| MAFFO News Mod & Page Rank Questions | bgordon | Site Marketing | 7 | 09-20-2006 03:31 PM |
| Editing test on the opening page | spaceboy | v3.1 Questions & Support | 1 | 08-15-2006 08:43 AM |