Quick Nav:  Online Store   |   Login | Register
PrevPrev--NextNext
Need a Rule to add the title of a link to the end of the URL
Last Post 06 Jul 2009 01:34 PM by usheen. 1 Replies.
Please Register to participate.
Sort: Print topic: Printer Friendly
AuthorMessages
usheen
New Member
Posts:18


Send PM:Send Private Message

--
03 Jul 2009 10:58 AM
I need a Rule to add the title of links to the end of the URLs. Here is a sample code behind the links:


< a title="Property Station" href="/property/agenttype/viewsearch/propertyagentid/7" >Agents Properties< /a>


I am trying to change it so that it appears as follows:


< a title="Property Station" href="/property/agent/7/Property-Station" >Agents Properties< /a>


I am able to change the url but adding the title to the end of the URL has me stuck.


Anybody able to help with this one ?
usheen
New Member
Posts:18


Send PM:Send Private Message

--
06 Jul 2009 01:34 PM
Got it working, was missing a hyphen !

Here's the rule for anybody using Ventrian Property Agent.

<searchFor><![CDATA[href="/property/agent/(\w+)" title="((\w+)\W(\w+)?\W?(\w+)?\W?(\w+)?\W?(\w+)?\W?(\w+)?\W?(\w+)?\W?)"]]></searchFor>
<replaceWith><![CDATA[href="http://[PB:Request.Url.Host]/property/agent/$3-$4-$5-$6-$7-$8-$9/$1" title="$2"]]></replaceWith>
Please Register to participate.

Active Forums 4.1
     
      
Powered by: Snapsis Software