It's on my todo list to try out Kalles implementation.

On Wed, Nov 5, 2014 at 12:04 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Wed, 05 Nov 2014 01:40:53 -0200, George Christman <
> gchrist...@cardaddy.com> wrote:
>
>  Figured it out, but I still think it would be cool if there was some sort
>> of SEO annotation ;)
>>
>
> How could Tapestry figure out how what's the SEO value <-> your data
> structures mapping? ;)
>
You would need to specify the value. The real issue with tapestry is the
tml must be named to match the java class and java classes can't be created
with a dash, however search engines would prefer page names that are
written like "tapestry5-annotations"  rather than "tapestryannotations". To
my knowledge, you are currently your left with a couple work around
choices,

1. url rewrite (a lot of work)
2. context params (messy)

So since we can't rename our pages to be SEO friendly, I suggested creating
an annotation similar to hibernates table name and handle the rewrite
behind the scenes. For old pages like tapestry5annotations that may still
be indexed by search engines, just do a redirect to tapestry5-annotations
with a 301 when the annotation exist.


> Of course, it's possible to implement URL rewriting based on annotations,
> supposing the logic is describable in an annotation. tapestry-routing is
> one example. Howard would probably said that this annotation and its
> implemenation is something better implemented not inside tapestry-core,
> which already has a lot of stuff, but in a separate project and JAR.
>

I agree, it doesn't need to live within tapestry-core, but I do think it
should live within the tapestry project like captcha, uploader etc. This is
extremely important to a successful SEO campaign providing you are running
some type of e-commerce site etc, otherwise without good SEO you are
essentially dead in the water.

As I indicated before, I'm going to give Kalles project a whirl and report
back.

>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
George Christman
CEO
www.CarDaddy.com
P.O. Box 735
Johnstown, New York

Reply via email to