Support Forums

Old 04-23-2009, 08:43 AM   #1
Junior Member
 
Join Date: Jun 2008
Posts: 18
Rep Power: 4
business is on a distinguished road
Default Extra page question

I created a page using the page editor. I want to include some featured listings on this page and used the function

Code:
{feature_listings_horizontal number=8 cols=4 table_attr='width="100%" cellpadding="3" cellspacing="3"' td_attr='style="border-top: 1px dashed #999;"'}
but when I view the page the code is displayed.... not the featured listings... is it possible to call these functions in extra pages?
business is offline   Reply With Quote
Old 04-23-2009, 09:31 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 4,103
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
Default

Extra page content is stored in the database and therefor passed to the templates as a variable so the content of the page is not parsed at all for php/plugins etc.

You will need to create a static page manually if you want to have any sort of dynamic content in it.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 04-23-2009, 10:07 AM   #3
Junior Member
 
Join Date: Jun 2008
Posts: 18
Rep Power: 4
business is on a distinguished road
Default

thanks. if i create a page manually, is it possible to display the page within the look n feel of the main site... header n footer maintained.
business is offline   Reply With Quote
Old 04-23-2009, 10:22 AM   #4
Moderator
 
 
Join Date: Mar 2006
Posts: 4,103
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by business View Post
thanks. if i create a page manually, is it possible to display the page within the look n feel of the main site... header n footer maintained.
Sure.

Just create a php page with content to display the layout.tpl template and the body template you would like, for example....


create a php file and in it have the following......

Code:
require_once('includes/init.php');
$class_tpl->assign('body','mytemplate.tpl');
$class_tpl->display('layout.tpl');

replace "mytemplate.tpl with the name of template file you would like to display in the body of your site.

Next create a template file with what you would like to have in it and save it in the template folder you are using.

Then add a link in your navigation to the php file you created.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 04-23-2009, 08:46 PM   #5
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,321
Rep Power: 39
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

A much easier method is to simply use smarty logic on the content.tpl template file like this:
{if $title=="pagetitle"}
{feature_listings_horizontal number=8 cols=4 table_attr='width="100%" cellpadding="3" cellspacing="3"' td_attr='style="border-top: 1px dashed #999;"'}
{/if}
pagetitle is the title of the page that you want this shown in.
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1
Templates, Mods & Docs for sale | 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
Mike-N-Tosh is offline   Reply With Quote
Old 04-24-2009, 06:32 AM   #6
Moderator
 
 
Join Date: Mar 2008
Posts: 778
Rep Power: 21
seymourjames has a spectacular aura about
Default

I think this presumes that you wish to place/call the function to display before or after the content you have defined for your page but as Mike says it is quick and easy to do. You would do the test before or after {$pPageContent} which is sitting in the content.tpl file. Another place you could test and do something similar is in your layout.tpl file. If you search the forum there are lots of examples of how to make tests for pages either by their title or the script being used.
__________________
TemplateCodes.com
seymourjames is offline   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
Registration Page: Extra Copy anna245 v4 Questions & Support 1 06-10-2008 01:38 PM
extra fields on show results page anna245 v4 Questions & Support 3 04-18-2008 01:31 PM
I have a page editing question. Tater v3.1 Questions & Support 7 03-29-2007 12:14 PM
Extra Fields Question goose Pre Sales Questions 2 03-22-2007 02:51 PM


All times are GMT -4. The time now is 03:06 AM.


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