Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-03-20 19:50:03

dotnetnoob
New Member
Registered: 2010-03-20
Posts: 2

fixing a broken link path in sitemap?

Hi All: I have “inherited” a site that uses TXP 4.0. I’ve never used this CMS before, and hope someone can help me with a small problem.

It appears that the original developer had originally created a sub-directory path for what became the final site in the web root.

When I view the current sitemap, most of the links are correct, except for a section called “Products”. In this section, all the links have “/new” in the path:

http://www.mysite.com/new/products/widgets/21/my-widget.html

whereas, if I follow the same link from the actual category link, it (correctly) appears as:

http://www.mysite.com/products/widgets/21/my-widget.html

So, the links are mapping properly everywhere but in the sitemap, and only for this category (other category links in the sitemap are correct).

Is there any way to correct this from within the admin area of TXP? Or is this something that would have to be updated in mySQL? Unfortunately, I don’t have access to the main website CP, just to TXP admin.

TIA for any advice!

Last edited by dotnetnoob (2010-03-20 19:50:22)

Offline

#2 2010-03-20 20:27:07

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

Re: fixing a broken link path in sitemap?

These links are probably hardcoded, because the links generated by Txp tags are automatically adapted when a site is moved. Can you locate the code that creates the sitemap? (On a page, in a form, in an article?) If so, can you post it here?

Offline

#3 2010-03-20 20:34:19

dotnetnoob
New Member
Registered: 2010-03-20
Posts: 2

Re: fixing a broken link path in sitemap?

Thanks for the quick reply…I noticed that there was a “sitemap” template page in the Admin section, but I didn’t realize that someone would have edited the paths directly there…but I took a closer look and there it was:

<xsl:template name=“product_menu_category”>

<li class=”[txp:url_title/] item-[txp:article_num/]”> <a class=“product” title=”[txp:title/]” href=”/new/products/[txp:url_title/]/index.html”>
<txp:title/></a> <xsl:call-template name=“product_menu_category_list”/> </li>

</xsl:template>

Thanks for cluing me in where to look!

Offline

Board footer

Powered by FluxBB