hey guys
currently the text helper autoLinkUrls() creates links with the same
name as href:

text http://www.url.de more text
=>
text < href="http://www.url.de";>http://www.url.de</a> more text

this gets really ugly if the urls are 100 to 200 chars long.
how could i extend that method in order to achieve something like
that:

a) strip protocol (http://) from name (unnecessary - google does it in
chrome as well) if "stripProtocol"=>true:
text < href="http://www.url.de";>www.url.de</a> more text

b) shorten url if param "maxLength"=>x is passed (e.g. 15):
text < href="http://www.url.de/somehundredschars";>www.url.de/some...</
a> more text

this way it is way more readable and doesnt destroy the layout or take
unncessary space.
the current method seems to call $Html->link() inside
"create_function". I dont know if that can be overridden...

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to