Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Building page names with "." or nospace vs "_"

Quote Reply
Building page names with "." or nospace vs "_"
I'm wondering about changing the built page names & paths.

Right now, because Links uses an _ for a space internally, the page names are built as "Category_One"

However, when this gets several levels deep, it is somewhat ugly in my opinion.

So, would it be possible to either eliminate the "_" when building or change this to something less visible, like a "."?

So
Category_1/Subcategory_1/Page.html
became either
Category1/Subcategory1/Page.html
or
Category.1/Subcategory.1/Page.html

Ideally, I would like to just build the page name and path without any space or underscore, but of course, retain the space in the category name (category clean) as printed on those pages.



Quote Reply
Re: Building page names with "." or nospace vs "_" In reply to
That would require hacking nph-build.cgi a bit but it shouldn't be too hard to do.

Just use a little piece of code like:
Code:
$category_name =~ s/_//g;
Happy Coding,

--Drew
http://www.FindingHim.com