Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-08-31 19:01:27

imischa
Member
From: Netherlands
Registered: 2010-07-06
Posts: 14

Breadcrumbs Article title not showing

Hi there,

I’m using Textpattern’s breadcrumbs tag but the article title is not showing up. I haven’t got a clue why, any requirements in pages or forms?

Here’s my breadcrumbs tag:

<txp:breadcrumb label="Home" sep="&raquo;" title="y" link="1" linkclass="breadcrumb" wraptag="p" />

Any help would be great!

Thanks,

Offline

#2 2010-08-31 19:07:47

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Breadcrumbs Article title not showing

Hi Mischa, can you post a tag trace of the page in question?

Offline

#3 2010-08-31 19:36:32

imischa
Member
From: Netherlands
Registered: 2010-07-06
Posts: 14

Re: Breadcrumbs Article title not showing

Hi Els,

I’m not sure you want the whole page but here goes, and please be gentle it’s my first TXP website ;)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<meta name="author" content="Mischa van der Spek" />
<meta name="copyright" content="&copy; 2010 Mischa van der Spek" />
<meta name="robots" content="index, follow" />
<title>Spiritual Conception – abstract painting | Abstract paintings gallery | Mischa van der Spek</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" media="screen" title="Default" href="/css/styles-1colomn-fixed.css" />
<link rel="stylesheet" href="/css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript" src="/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="/js/lightbox.js"></script>
</head>
<body>
<div class="container">
<div id="header_modernekunstschilder">
            <!-- 
            <div id="header_links_mvdspek">
                <ul class="header_links">
                    <li><a href="#">Home</a></li>
                </ul>  
            </div>
            -->
                <div id="header_logo_mvdspek">
                    <blockquote>
                        <h3 class="logo_mvdspek"><a href="http://www.mischavanderspek.com">Modern Paintings</a></h3>
                    </blockquote>
                </div>
<div id="header_menu_mvdspek">
   <ul class="header_links_menu">
       <li><a href="/">Home</a></li>
       <li><a href="/abstract-paintings-gallery">Gallery</a></li>
       <li><a href="/commissions">Commissions</a></li>
      <!-- <li><a href="/exibitions">Exibitions</a></li>
       <li><a href="/links">Links</a></li>-->
       <li><a href="/contact">Contact</a></li>
   </ul> 
</div>   
</div>
<div class="container-background">
<div class="content-container">
<p><a href="http://www.mischavanderspek.com/" class="breadcrumb">Home</a>&raquo;<a href="http://www.mischavanderspek.com/abstract-paintings-gallery/" class="breadcrumb">Abstract paintings gallery</a></p>
    <div class="content"><h1 class="entry-title">Spiritual Conception – abstract painting</h1>
<div class="entry-content">
<div><a href="/abstract-paintings/spiritual-conception-M-abstract-painting-by-mischa-van-der-spek.png" class="painting-small" rel="lightbox" title="abstract painting – Spiritual Conception"><img src="/abstract-paintings/spiritual-conception-S-abstract-painting-by-mischa-van-der-spek.png" width="600" height="480" alt=""></a></div>
	<p><div class="painting-description-wide">Most of my inspiration comes from nature and my step into abstract art is a conception from my mind, spiritual combined with nature, hence the name Spiritual Conception.</p>
	<p><strong>Abstract Painting Specificaties:</strong>
	<table class="paintingspecs">
		<tr>
			<td>Width</td>
			<td>39,4 in</td>
			<td>100 cm</td>
		</tr>
		<tr>
			<td>Height</td>
			<td>31,5 in</td>
			<td>80 cm</td>
		</tr>
		<tr>
			<td>Depth</td>
			<td>0,8 in</td>
			<td>2 cm</td>
		</tr>
		<tr>
			<td>Paint</td>
			<td>Acryl</td>
		</tr>
		<tr>
			<td>Canvas</td>
			<td>Silk</td>
		</tr>
	</table></p>
	<p></div></p>
</div>
<!-- end .content --></div>
<!-- end .content-container --></div>
<!-- end .container-background --></div>
<div class="clearfloat"></div>
<div id="footer_mvdspek">
       <div class="footer_addon"></div>
            <div id="twitter">
                <a href="http://twitter.com/mischavdspek"><img src="/images/layout/twitter-follow-me.png" alt="Follow Mischa van der Spek on Twitter" /></a>
            </div>
            <div id="facebook">
                <a href="http://www.facebook.com/people/Mischa-van-der-Spek/100000273774425"><img src="/images/layout/facebook-follow-me.png" alt="Visit Mischa van der Spek on Facebook" /></a>
            </div>
            <div id="footer_copyright">&copy; 2010 Mischa van der Spek</div>
                <div id="footer_links_menu">
                    <ul class="footer_links">
                        <!--<li><a href="#">sitemap</a></li>-->
                    </ul>  
            </div>
    <!-- end .footer --></div>
  <!-- end .container --></div>
