Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Dec 14th, 2011  |  syntax: None  |  size: 0.87 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Hi there
  2.  
  3. I have a Realurl configuration where in the postVarSets, following is
  4. configured:
  5.  
  6. ------
  7. array(
  8. 'GETvar' => 'tx_ttnews[sViewPointer]',
  9.  
  10.                                    'valueMap' => array(
  11. '2' => '1',
  12. '3' => '2',
  13. etc. goes on until '40' => '39'
  14. ),
  15. 'noMatch' => 'bypass'
  16. -------
  17.  
  18. This is only for aesthetic reasons, so page.com/article/the-title/2 goes to
  19. page 2. This works well for the 2+ pages in a multi-page article. The
  20. problem with single-page articles is that they don't get cached. The reason
  21. for this is, after some hours of debugging, that the cHash is incorrect.
  22. When I click on a single-page article, the tx_ttnews[sViewPointer] var is
  23. set to "" (empty string). I also tried 'noMatch' => 'null' but the
  24. sViewPointer-var still comes as empty string.
  25.  
  26. Now my question is: how can I totally eliminate the sViewPointer variable,
  27. if it's empty?
  28.