Websafe_tag Character (the +)  can it be changed?
Posted: 09 December 2007 01:12 PM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  37
Joined  2006-12-07

When I use the standard websafe_tag variable I get a URL that looks like this word1+word2 - I really don’t want URLs with a + sign in them.

Is there an easy way to change it to a hyphen character - like EE lets you pick your separator for URLs?

I did a test and managed to generate urls like this word1-word2, but now I would need to make all the changes to make that URL parsed correctly by the various Tags - entries, cloud, etc.

Can you give me guidance on where to make those changes? Or is there some fundamental reason where the + sign was chosen and therefore should not be changed?

Profile
 
 
Posted: 12 December 2007 08:06 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

If you dig into mod.tag.php, you could probably find and replace the +‘s, however, I have no idea if changing it to anything else will cause any complications.

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 22 February 2008 07:39 PM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3717
Joined  2006-10-18

The websafe_separator parameter has been added to the new version of Tag!

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 25 February 2008 11:05 AM   [ Ignore ]   [ # 3 ]
Jr. Member
RankRank
Total Posts:  37
Joined  2006-12-07

Hi,
I had gone in and edited the code to replace the + (plus) with a - (dash) and it worked. But I’ll upgrade now..

Thanks.

Profile