[Typo3-dev] configuring plugin vars for simulate static

Kasper Skårhøj kasper at typo3.com
Thu May 27 18:01:13 CEST 2004


There is something in pibase class where you can set a temporary id as
an internal variable which will be used when calling ...keepPIvars. You
are totally right - sometimes you want to change the id but keep vars. I
can't remember if I even made a new API function which lets you pass the
alternative ID. I might have done that in 3.6.0

- kasper

On Wed, 2004-05-26 at 13:58, Alexander Langer wrote:
> Also sprach Andreas Schwarzkopf (a.schwarzkopf at meinsystem.de):
> 
> > since 3.6.0 it must be declared, also if typolink functions was used:
> > simulateStaticDocuments_pEnc_onlyP = tx_maillisttofaq_pi1[pointer], L, print
> > Documented in TSRef 3.6.0:
> > <http://sourceforge.net/project/showfiles.php?group_id=20391&package_id=14725>
> 
> Speaking of simulate-static + piVars:
> 
> How would one link to _another_ PageID but want to set piVars?
> 
> getPageLink() would work, but 
>   a) you have to construct the pivars array manually, and
>   b) you have to set no_cache=1 if you don't want to have odd
>      results in the target page due to caching (cHash parameter
>      is missing), which then destroys simulateStatic again.
> 
> Why don't we have a pibase function that keeps the pivars but lets you
> specifiy a different page-Id?  (many plugins use it, i.e. LATEST DISPLAY
> of tt_news or any other extension that wants to show a teaser of some
> items on one page, and the actualy display on antoher page)
> 
> I just fell into this trap with my calendar ext.
> 
> Thanks
> 
> Alex
> 
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
-- 
God bless

- kasper

------

"To succeed in life, you need two things: ignorance and confidence." -
Mark Twain.






More information about the TYPO3-dev mailing list