Log message #969091

# At Username Text
# Aug 14th 2009, 16:12 poLK (time to chat about ... again'
# Aug 14th 2009, 16:12 poLK markstory: probably time to chat about var $helpers = array('Html' => 'Canonical'); (class CanonicalHelper extends HtmlHelper, and then $html->meta('canonical'))
# Aug 14th 2009, 16:10 markstory but making a helper is a reasonable solution.
# Aug 14th 2009, 16:09 poLK +1
# Aug 14th 2009, 16:08 markstory well I think the article is fine as it, making a separate helper is a bit overkill, you can do it with HtmlHelper right now, just not as nice.
# Aug 14th 2009, 16:06 alkemann so get the patch in and tell the guy to rewrite the article as a tutorial? linking to the commit for people that cant wait
# Aug 14th 2009, 16:03 markstory right.
# Aug 14th 2009, 16:02 alkemann the words "just" and "to" makes a big difference in that sentence ;)
# Aug 14th 2009, 16:02 markstory which I've been doing as I find them.
# Aug 14th 2009, 16:02 markstory just have to document the options.
# Aug 14th 2009, 16:02 markstory nuh uh.
# Aug 14th 2009, 16:02 alkemann well yea, except this sort of api gets hidden in the Api
# Aug 14th 2009, 16:01 markstory yeah
# Aug 14th 2009, 16:00 poLK I would prefer extension of meta, it uses hardcoded array $types (rss/atom/icon/keywords/description) already
# Aug 14th 2009, 15:59 markstory but flexiblity is nice.
# Aug 14th 2009, 15:59 markstory me neither.
# Aug 14th 2009, 15:59 alkemann can think of a case where you would want to, but sure ;)
# Aug 14th 2009, 15:59 markstory $url can be used to override Router::url() or something.
# Aug 14th 2009, 15:58 markstory html->meta('canonical')
# Aug 14th 2009, 15:58 alkemann if u prefer
# Aug 14th 2009, 15:58 markstory or an extension of meta()
# Aug 14th 2009, 15:57 alkemann i dont see why it couldnt be a matter of echo $html->canon(); view and helper knows the current url and can ask router for the correct url
# Aug 14th 2009, 15:56 markstory alkemann: so some sort of method that makes canonical links for the current url>
# Aug 14th 2009, 15:55 alkemann because of /pages/home and /
# Aug 14th 2009, 15:55 alkemann i got this on my website's public layout : <link rel="canonical" href="http://illustrata.no<?php echo $html->url(); ?>">
# Aug 14th 2009, 15:54 alkemann if for no other reason than stop critics that read an article about duplciate content ;)
# Aug 14th 2009, 15:53 poLK markstory: yes, it produces (1.2) <link href="http://example.com" rel="canonical" />
# Aug 14th 2009, 15:53 alkemann since cakephp routes creates "problems" of duplicate content, I think it could be worth while to have a more direct support for it
# Aug 14th 2009, 15:52 markstory easiest enhancement ever.
# Aug 14th 2009, 15:52 markstory poLK: if that works my job is done then :)
# Aug 14th 2009, 15:52 alkemann markstory: google supports it. what else matters ;)
# Aug 14th 2009, 15:52 poLK (uses 'metalink' tag)
# Aug 14th 2009, 15:52 alkemann +t
# Aug 14th 2009, 15:52 poLK does exactly the same thing
# Aug 14th 2009, 15:52 alkemann poLK: yes. that was my though
# Aug 14th 2009, 15:52 poLK $html->meta(array('link' => 'http://example.com', 'rel' => 'canonical'))
# Aug 14th 2009, 15:51 ADmad he has given referencs for google and bing
# Aug 14th 2009, 15:51 markstory I thought I remembered support being spotty.
# Aug 14th 2009, 15:50 markstory is canonical even being supported?
# Aug 14th 2009, 15:50 markstory where is the patch?
# Aug 14th 2009, 15:49 ADmad this is what he says at the end "Hopefully the CakePHP development team will include canonical support in the next version of HtmlHelper under the $html->meta() method"