Webmastersite.net
Register Log In

Problems with the pagetitle
Problems with the rendering of the pagetitle

Comments on Problems with the pagetitle

Papillon
Beginner

Usergroup: Customer
Joined: Nov 25, 2003

Total Topics: 1
Total Comments: 4
Posted Nov 24, 2005 - 5:14 AM:

I'm in the middle of upgrading from an old version of wsnlinks to the new 3.3.1.

The pagetitle was defined:
{CATNAME}     {AREA} | Sometext


This worked fine until I began to code a different pagetitle for the first page.

      
<IF {TID} contains main.tpl>
Sometext
<OTHERWISE>
{PAGETITLE}
</IF>


This code works in the moment perfectly for giving the first page a different pagetitle.
But now I got in a categorie the strange effect that a page title with spaces is written with underscore. For example instead of "Cat with spaces" as "Cat_with_spaces". But only in the first category. If I visit the detailed page to a link in this category the page title is written correctly. (Sometimes even in subcategorys).

Any idea what causes this strange (at least strange for me) behaviour?

Some links for a live visit:
Starting page: http://test.united-arts.de
Category: http://test.united-arts.de/Computer_und_Technik
Subcategory http://test.united-arts.de/Computer_und_Technik/

And my second (somewhat related) question is what variable I can use inside a php-script in the template to get the category-name without underscores or parental directorys attached? Any idea?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 27, 2005 - 7:34 PM:

1. I can't reproduce your problem. At http://links.philosophyforums.com/ I've put this in the wrapper:
<title><IF {TID} contains main.tpl>Philosophy Forums Links Directory<OTHERWISE>{PAGETITLE}</IF></title>


2. {CATNAME}
Papillon
Beginner

Usergroup: Customer
Joined: Nov 25, 2003

Total Topics: 1
Total Comments: 4
Posted Nov 28, 2005 - 6:42 AM:

Paul wrote:
1. I can't reproduce your problem. At http://links.philosophyforums.com/ I've put this in the wrapper:
<title><IF templates/default/postreply.tpl contains main.tpl>Philosophy Forums Links Directory<OTHERWISE>Problems with the pagetitle - WSN Support</IF></title>



hmm...
Strange.
I've only made the settings as described above. And as you can see on my sites I have the problem. And I don't find this title very... nice..

Do you have any idea where this could come from?

Paul wrote:

2. {CATNAME}

With this I have the same problem... underscores instead of spaces.

Papillon
Beginner

Usergroup: Customer
Joined: Nov 25, 2003

Total Topics: 1
Total Comments: 4
Posted Nov 28, 2005 - 12:12 PM:

I really don't get it.

I use the variable {CATNAME} for the title (h2) of the category-display. Like in the default template.
There seems to be everything perfect.

As said above: in my construct the page-title was shown with underscores.
Now I've "fixed" this with a included php script which handle the complete pagetitle. I only give the script the content of {CATNAME} (and {TID for different pagetitles depending on the type of page).
Of course it is no problem in the php script to remove the underscores.
BUT:
If it is a multipage, and I visit the second page there is added a /2. In a subcategory I have the following: category/subcategory

For the pagetitle not that problem (well not what I want, but I think I could live with it...).
But I want another script display some books randomly selected from amazon by doing a search on the category name.

I mean, in the normal title (the one inside the h2-tags) everything is working fine. And I only updated te script to the new version. I never changed the underlying php scripts.
But it seems the {CATNAME} isn't necessarly {CATNAME}...

Do you have any suggestion? Any ideas for my problems?

That {CATNAME} delievers _nothing_ to my "amazon"-Script when there are some german special chars in the catname (but delivering the catname to my pagetitle-script) is another oddity.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 01, 2005 - 4:18 AM:

Try posting your full wrapper, maybe there's something else in there.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 01, 2005 - 6:43 PM:

View source says it delivers
[code]
<!-- div id="buch" -->
<!-- ?php
$catname = "Computer_und_Technik/";
include("amazon_kat.php");
? -->
<!-- /div -->
[code]
to your amazon... though that makes little sense, as <!-- ?php isn't a way to open a PHP area.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.