|
|
#1 |
|
Junior Member
Join Date: Jun 2008
Posts: 18
Rep Power: 4 ![]() |
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;"'}
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2006
Posts: 4,103
Rep Power: 100 ![]() ![]() |
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 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2008
Posts: 18
Rep Power: 4 ![]() |
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.
|
|
|
|
|
|
#4 | |
|
Moderator
Join Date: Mar 2006
Posts: 4,103
Rep Power: 100 ![]() ![]() |
Quote:
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 |
|
|
|
|
|
|
#5 |
|
Moderator
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,321
Rep Power: 39 ![]() ![]() |
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 |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Mar 2008
Posts: 778
Rep Power: 21 ![]() |
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.
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |