Results 1 to 3 of 3
  1. #1
    New Pligger clifico's Avatar
    Joined
    Jan 2010
    Posts
    5

    Include story title into breadcrumbs

    Hi

    I'm new to pligg (v 1.0.3) and trying to customise a template. The story page doesn't seem to have any breadcrumbs, I'd like it to show “Published News >> Category Name >> Story Title”. Can anyone help?

    I realise a problem might arise with very long titles so it would be good to be able to limit the title to x amount of characters.

    I'd be interested to know if there is there any other reason for not including it on the story page? It looks odd to navigate to a page that has no breadcrumbs.

    Thanks
    C

  2. #2
    New Pligger clifico's Avatar
    Joined
    Jan 2010
    Posts
    5
    OK made some progress. I've added a couple of ifelse options which puts the story in the title. However category is dropped from the path. Eg if I'm looking at a story the breadcrumb path should be “Published News >> Category Name >> Story title” but instead I just get “Published News >> Story title”.

    Can someone who understands php and this system please look over the code and point out how to fix this.

    Also is there a setting for make the breadcrumb items link to their respective pages? {$navbar_where.link2} indicates there is but I can't find it.

    Thanks

    Code:
    	<!-- START BREADCRUMBS -->
    
    			<div class="breadcrumbs">
    					<a href="{$my_base_url}{$URL_base}"><img border="0" alt="Back to the homepage" src="/images/home.png" /></a>
    
    					{if $pagename eq "submit_groups"}<h4>{#PLIGG_Visual_Submit_A_New_Group#}</h1>{/if} 
    
    					{if $pagename eq "groups"}<h4>{#PLIGG_Visual_Groups#}</h4>{/if}
    
    					{if $pagename eq "group_story" }<h4>{$group_name}</h4>{/if}
    
    					{if $pagename eq "login"}<h4>{#PLIGG_Visual_Login#}</h4>{/if}
    
    					{if $pagename eq "register"}<h4>{#PLIGG_Visual_Register#}</h4>{/if}
    
    					{if $pagename eq "editlink"}<h4>{#PLIGG_Visual_EditStory_Header#}: {$submit_url_title}</h4>{/if}
    
    					{if $pagename eq "rssfeeds"}<h4>{#PLIGG_Visual_RSS_Feeds#}</h4>{/if}
    
    					{if $pagename eq "topusers"}<h4>{#PLIGG_Visual_TopUsers_Statistics#}</h4>{/if}
    
    					{if $pagename eq "cloud"}<h4>{#PLIGG_Visual_Tags_Tags#}</h4>{/if}
    
    					{if $pagename eq "live" || $pagename eq "live_unpublished" || $pagename eq "live_published" || $pagename eq "live_comments"}<h4>{#PLIGG_Visual_Live#}</h4>{/if} 
    
    					{if $pagename eq "advancedsearch"}<h1>{#PLIGG_Visual_Search_Advanced#}</h4>{/if}
    
    					{if $pagename eq "profile"}<h4>{#PLIGG_Visual_Profile_ModifyProfile#}</h4>{/if}
    
    					{if $pagename eq "user"}<h4><span style="text-transform:capitalize">{$page_header}</span> <a href="{$user_rss, $view_href}" target="_blank"><img src="{$my_pligg_base}/templates/{$the_template}/images/rss.gif" style="margin-left:6px;border:0;"></a></h4>{/if}
    					{if $pagename eq "published" || $pagename eq "index"}<h4><a href="{$my_base_url}{$URL_base}">{#PLIGG_Visual_Published_News#} » Good Governance </a>
    
    					<!-- First change start -->
    					{elseif $pagename eq "published" || $pagename eq "story"}<h4><a href="#">{#PLIGG_Visual_Published_News#}</a>
    					<!-- First change end -->
    
    					{/if}					
    					{if $pagename eq "upcoming"}<h4><a href="{$URL_upcoming}">{#PLIGG_Visual_Pligg_Queued#}</a>{/if}
    
    					{if isset($templatelite.get.search)}<h4>{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.search|sanitize:2|stripslashes}{/if}
    
    					{if isset($templatelite.get.q)}<h4>{#PLIGG_Visual_Search_SearchResults#} {$templatelite.get.q|sanitize:2|stripslashes}{/if} 
    
    					
    					{if $pagename eq "index" || $pagename eq "published" || $pagename eq "upcoming" || isset($templatelite.get.search) || isset($templatelite.get.q)}
    					
    					{if isset($navbar_where.link2) && $navbar_where.link2 neq ""} » <a href="{$navbar_where.link2}">{$navbar_where.text2}</a>{elseif isset($navbar_where.text2) && $navbar_where.text2 neq ""} » {$navbar_where.text2}{/if}
    
    						{if isset($navbar_where.link3) && $navbar_where.link3 neq ""} » <a href="{$navbar_where.link3}">{$navbar_where.text3}</a>{elseif isset($navbar_where.text3) && $navbar_where.text3 neq ""} » {$navbar_where.text3}{/if}
    
    						{if isset($navbar_where.link4) && $navbar_where.link4 neq ""} » <a href="{$navbar_where.link4}">{$navbar_where.text4}</a>{elseif isset($navbar_where.text4) && $navbar_where.text4 neq ""} » {$navbar_where.text4}{/if}
    
    						</h4>
    					
    					<!-- Second change start -->
    					{elseif $pagename eq "story" || $pagename eq "published" || $pagename eq "upcoming" || isset($templatelite.get.search) || isset($templatelite.get.q)}
    					<!-- Second change end -->
    								
    
    						{if isset($navbar_where.link2) && $navbar_where.link2 neq ""} »  Good Governance  » miscellaneous » <a href="{$navbar_where.link2}">{$navbar_where.text2}</a>{elseif isset($navbar_where.text2) && $navbar_where.text2 neq ""} » {$navbar_where.text2}{/if}
    
    						{if isset($navbar_where.link3) && $navbar_where.link3 neq ""} » <a href="{$navbar_where.link3}">{$navbar_where.text3}</a>{elseif isset($navbar_where.text3) && $navbar_where.text3 neq ""} » {$navbar_where.text3}{/if}
    
    						{if isset($navbar_where.link4) && $navbar_where.link4 neq ""} » <a href="{$navbar_where.link4}">{$navbar_where.text4}</a>{elseif isset($navbar_where.text4) && $navbar_where.text4 neq ""} » {$navbar_where.text4}{/if}
    
    						</h4>
    
    					{/if}
    
    			
    			
    
    				</div><!--/.breadcrumbs-->
    
    		<!-- END BREADCRUMBS -->

  3. #3
    Casual Pligger lisa_qld's Avatar
    Joined
    Oct 2009
    Posts
    39
    any updates on this ??

Similar Threads

  1. rss import -include title words as tags- charset problem
    By digitizedc in forum Questions & Comments
    Replies: 0
    Last Post: 05-20-2011, 09:01 AM
  2. How to make the meta tag of the story page the story title
    By oobie11 in forum Questions & Comments
    Replies: 0
    Last Post: 02-20-2010, 12:32 AM
  3. How to direct story title in summary page to the original story?
    By chris79 in forum Questions & Comments
    Replies: 4
    Last Post: 02-03-2008, 04:28 PM
  4. Editing the title (not story titles, meta title)
    By SportsGuy in forum Questions & Comments
    Replies: 4
    Last Post: 08-07-2007, 07:17 AM
  5. story title as link on Story single page
    By pogung177 in forum Questions & Comments
    Replies: 3
    Last Post: 01-26-2007, 08:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting