[TYPO3-shop] Describing page > include complete page

Franz Holzinger franz at ttproducts.de
Thu Jan 8 21:03:50 CET 2009


Hello Maarten,

> ###PRODUCT_NOTE_UID_1_title###
> ###PRODUCT_NOTE_UID_1_1_TEXT_bodytext###
> 
> I'm thinking of making a marker myself (PRODUCT_DESC_TEST) by code 
> similar to this:
> 
> plugin.tt_products.marks{
> PRODUCT_DESC_TEST = COA
> PRODUCT_DESC_TEST  {
> 10 = TEXT
> 10.value = TEST TEST
> }
> }
> 
> But I don't know how I could retrieve the pid value of the included page 
> (of the active single product) and place it in the marker.
> 
> I was wondering if there is already a marker that could do this? If not, 
>  could someone point me in the right direction for writing the code for 
> creating a marker?
this is not possible.

You can write the field feature for the tt_content table from the 
manual. The code is in the file 
tt_products/view/class.tx_ttproducts_product_view.php.
It should be inserted after the modifictaions by displayFields on line 
242. The same markers shall be reused. Send me the patch via email.
$pid contains the page id.

- Franz



More information about the TYPO3-project-tt-products mailing list