Hi Gino,
A naive approach might be to try something like
<link rel=‘next’ href=‘<webobject name=“Next”/>’ />
Next: WOActionUrl {
action = displayGroup.displayNextBatch;
}
But you will quickly discover that this doesn’t work. The url’s are dynamic and
the spider will simply load list pages till the cows come home or it hits some
preset limit. The urls won’t work later because, they are dynamic, and the
search engine will notice that too.
What you need is a way to represent your next/previous pages as a direct
action, which can actually be impossible in some instances.
Component actions are stateful and uses stateful urls. SEO wants stateless
static urls. You might be able to pull off a direct action url for a simple
list, but if you want to make a direct action to handle a list with nested
lists which themselves have nested lists, as WO will let you easily do with
components, you will very quickly run out of room for sort orderings, indexes,
qualifiers, and list IDs in your direct action url. URLs are capped at ~2000
chars in some browsers and search engines, so there just isn’t room to
represent all that state.
Anyway, you can do it, but only in a limited way, and it’s basically going to
be a one-off custom solution for your particular situation.
Personally, I wouldn’t bother unless absolutely certain it would have a
significant and measurable impact on page rank.
Ramsey
On Oct 24, 2014, at 10:45 AM, Gino Pacitti <[email protected]> wrote:
> Hi there…
>
> Could anyone help me understand how to extract the next batch and previous
> batch URLs from a WODisplayGroup instance?
>
> Any help or pointing in the right direction would be greatly appreciated.
>
> Gino
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]