Difference between revisions of "Limit Portal Block Entry"

From GeeklogWiki
Jump to: navigation, search
(Fixed description)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Limiting Portal Block Entry ==
 
== Limiting Portal Block Entry ==
  
You can limit the number of entry in portal block by changing the value of $maxheadlines in function COM_rdfImport( $bid, $rdfurl ) to any number that you want.
+
You can limit the number of entries in a [[Block_Types#Portal_Block|Portal Block]] for each individual portal block in the block menu. The default is specified in the value of <code>$_CONF['syndication_max_headlines']</code> (in <tt>Site: Syndication</tt> in the Configuration admin panel or in <tt>config.php</tt>, depending on the Geeklog version you're using).
 +
 
 +
In really old Geeklog versions, you can limit the number of entries by changing the value of <code>$maxheadlines</code> in <code>function COM_rdfImport($bid, $rdfurl)</code> to any number that you want.
  
 
== Reloading Portal Block ==
 
== Reloading Portal Block ==
  
After changing the limit, the portal block will not be updated until the next rss update which by default is set to 3600 seconds or 1 hour. If you want to see the portal block updated immidiately, you can go back to Block under the Admins function, select the portal block that you want to reload and save the portal block again.
+
After changing the limit, the portal block will not be updated until the next RSS update which by default is set to 3600 seconds/1 hour (specified in lib-common.php's function COM_rdfCheck). If you want to see the portal block updated immediately, you can go back to Blocks under the Admins function, select the portal block that you want to reload and save the portal block again.
  
Back to [[Users Documentation]]
+
[[Category:Blocks]]

Latest revision as of 23:21, 28 October 2009

Limiting Portal Block Entry

You can limit the number of entries in a Portal Block for each individual portal block in the block menu. The default is specified in the value of $_CONF['syndication_max_headlines'] (in Site: Syndication in the Configuration admin panel or in config.php, depending on the Geeklog version you're using).

In really old Geeklog versions, you can limit the number of entries by changing the value of $maxheadlines in function COM_rdfImport($bid, $rdfurl) to any number that you want.

Reloading Portal Block

After changing the limit, the portal block will not be updated until the next RSS update which by default is set to 3600 seconds/1 hour (specified in lib-common.php's function COM_rdfCheck). If you want to see the portal block updated immediately, you can go back to Blocks under the Admins function, select the portal block that you want to reload and save the portal block again.