</body>
</html>
<!-- Runtime:    0.0208 -->
<!-- Query time: 0.011936 -->
<!-- Queries: 20 -->
<!-- Memory: 3547Kb, <txp:body /> -->
<!-- txp tag trace: 
[SQL (0.000313997268677): select name, data from txp_lang where lang='en-us' AND ( event='public' OR event='common')]
[SQL (0.000158071517944): select name, code, version from txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0.00218200683594): select ID,Section from textpattern where url_title like 'spiritual-conception-abstract-painting' AND Section='abstract-paintings-gallery' and Status >= 4 limit 1]
[SQL (0.00015115737915): select page, css from txp_section where name = 'abstract-paintings-gallery' limit 1]
[SQL (0.00220417976379): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where ID=5 and Status in (4,5)]
[article 5]
[SQL (0.000523090362549): select ID, Title, url_title, unix_timestamp(Posted) as uposted
			from textpattern where Posted > '2010-08-23 15:00:00' and Section = 'abstract-paintings-gallery' and Status=4 and Posted < now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') order by Posted asc limit 1]
[SQL (0.000857830047607): select ID, Title, url_title, unix_timestamp(Posted) as uposted
			from textpattern where Posted < '2010-08-23 15:00:00' and Section = 'abstract-paintings-gallery' and Status=4 and Posted < now() and (now() <= Expires or Expires = '0000-00-00 00:00:00') order by Posted desc limit 1]
[SQL (0.00145196914673): select host from txp_log where ip='93.125.166.129' limit 1]
[SQL (0.000844955444336): insert into txp_log set `time`=now(),page='/abstract-paintings-gallery/spiritual-conception-abstract-painting',ip='93.125.166.129',host='93-125-166-129.dsl.alice.nl',refer='',status='200',method='GET']
[SQL (0.000149965286255): select user_html from txp_page where name='MS2010_gallery2']
[Page: MS2010_gallery2]
<txp:output_form form="MS2010_meta" />
	[SQL (0.000163793563843): select Form from txp_form where name='MS2010_meta']
	[Form: MS2010_meta]
	<txp:output_form form="MS2010_keywdesc" />
		[SQL (0.000151872634888): select Form from txp_form where name='MS2010_keywdesc']
		[Form: MS2010_keywdesc]
		<txp:if_individual_article>
			[<txp:if_individual_article>: true]
			<txp:if_custom_field>
				[<txp:if_custom_field>: false]
			</txp:if_custom_field>
			<txp:if_custom_field>
				[<txp:if_custom_field>: false]
			</txp:if_custom_field>
		</txp:if_individual_article>
	<txp:output_form form="MS2010_title" />
		[SQL (0.000154972076416): select Form from txp_form where name='MS2010_title']
		[Form: MS2010_title]
		<txp:if_status status="404">
			[<txp:if_status status="404">: false]
			<txp:if_search>
				[<txp:if_search>: false]
			</txp:if_search>
			<txp:if_individual_article>
				[<txp:if_individual_article>: true]
				<txp:title />
			</txp:if_individual_article>
			<txp:if_category>
				[<txp:if_category>: false]
			</txp:if_category>
			<txp:if_section name="">
				[<txp:if_section name="">: false]
				<txp:section title="1" link="0" />
					[SQL (0.000164031982422): select title from txp_section where name='abstract-paintings-gallery']
			</txp:if_section>
		</txp:if_status>
		<txp:site_name />
<txp:output_form form="MS2010_header" />
	[SQL (0.000152826309204): select Form from txp_form where name='MS2010_header']
	[Form: MS2010_header]
	<txp:output_form form="MS2010_menu" />
		[SQL (0.000148057937622): select Form from txp_form where name='MS2010_menu']
		[Form: MS2010_menu]
<txp:breadcrumb label="Home" sep="&raquo;" title="y" link="1" linkclass="breadcrumb" wraptag="p" />
	[SQL (0.000156879425049): select lft as l, rgt as r from txp_category where name='' and type = 'article']
<txp:if_article_list>
	[<txp:if_article_list>: false]
</txp:if_article_list>
<txp:article form="MS2010_article2" limit="999" />
	[SQL (0.000157117843628): select Form from txp_form where name='MS2010_article2']
	[Form: MS2010_article2]
	<txp:if_individual_article>
		[<txp:if_individual_article>: true]
		<txp:title />
	</txp:if_individual_article>
	<txp:if_individual_article>
		[<txp:if_individual_article>: true]
		<txp:body />
	</txp:if_individual_article>
<txp:output_form form="MS2010_footer" />
	[SQL (0.000158071517944): select Form from txp_form where name='MS2010_footer']
	[Form: MS2010_footer]
[ ~~~ secondpass ~~~ ]
 -->

I removed all the emty rows to make the ‘bc.’ block work!

Thank you for checking,

Offline

#4 2010-08-31 22:14:21

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Breadcrumbs Article title not showing

<txp:breadcrumb label="Home" sep="&raquo;" title="y" link="1" linkclass="breadcrumb" wraptag="p" />

It’s quite possible that title="y" should be title="1" (see Textbook). The value y was deprecated many versions ago, and probably stopped working at some point.

I removed all the emty rows to make the ‘bc.’ block work!

For extended code blocks (with blank lines) you can use bc.. . If you do, you’ll need to start the next paragraph with p. to escape it. (How do I post tags and code on the forum?)

BTW Mischa, you are linking to your site in your profile and in your signature, but the site requires authentication… ;)

