XML Sitemaps Generator

    Advanced search
Sitemap Generator Forum
November 19, 2008, 10:04:34 PM
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Sitemap software 2.9 released - Email notifications, html sitemap customizing and more
8253 Posts in 2037 Topics by Members
Latest Member: kubota.tyson
Pages: [1]
  Print  
Author Topic: Do not parse extensions  (Read 5233 times)
steve15
Registered Customer
Newbie
*
Posts: 3


View Profile
« 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?
 
Logged
steve15
Registered Customer
Newbie
*
Posts: 3


View Profile
« 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.
Logged
admin
Administrator
Hero Member
*****
Posts: 3465


View Profile
« Reply #2 on: May 19, 2007, 12:28:33 AM »

Hello,

please install Sitemap Generator 2.5.3 - it should work as you described.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006, Simple Machines LLC Valid XHTML 1.0! Valid CSS!