Hi Gino,

Glancing at ERXFlickrBatchNavigation it looks like it's using component 
actions. Which is probably not what you want in this case. You'll have to use 
direct actions to get static URLs.

This is from an old app that has a very simple blog feature:

    <wo:if condition = "$blogDG.hasMultipleBatches">
      <ul class = "pager">
        <wo:if condition = "~blogDG.currentBatchIndex gt 1">
          <li class = "previous">
            <wo:link actionClass = "blog" directActionName = "archive" 
?queryIndex = "~blogDG.currentBatchIndex - 1" class = 
"button"><wo:ELLocalizedString value = "BlogPage.NewerPosts" /></wo:link>
          </li>
        </wo:if>
        <wo:else>
          <li class = "previous disabled">
            <wo:link actionClass = "blog" directActionName = "archive" 
?queryIndex = "~blogDG.currentBatchIndex - 1" class = 
"button"><wo:ELLocalizedString value = "BlogPage.NewerPosts" /></wo:link>
          </li>
        </wo:else>
        <wo:if condition = "~blogDG.currentBatchIndex lt blogDG.batchCount">
          <li class = "next">
            <wo:link actionClass = "blog" directActionName = "archive" 
?queryIndex = "~blogDG.currentBatchIndex + 1" class = 
"button"><wo:ELLocalizedString value = "BlogPage.OlderPosts" /></wo:link>
          </li>
        </wo:if>
        <wo:else>
          <li class = "next disabled">
            <wo:link actionClass = "blog" directActionName = "archive" 
?queryIndex = "~blogDG.currentBatchIndex + 1" class = 
"button"><wo:ELLocalizedString value = "BlogPage.OlderPosts" /></wo:link>
          </li>
        </wo:else>
      </ul>
    </wo:if>

From an SEO perspective this can be tricky though. If you add elements over 
time, the static URL may well point to different content than it did 
originally, depending on the sort order. For the page I copied the code from, I 
explicitly disallowed indexing, as the individual posts are included in the 
sitemap.

Fabian

Am 24.10.2014 um 19:45 schrieb Gino Pacitti <[email protected]>:

> 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/lists.fabian%40e-lumo.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]

Reply via email to