Last edited by els (2010-08-31 22:20:37)

Offline

#5 2010-09-01 00:11:23

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Breadcrumbs Article title not showing

As far as I understand Mischa, he expects to see the article’s title.

The title attribute of breadcrumb lets you choose between the section’s title or its name, it’s not intended to display information about the article. Add a txp:title tag after the breadcrumb in order to display the article’s title. Wrap it in if_individual_article tags in order to let it (and the optional separator) disappear if displayed on an article list page.

Last edited by uli (2010-09-01 00:12:23)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#6 2010-09-01 07:40:41

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Breadcrumbs Article title not showing

uli wrote:

The title attribute of breadcrumb lets you choose between the section’s title or its name,

Now that you mention it, that seems more logical. Thanks Uli :) To be honest, I never use the breadcrumb tag myself, always build the breadcrumb trail with other tags and conditionals.
Apologies Mischa, for the misinformation!

Offline

#7 2010-09-01 18:26:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Breadcrumbs Article title not showing

Yes I can confirm that the <txp:breadcrumb /> tag will not display the article title. You need to add that with something like:-

<p><txp:breadcrumb label="Home" sep="&raquo;" title="1" link="1" linkclass="breadcrumb" wraptag="" /><txp:if_individual_article> &raquo; <txp:title /></txp:if_individual_article></p>

Note that I have also “blanked” the wraptag and wrapped the whole thing with “p” tags so that the article title sits inside them as well. You must include the <txp:if_individual_article></txp:if_individual_article> tags otherwise Txp will throw an error at you in “article_list” view.

Last edited by thebombsite (2010-09-01 18:27:54)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#8 2010-09-01 18:58:51

imischa
Member
From: Netherlands
Registered: 2010-07-06
Posts: 14

Re: Breadcrumbs Article title not showing

It’s quite possible that title="y" should be title="1" (see Textbook). The value y was deprecated many versions ago, and probably stopped working at some point.

I tested y and still seems to work fine actually but thank you for the comment! I changed it to ‘1’

For extended code blocks (with blank lines) you can use bc.. . If you do, you’ll need to start the next paragraph with p. to escape it. (How do I post tags and code on the forum?)

Very handy, thank you Els!

BTW Mischa, you are linking to your site in your profile and in your signature, but the site requires authentication… ;)

Still a WIP. I’ll post it in the ‘show-off’ section in this forum when I’m ‘done’ ;)

Last edited by imischa (2010-09-01 19:02:17)

Offline

#9 2010-09-01 19:01:48

imischa
Member
From: Netherlands
Registered: 2010-07-06
Posts: 14

Re: Breadcrumbs Article title not showing

The title attribute of breadcrumb lets you choose between the section’s title or its name, it’s not intended to display information about the article. Add a txp:title tag after the breadcrumb in order to display the article’s title. Wrap it in if_individual_article tags in order to let it (and the optional separator) disappear if displayed on an article list page.

Tried, tested and it works! Thank you very much Uli!

Offline

#10 2010-09-01 19:03:20

imischa
Member
From: Netherlands
Registered: 2010-07-06
Posts: 14

Re: Breadcrumbs Article title not showing

Now that you mention it, that seems more logical. Thanks Uli :) To be honest, I never use the breadcrumb tag myself, always build the breadcrumb trail with other tags and conditionals.
Apologies Mischa, for the misinformation!

Not a problem, any info is appreciated! ;)

Offline

#11 2010-09-01 19:09:26

imischa
Member
From: Netherlands
Registered: 2010-07-06
Posts: 14

Re: Breadcrumbs Article title not showing

Yes I can confirm that the <txp:breadcrumb /> tag will not display the article title. You need to add that with something like:-

Good to known know I was on the right path, thanks!

Note that I have also “blanked” the wraptag and wrapped the whole thing with “p” tags so that the article title sits inside them as well. You must include the <txp:if_individual_article></txp:if_individual_article> tags otherwise Txp will throw an error at you in “article_list” view.

Excellent! I almost had the same TXP-coding, those small details really finish it, thank you very much Stuart!

Last edited by imischa (2010-09-01 20:03:02)

Offline

Board footer

Powered by FluxBB