[TYPO3] extension or not?

Vandemaele David david.vandemaele at telenet.be
Tue May 23 17:25:45 CEST 2006


Luc Franken [TenToday] schreef:
> They will work but make sure the number used (in my example 1) is the 
> same in both lines and not used anywhere else. I mostly use numbers > 
> 100 which gives almost never a problem.
> 
> Vandemaele David schreef:
>> Luc Franken [TenToday] schreef:
>>> In your case I would do something like:
>>>
>>> Upload a PHP file which creates just a raw <ul> list to a directory 
>>> on your server. Don't add many stupid event handlers etcetera in your 
>>> HTML, the output should be something like:
>>> <ul class="collapseList">
>>>   <li>bla<ul>
>>>     <li>blabla</li>
>>>     </ul>
>>>   </li>
>>> etcetera
>>> </ul>
>>>
>>> Then install PHP page_content which allows you to put some PHP code 
>>> in a content element. Write something like include(yourfile.php);
>>>
>>> And finally, put in your template a line like:
>>> page.headerData.1 = HTML
>>> page.headerData.1.value = <script type="text/javascript" 
>>> src="yourscript.js">
>>>
>>> In the JS you can attach the event handlers etcetera.
>>>
>>>
>>>
>>>
>>>
>>> Vandemaele David schreef:
>>>> Ries van Twisk schreef:
>>>>> Vandemaele David wrote:
>>>>>
>>>>>> - Current [outside typo3]
>>>>>> Php scripts reads the downloaddirectory (recursive) and displays 
>>>>>> all directories/files in a list.
>>>>>>
>>>>>> - Upcoming [inside typo3]
>>>>>> Do I need to write some sort of an extension here? Or can i just 
>>>>>> create a userfunc?
>>>>>>
>>>>>> David
>>>>>> _______________________________________________
>>>>>>  
>>>>>>
>>>>> Sounds like document directories : 
>>>>> http://typo3.org/extensions/repository/search/danp_documentdirs/1.9.2/
>>>>>
>>>>>
>>>>>
>>>>>
>>>> Yes and no.
>>>> The download list should be one list (<ul><li>..</li></ul>), and it 
>>>> should use javascript to reveal/unhide the  next 'level' 
>>>> (directories,f iles)
>>>>
>>>> David
>>
>> That's what I need, thx!!
>> However, is it possible that those 2 lines
>> [code]page.headerData.1 = HTML
>> page.headerData.1.value = <script type="text/javascript" 
>> src="yourscript.js">" [/code] will not work because I'm using 
>> Templavoila?
>>
>> David
I've tried a lot of different numbers :-) but none of them is working.
Are there other possibilities?

David



More information about the TYPO3-english mailing list