Support Forums

HTML Template

This is a discussion on HTML Template within the Templates, HTML, CSS, and Design Help forums, part of the General category; If I have a good html template design how do I integrate the 68 classifieds page information, is it just ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 10-09-2006, 07:07 PM   #1
Member
 
Join Date: Oct 2006
Posts: 31
Rep Power: 20
brian-bear is on a distinguished road
Default HTML Template

If I have a good html template design how do I integrate the 68 classifieds page information, is it just a matter of using the $variables I need into the template or does smarty code need to go somewhere and what should the new template file be saved as?
brian-bear is offline   Reply With Quote
Old 10-09-2006, 07:38 PM   #2
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,135
Rep Power: 67
John Snyder is a jewel in the rough
Default

Just be sure you move all the smarty code to your html template, then just rename it layout.tpl.php.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 10-10-2006, 02:46 AM   #3
Member
 
Join Date: Oct 2006
Posts: 31
Rep Power: 20
brian-bear is on a distinguished road
Default

Hi John
Thanks for the heads up, now I think you know what the next question will be,........ where is the smarty code? If I look at the default layout.tpl I see what looks like smarty code, can you post exactly what I need please.

Thanks in advance
Brian
brian-bear is offline   Reply With Quote
Old 10-10-2006, 07:23 AM   #4
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,135
Rep Power: 67
John Snyder is a jewel in the rough
Default

smarty code looks like this:

{something}

{$something}

{if $something} something {/if}

If you are afraid you'll miss something it might be better to move you template into layout.tpl.php.

The most important part is the metatags and {include file=$body}

These will allow your title, keywords, description to be generated as well as load the classifieds into the page. I believe the rest of the smarty code is for the links.
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 10-10-2006, 12:01 PM   #5
Member
 
Join Date: Oct 2006
Posts: 31
Rep Power: 20
brian-bear is on a distinguished road
Default

Hi There John
I guessed it had to be between the head tags so just replace them from the default template layout.tpl template into my new template dir to get me going and hey presto. Can you take a look at http://www.boatsandjetskis.co.uk and let me know how to align the folders or images that they sit in an even row, probably needs a top align tag or something but cant figure it out. Or how do you get rid of the text links from the subcatagories, that may be a better option

the site is only in embrio stages but you will get the idea

thanx
brian-bear is offline   Reply With Quote
Old 10-10-2006, 01:00 PM   #6
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,135
Rep Power: 67
John Snyder is a jewel in the rough
Default

Open templates/default/home.tpl.php, this is where all that on your home page is coming from.

You can remove this to get rid of the subcat text:
Code:
[[subcats]]
As far as alignment goes it might be done via style.css, but I can't remember. If not you can edit the table attributes:

Code:
html_table_adv loop=$data cols=$cols table_attr='width="100%"'}
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Old 10-11-2006, 06:53 PM   #7
Member
 
Join Date: Oct 2006
Posts: 31
Rep Power: 20
brian-bear is on a distinguished road
Default

Hi Again
On this page, http://www.boatsandjetskis.co.uk/cat...type=16&sec=18 can you tell me how to show the short description field?

Thanks
brian-bear is offline   Reply With Quote
Old 10-12-2006, 05:21 AM   #8
Member
 
Join Date: Oct 2006
Posts: 31
Rep Power: 20
brian-bear is on a distinguished road
Default

Found solution from previous post
cheers
brian-bear is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Smarty Templates and You. Posted BY Lhotch Eric Barnes Templates, HTML, CSS, and Design Help 13 10-02-2007 08:06 AM
Free Template? FlyingBee Templates, HTML, CSS, and Design Help 4 12-08-2006 10:17 AM
Dreamweaver Template in 68classifieds sporthorsebreeder Templates, HTML, CSS, and Design Help 3 04-23-2006 10:34 AM


All times are GMT -4. The time now is 05:14 AM.


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