Support Forums

custom cats module question

This is a discussion on custom cats module question within the Templates, HTML, CSS, and Design Help forums, part of the General category; I have uploaded and assigned the custom cats module to certain categories, all works fine. My question is is there ...


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

Reply
 
Thread Tools Display Modes
Old 03-08-2010, 03:43 AM   #1
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default custom cats module question

I have uploaded and assigned the custom cats module to certain categories, all works fine.
My question is is there any way of creating a seperate <title> tag for this new-showlings.tpl page ?

I have tried adding the following

{elseif $body=="/ httpdocs / modules / customcats / templates / cattemplates / new-showlistings.tpl"
<title>New ### Second hand###</title>

But that does not seem to work, just wodered whether anybody had any ideas ?

Many thanks

Jason
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 03-08-2010, 04:42 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,354
Rep Power: 85
seymourjames is a jewel in the rough
Default

Have you tried this. I don't see why it would not work but have not tried it.

$body=="new-showlistings.tpl"
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 03-08-2010, 06:14 AM   #3
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

HI David,

Yes I tried that first and it never worked, because it is a module I assumed I had to follow the entire directory path. It seems very weird that it does not work Mmmm
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 03-08-2010, 09:34 AM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I would try some of these:
$body == templates/cattemplates/new-showlistings.tpl
$body == cattemplates/new-showlistings.tpl
$body == new-showlistings.tpl
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 03-10-2010, 12:31 AM   #5
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

I have tried all 3 of them eric, still no joy
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 03-10-2010, 11:41 AM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Do this...

Add {debug} to your layout.tpl file and then it should display a popup once you load a page.

In the popup window it should say the exact path to the body template.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 03-10-2010, 06:13 PM   #7
Customer
 
Join Date: Jun 2009
Posts: 127
Rep Power: 12
pipelin is on a distinguished road
Default

If searchresult.php TRY this:

PHP Code:
   $class_tpl->assign('file''searchresults.php');
    if(
$settings['sTemplate']==1)  
       {
      switch (isset(
$_GET['type'])&& $_GET['type'] == ''
      {
      case 
3//category
        
$class_tpl->assign('body',FILESYSTEM_PATH.'modules/customcats/templates/cattemplates/template1.tpl'); 
        break;    
      
      case 
5:  //category
        
$class_tpl->assign('body',FILESYSTEM_PATH.'modules/customcats/templates/cattemplates/template2.tpl');  
        break;    
      
           default:
         
$class_tpl->assign('body','showlistings.tpl');
         break;   
      }
       
$class_tpl->assign('body','showlistings.tpl'); 
      } 
pipelin is offline   Reply With Quote
Old 03-11-2010, 11:05 PM   #8
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

As suggested by eric I put the debug in the page to pull out the title and I got this result:

"/var/www/vhosts/diy-classifieds.co.uk..." for the $body, so now im stumpted I dont have a clue what this means, does anybody elese know what it means ?

(by the way pipelin thanks very much for trying to help me, but that did not work either )

Thanks for any help

Jason
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 03-12-2010, 09:33 AM   #9
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Try the full path:
{if $body == '/var/www/vhosts/diy-classifieds.co.uk/templates/cattemplates/new-showlistings.tpl'}
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 03-12-2010, 10:17 AM   #10
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

Exellent got it sorted as you said eric I needed to use the FULL link which turned out to be (if anyones interested), thanks eric once again.

{elseif $body == '/var/www/vhosts/mywebsite.com/httpdocs/modules/customcats/templates/cattemplates/air-tools.tpl'}


Just wondering. I have set up about 30 different showlistings templates using erics mod, now I have found the source to adding seperate title tags to each of them,

If I put all of them in the layout.tpl head section giving each one different titles, would it have any adverse effect on the website ? ranking, page loading or anything else ?

I would use something like
{if $body == '/var/www/vhosts/mywebsite.com/httpdocs/modules/customcats/templates/cattemplates/air-tools.tpl'}
<title> ####</title>
{elseif $body == '/var/www/vhosts/mywebsite.com/httpdocs/modules/customcats/templates/cattemplates/air-tools.tpl'}
<title ### </title>

and so on ....
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
V4.1.x Custom category module editing ok_dir Modules / Plugins / Modifications 4 12-29-2009 12:24 PM
Custom payment module isnt working. damiun Mike-N-Tosh 0 09-29-2009 04:32 PM
Search with Custom Cats rockabilly Technical Support 5 07-02-2009 08:10 AM
Module - Custom Category Templates Eric Barnes Modules / Plugins / Modifications 19 11-07-2008 05:14 PM
SEO Module for ver 4.0 question cwp Technical Support 3 02-28-2008 03:06 PM


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


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