Add breadcrumb to home page - eSyndiCat User Forums
eSyndiCat User Forums esyndicat directory software esyndicat support

Go Back   eSyndiCat User Forums > eSyndiCat Directory Software [FREE] > Common Questions

Common Questions Latest releases, patches, bugfixes and changes in eSyndiCat Directory Software free version. Feel really frustrated after having spent several hours trying to figure out what went wrong with your directory? Wait no more! Click the link above and post your issues. Right here. Right now.

Reply
 
Thread Tools Display Modes
Old 05-19-2006   #1
DavidOne
 
Join Date: Feb 2006
Posts: 28
DavidOne has disabled reputation
Default Add breadcrumb to home page

Hi

I'd like the breadcrumb to appear on the home page (to prevent the 'jumping' when moving to interior pages). It should just contain '{header}'.

I tried '{if $category.id == 0}', but that (of course) shows it on 'search', 'new links', etc.

Any suggestions please?
DavidOne is offline   Reply With Quote
Old 05-22-2006   #2
Vasily B.
Administrator
 
Vasily B.'s Avatar
 
Join Date: Sep 2005
Posts: 9,267
Vasily B. is on a distinguished roadVasily B. is on a distinguished roadVasily B. is on a distinguished roadVasily B. is on a distinguished roadVasily B. is on a distinguished roadVasily B. is on a distinguished road
Default

Please try to use the following condition:
Code:
{if ($tab eq 'home') AND ($category.id eq '0')}
your code 
{/if}
In this case you code will be available on index page in root category only.
__________________
Subrion CMS - free open source php content management system
Business Directory Script - powerful php business directory software, Yellow Pages Script - the most advanced yellow pages php software
Vasily B. is offline   Reply With Quote
Old 05-22-2006   #3
DavidOne
 
Join Date: Feb 2006
Posts: 28
DavidOne has disabled reputation
Default

Perfect! Thank you, Simon.
DavidOne is offline   Reply With Quote
Old 08-24-2006   #4
neominds
 
Join Date: Feb 2006
Location: Mexico City
Posts: 53
neominds has disabled reputation
Default

Quote:
Originally Posted by Simon Gooffin
Please try to use the following condition:
Code:
{if ($tab eq 'home') AND ($category.id eq '0')}
your code 
{/if}
In this case you code will be available on index page in root category only.
I also put a breadcrumb on the home page, but what I did is the following:
I opened index.php and found the code:

/** breadcrumb formation **/
$breadcrumb = ($category['id'] > 0) ? $gDirLayout->print_breadcrumb($category['id']) : '';
$gDirSmarty->assign_by_ref('breadcrumb', $breadcrumb);

and I replaced it with:

/** breadcrumb formation **/
$breadcrumb = ($category['id'] > -1) ? $gDirLayout->print_breadcrumb($category['id']) : '';
$gDirSmarty->assign_by_ref('breadcrumb', $breadcrumb);

Like that the breadcrumb also apprears on the home page...


Richard
neominds is offline   Reply With Quote
Reply

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank home page corfuholidays Common Questions 2 05-29-2006 08:01 AM
Display news on home page only + sponsored on all DavidOne Common Questions 11 05-22-2006 04:46 AM
Registration link on the home page? Yevette McArthur Common Questions 7 01-01-1970 12:52 AM
Display Category Descriptions on Home Page Peter Leenders Modifications 5 01-01-1970 12:26 AM


All times are GMT. The time now is 04:21 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Testimonials | Articles | Support | Documentation | Privacy Policy | License | Affiliates | Contact Us | SEO Resources