Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-23 14:53:26

kelper
Member
Registered: 2005-05-27
Posts: 28

A money symbol in article name doesn't work right.

Each time I place a dollar sign in the aritcle name, most of the numbers after it disapear. Why is this so?

HP Photosmart R507 Digital Camera for $120 @ CompUSA – DealOverflow.com

becomes

HP Photosmart R507 Digital Camera for 0 @ CompUSA – DealOverflow.com

Offline

#2 2005-10-23 16:42:17

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: A money symbol in article name doesn't work right.

It’s strange. I don’t have the same problem neither with current official version 4.0.1 (rev.888) nor with latest SVN version…

I tried with your title and it is rendered “HP Photosmart R507 Digital Camera for $120 @ CompUSA – DealOverflow.com” everywhere…


Nico

Offline

#3 2005-10-23 17:30:55

kelper
Member
Registered: 2005-05-27
Posts: 28

Re: A money symbol in article name doesn't work right.

I just put up another article with the name:
HP Photosmart R507 Digital Camera for $120 CompUSA and it becomes: HP Photosmart R507 Digital Camera for 0 CompUSA – DealOverflow.com

This only happens in the title, it displays fine on the page.

You can check out the titles at the following locations:
http://www.dealoverflow.com/271/hp-photosmart-r507-digital-camera-for-120-compusa
http://www.dealoverflow.com/272/antec-tp-ii-430-truepower-430w-power-supply-for-40-ar-compusa
It seems like after the dollar sign it takes off the next two letters after it.

Offline

#4 2005-10-23 20:43:13

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

Re: A money symbol in article name doesn't work right.

I think you are using ob1_title. I found out recently that with all the new txp tags and some conditionals you can do exactly what this plugin does, so I stopped using ob1_title.

Offline

#5 2005-10-23 23:27:57

kelper
Member
Registered: 2005-05-27
Posts: 28

Re: A money symbol in article name doesn't work right.

Yup, I was using that plugin, how would I only display the article name in the title?
Right now it says:
Homepage title: Article Name

Offline

#6 2005-10-24 14:02:30

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

Re: A money symbol in article name doesn't work right.

<txp:page_title /> displays as well the site name as, if on an individual article page, the article title.

So you could try something like this:
<code>
<txp:if_individual_article>
<txp:article form=“article-title” />
<txp:else />
<txp:page_title />
</txp:if_individual_article>
</code>
The form ‘article-title’:
<code>
<txp:title />
</code>
You can also display sections (<txp:section title="y" />) and categories (likewise) using, if necessary, some conditional tags.

Last edited by doggiez (2005-10-24 14:04:08)

Offline

#7 2005-10-24 20:33:40

kelper
Member
Registered: 2005-05-27
Posts: 28

Re: A money symbol in article name doesn't work right.

Thank you, I’ll try this when my host gets their MySQL working.

Offline

#8 2005-10-24 21:09:00

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

Re: A money symbol in article name doesn't work right.

About the title attribute: mind this.

Offline

#9 2005-10-24 22:14:25

kelper
Member
Registered: 2005-05-27
Posts: 28

Re: A money symbol in article name doesn't work right.

I’m using the following:
<code>
<title>
<txp:if_individual_article>
<txp:article form=“articletitle” />
<txp:else />
<txp:page_title />
</txp:if_individual_article>
</title>
</code>

And the articletitle form is the following:
<code>
<txp:title /> – DealOverflow.com
</code>

But, it seems to display the articletitle form plus it displays the comments_display form. That’s weird because I don’t have that specified anywhere near my title. Any reason why it would say Article Title – DealOverflow.com then all this code after it?

Here’s just a sample:
<code>
<title>
Antec TP-II 430 TruePower 430W Power Supply for $40 AR @ CompUSA – DealOverflow.com <div class=“comments”> <h1>Comments »</h1>
<form method=“post” action=”#cpreview” id=“txpCommentInputForm”> <table cellpadding=“4” cellspacing=“0” border=“0”>
<tr>
</code>

Why would it display the comments_display form?

Last edited by kelper (2005-10-24 22:15:05)

Offline

#10 2005-10-25 00:08:28

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: A money symbol in article name doesn't work right.

FAQ

If Automatically append comments to articles? is turned on, this form is used automatically each time an article is displayed.


Alex

Offline

Board footer

Powered by FluxBB