[TYPO3-templavoila] FCE anchor menu from related content items
Dennis Laudenbach
laudenbach at agentur-brandung.de
Wed Nov 5 11:41:50 CET 2008
Hi Sven,
I use an external PHP-Script:
/******************** begin ***********************/
function setFCE() {
$elements = array();
$pid = $GLOBALS['TSFE']->page['uid'];
$ret = '<option value="0">please choose</option>';
$elements = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
'uid,header',
'tt_content',
'tx_templavoila_ds={### DS-ID###} AND pid=' . $pid . ' AND header != ""',
'',
'header'
);
foreach($elementsas $element) {
$ret .= '<option value="index.php?id=' . $pid . '#c' . $element['uid'] . '">' . $element['header'] . '</option>';
}
return $ret;
}
$content = setFCE();
return $content;
/******************** end ***********************/
Don´t forget to change {### DS-ID###} into the correct ID!
Included in DS:
<TypoScript>
10 = PHP_SCRIPT
10.file = fileadmin/develop/php/fce.inc.php
</TypoScript>
Greetz, Daniz
-----Ursprüngliche Nachricht-----
Von: typo3-project-templavoila-bounces at lists.netfielders.de [mailto:typo3-project-templavoila-bounces at lists.netfielders.de] Im Auftrag von Sven Wolfermann
Gesendet: Mittwoch, 5. November 2008 11:31
An: typo3-project-templavoila at lists.netfielders.de
Betreff: Re: [TYPO3-templavoila] FCE anchor menu from related content items
Steffen Kamper schrieb:
> Sven Wolfermann schrieb:
>> Dmitry Dulepov schrieb:
>>> Hi!
>>>
>>> The question is not clear.
>>>
>>
>> ok, a bit more words ;)
>>
>> I have a 2 columns FCE. I add some content to the left and some to
>> the right. Further I have another FCE above in this page. What I want
>> is an anchor menu within (on top of) the 2 columns FCE linked to the
>> content anchors. The anchor typoscript tmenu showed me ALL content
>> items of the page and not only the items of the 2 columns FCE.
>>
>> How can I insert a relation to the FCE?
>> Hope it is clearer now what I want.
>>
>> Sven
>
>
> that's no problem as there exists the menu type.
> Insert TS object
> lib.cemenu < tt_content.menu.3
>
> vg Steffen
Sorry, it is not as easy. That is, what I had before - the menu show all
items of the page - I want only the items, that I inserted in the special FCE.
Sample:
* Informationen
* Einfach praktisch:
* Familienversicherungsschutz 5 plus
* Warum ein Familie 5 plus?
* Was ist versichert?
* Wo gilt der Versicherungsschutz?
* Wer ist versichert?
The menu is showing all CEs on this page, not connected Content too.
I want only the last 4, wich are inserted in my 2. FCE (2 colums).
_______________________________________________
TYPO3-project-templavoila mailing list
TYPO3-project-templavoila at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoila
More information about the TYPO3-project-templavoila
mailing list