Yea I looked over the ERXFlickrBatchNavigation. And I don’t need the direct action url I need is to now how to generate a componentURL when I am not accessing the binding using a WOHyperlink or ActionMethod…
The next batch is a url to that action and I am trying to access that from within a class and make that component URL visible in the <link real = “next” href = “componentURL” /> using a WOGenericElement or something…. How can I get the ComponentURL for the displayNextBatch method in WODisplayGroup? Gino > On 24 Oct 2014, at 19:15, Fabian Peters <[email protected]> wrote: > > 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/ginokris%40me.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]
