Skip to main content
Post Reopened by Pierre.Vriens, avpaderno
added 193 characters in body
Source Link
iain maitland
  • 1.2k
  • 11
  • 24

Set Views Rss - How to set pager options / items to display via URL argument

I have a RSS feed being built by the Views RSS module. I can configure the pager to display a certain number of items; however, some consumers of my feed only want a few of my latest items from my feed. So I need to pass a limit in the URL to the number of items in my feed. something like this:

www.mywebsite.com/rsslatestnews/50 - For 50 items.
or
www.mywebsite.com/rsslatestnews/2 - For 2 Items.

I've tried implementing the hooks:

  • hook_views_pre_build
  • hook_views_post_build
  • hook_views_pre_execute
  • hook_views_post_execute
  • hook_views_pre_render
  • hook_views_post_render

To no avail, I think the RSS Views module is in some way skipping the typical order views hooks are triggered.

My question is this:

Which hook can I use to set the limit of items displayed by my RSS view?

Set pager options via URL

I have a RSS feed being built by the Views RSS module. I can configure the pager to display a certain number of items; however, some consumers of my feed only want a few of my latest items from my feed. So I need to pass a limit in the URL to the number of items in my feed.

Views Rss - How to set pager options / items to display via URL argument

I have a RSS feed being built by the Views RSS module. I can configure the pager to display a certain number of items; however, some consumers of my feed only want a few of my latest items from my feed. So I need to pass a limit in the URL to the number of items in my feed. something like this:

www.mywebsite.com/rsslatestnews/50 - For 50 items.
or
www.mywebsite.com/rsslatestnews/2 - For 2 Items.

I've tried implementing the hooks:

  • hook_views_pre_build
  • hook_views_post_build
  • hook_views_pre_execute
  • hook_views_post_execute
  • hook_views_pre_render
  • hook_views_post_render

To no avail, I think the RSS Views module is in some way skipping the typical order views hooks are triggered.

My question is this:

Which hook can I use to set the limit of items displayed by my RSS view?

Post Closed as "Needs details or clarity" by avpaderno
removed tags from title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Views RSS - set Set pager options via URL

I have a RSS feed being built by the views_rssViews RSS module,. I can configure the pager to display a certain number of items. Howeveritems; however, some consumers of my feed only want a few of my latest items from my feed. So I need to pass a limit in the urlURL to the number of items in my feed.

Views RSS - set pager options via URL

I have a RSS feed being built by the views_rss module, I can configure the pager to display a certain number of items. However some consumers of my feed only want a few of my latest items from my feed. So I need to pass a limit in the url to the number of items in my feed.

Set pager options via URL

I have a RSS feed being built by the Views RSS module. I can configure the pager to display a certain number of items; however, some consumers of my feed only want a few of my latest items from my feed. So I need to pass a limit in the URL to the number of items in my feed.

Source Link
iain maitland
  • 1.2k
  • 11
  • 24

Views RSS - set pager options via URL

I have a RSS feed being built by the views_rss module, I can configure the pager to display a certain number of items. However some consumers of my feed only want a few of my latest items from my feed. So I need to pass a limit in the url to the number of items in my feed.