XML Sitemaps Generator

Author Topic: Do not parse extensions  (Read 18180 times)

steve15

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
Do not parse extensions
« on: May 17, 2007, 03:57:31 PM »
This is a nice feature. I have some pdf that I just want to show the file name. Is there a way to just show the file name with out the path? I can't show people the full path. I know you don't allow reverse engineering but I just need to make a small change and add the functionality of basename($path, ".pdf"); so [external links are visible to admins only] shows up as somefile.pdf in the html sitemap

Help?
 

steve15

  • Registered Customer
  • Approved member
  • *
  • Posts: 3
Re: Do not parse extensions
« Reply #1 on: May 17, 2007, 06:06:33 PM »
Just to clarify this a bit:

In the HTML sitemap, because pdf's are listed in my configuration for 'Do Not Parse Extensions', the full path is showing up in the html sitemap:

/downloads 10 files
[external links are visible to admins only]
[external links are visible to admins only]
[external links are visible to admins only]
[external links are visible to admins only]

How do I do this:

/downloads 10 files
download1.pdf
download2.pdf
download3.pdf
download4.pdf

I have tried editing the tpl file to add the functionality bu because of the way is is calling the functions it will not work. The template is calling the variable like this:

<TVAR title>

What I essentially need is:

basename(<TVAR title>); 

or

<TVAR basename(title)>

But both of those methods would be very sloppy and probably not work. I need to edit the TVAR function and add a new variable like 'basetitle'. So I could add:

<TVAR basetitle>

This would be an easy change normally but you don't want any reverse (base64_decode) engineering. Unfortunately, The full path is very messy looking and the script will not work unless this small change can be made. Please let me know what to do.

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Do not parse extensions
« Reply #2 on: May 19, 2007, 12:28:33 AM »
Hello,

please install Sitemap Generator 2.5.3 - it should work as you described.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2