Re: WODisplayGroup URLS
Re: WODisplayGroup URLS
- Subject: Re: WODisplayGroup URLS
- From: Fabian Peters <email@hidden>
- Date: Fri, 24 Oct 2014 20:15:46 +0200
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@hidden>:
> 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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden