I have a page editing question.

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 ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Questions & Support

 
LinkBack Thread Tools Display Modes
  #1  
Old 03-21-2007, 01:38 PM
Junior Member
 
Join Date: Mar 2007
Location: Southern Minnesota
Posts: 9
Rep Power: 0
Default I have a page editing question.

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!

Reply With Quote
  #2  
Old 03-21-2007, 05:29 PM
Moderator
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,038
Rep Power: 31
Default

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
Reply With Quote
  #3  
Old 03-22-2007, 03:36 PM
Staff
 
Join Date: Mar 2006
Posts: 388
Rep Power: 19
Default

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.
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
Reply With Quote
  #4  
Old 03-23-2007, 02:39 PM
Senior Member
 
Join Date: Jan 2007
Posts: 260
Rep Power: 14
Default

Quote:
Any other elements that aren't inside your new template directory will be pulled from the default template directory.
Handy to know.
__________________
v4.09 Developer
MKClassifieds


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
Reply With Quote
  #5  
Old 03-23-2007, 05:37 PM
Moderator
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,038
Rep Power: 31
Default

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
Reply With Quote
  #6  
Old 03-23-2007, 06:18 PM
Staff
 
Join Date: Mar 2006
Posts: 388
Rep Power: 19
Default

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.
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
Reply With Quote
  #7  
Old 03-29-2007, 12:50 PM
Senior Member
 
Join Date: Jan 2007
Posts: 260
Rep Power: 14
Default

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:
Fatal error: Smarty error: [in layout.tpl.php line 127]: syntax error: unidentified token '{' (Smarty_Compiler.class.php, line 1396) in /home/michael/public_html/mkclassifieds/includes/classes/smarty/Smarty.class.php on line 1095
Any suggestions?
__________________
v4.09 Developer
MKClassifieds


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
Reply With Quote
  #8  
Old 03-29-2007, 01:14 PM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,323
Rep Power: 99
Default

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
Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 01:40 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22