[TYPO3-english] extension "Hello World"

2012-09-10 Thread Tomasz Imbierczak
Do I need an extension that can be placed on the site (frontend) in
several places. Therefore, it seems to me that would be the best category
frontend plugin. Unfortunately I did not find anywhere in the
documentation how to do it. I am a beginner in TYPO3 so I need a
description of a very clear and simple. In this never came.
When someone was kind enough to show me the description and / or as
described in the file which I put to the plugin was created. Just me an
example of the usual "Hello World" which appears in place (frontdend) to
insert this plugin.

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] extension "Hello World"

2012-09-10 Thread Björn Pedersen
Am 10.09.2012 10:56, schrieb Tomasz Imbierczak:
> Do I need an extension that can be placed on the site (frontend) in
> several places. Therefore, it seems to me that would be the best category
> frontend plugin. Unfortunately I did not find anywhere in the
> documentation how to do it. I am a beginner in TYPO3 so I need a
> description of a very clear and simple. In this never came.
> When someone was kind enough to show me the description and / or as
> described in the file which I put to the plugin was created. Just me an
> example of the usual "Hello World" which appears in place (frontdend) to
> insert this plugin.
> 

Hi,

a good starting page is:
http://wiki.typo3.org/Extension_Developers_Guide

To get a skeleton extension  either get the ExtensionBuilder extension (
will give a modern extbase/fluid  extension) or the kickstarter
extension (this will generate a old-style extension).

Björn

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] extension "Hello World"

2012-09-10 Thread Tomasz Imbierczak
Dnia Pn Września 10 2012, 11:11, BjĂśrn Pedersen napisał(a):
> Am 10.09.2012 10:56, schrieb Tomasz Imbierczak:
>> Do I need an extension that can be placed on the site (frontend) in
>> several places. Therefore, it seems to me that would be the best
>> category
>> frontend plugin. Unfortunately I did not find anywhere in the
>> documentation how to do it. I am a beginner in TYPO3 so I need a
>> description of a very clear and simple. In this never came.
>> When someone was kind enough to show me the description and / or as
>> described in the file which I put to the plugin was created. Just me an
>> example of the usual "Hello World" which appears in place (frontdend) to
>> insert this plugin.
>>
>
> Hi,
>
> a good starting page is:
> http://wiki.typo3.org/Extension_Developers_Guide
>
> To get a skeleton extension  either get the ExtensionBuilder extension (
> will give a modern extbase/fluid  extension) or the kickstarter
> extension (this will generate a old-style extension).
>
> BjĂśrn
>
Ok, but where can I see a simple example of extending plugin frontand. A
simple "hello world"?


___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] extension "Hello World"

2012-09-10 Thread amadeo Marketing & Design - Paul Garais

Hi,

just start using the extensions listed by Björn. For example: If you create a extension with the 
extension kickstarter and create a frontend plugin for it, it will create all the needed files and 
put sample code (a simple form) into it.



- Paul

Am 10.09.2012 13:24, schrieb Tomasz Imbierczak:

Dnia Pn Września 10 2012, 11:11, BjĂśrn Pedersen napisał(a):

Am 10.09.2012 10:56, schrieb Tomasz Imbierczak:

Do I need an extension that can be placed on the site (frontend) in
several places. Therefore, it seems to me that would be the best
category
frontend plugin. Unfortunately I did not find anywhere in the
documentation how to do it. I am a beginner in TYPO3 so I need a
description of a very clear and simple. In this never came.
When someone was kind enough to show me the description and / or as
described in the file which I put to the plugin was created. Just me an
example of the usual "Hello World" which appears in place (frontdend) to
insert this plugin.


Hi,

a good starting page is:
http://wiki.typo3.org/Extension_Developers_Guide

To get a skeleton extension  either get the ExtensionBuilder extension (
will give a modern extbase/fluid  extension) or the kickstarter
extension (this will generate a old-style extension).

BjĂśrn


Ok, but where can I see a simple example of extending plugin frontand. A
simple "hello world"?


___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] vge_tagcloud with tt_news / result list (Francois Suter)

2012-09-10 Thread kontakt


Zitat von typo3-english-requ...@lists.typo3.org:


Date: Wed, 22 Aug 2012 12:17:10 +0200
From: Fran?ois Suter 
Subject: Re: [TYPO3-english] vge_tagcloud with tt_news / result list
To: typo3-english@lists.typo3.org
Message-ID: 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Stefan,


I have a non-documented problem with the result list (pi2) of the
extension vge_tagcloud. I use the tagcloud together with tt_news. The
cloud is correctly generated from the "keyword"-field in the
"tt_news"-table. When clicking on a tag, you'll get the result list. But
the result list is only linking to the sysfolder "container news", where
the news-articles are. The link doesn't work of course, because it's a
sysfolder. The result list doesn't link to the specific single-views of
the articles. Is there any possibility to solve this problem or do you
know a workaround?


Actually it is documented ;-) Please refer to the chapter entitled
"Linking to tt_news and TIMTAB" which gives an example TypoScript setup.

With the above-mentioned example, you'll find out how you can link
directly from a tag in the tag cloud to some specific page to which you
can pass the appropriate parameters for that page to display the correct
information. In the example, the page is expected to display the search
view from tt_news.


I'm sorry - but I can't bring it to work. I used your ts, placed it in  
the typoscript section of the flexform and linked to the site with the  
tt_news-searchengine. It generates a link, which seems to be correct,  
for example like this:  
http://www.parinet-brb.de/index.php?id=55&tx_vgetagcloud_pi2[pages]=53&tx_vgetagcloud_pi2[keyword]=Hartz%20IV&cHash=f9c0a2cac233733eac8bdc4fbab69572

But there are no results on the target page.

You can check it, if you want: http://www.parinet-brb.de/index.php?id=12
Username: tester
password: parinet

I feel a ittle bit boring - but I don't see the problem ...

Thx for help.

Stefan


HTH

--

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch

--
k² Potsdam
kompetenz für kommunikation
www.k2-potsdam.de
kont...@k2-potsdam.de

Tel. 0331/86 749 883
Funk 0172/514 3825


___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] vge_tagcloud with tt_news / result list (Francois Suter)

2012-09-10 Thread François Suter

Hi Stefan,


I'm sorry - but I can't bring it to work. I used your ts, placed it in
the typoscript section of the flexform and linked to the site with the
tt_news-searchengine. It generates a link, which seems to be correct,
for example like this:
http://www.parinet-brb.de/index.php?id=55&tx_vgetagcloud_pi2[pages]=53&tx_vgetagcloud_pi2[keyword]=Hartz%20IV&cHash=f9c0a2cac233733eac8bdc4fbab69572


If I understand correctly, page 55 contains the tt_news plugin keyed for 
search, right? That's fine, but the URL is not good. If you want tt_news 
to be triggered, your URL should be something like:


http://www.parinet-brb.de/index.php?id=55&tx_ttnews[swords]=Hartz%20IV&no_cache=1

Note that tt_news also requires the no_cache=1 flag to be set (apparently).

HTH

--

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] CoolURI and URL conflicts

2012-09-10 Thread Daniel Lundsgaard Skovenborg
Hi,

Sorry, if this obvious problem has already been discussed, but I could
not find anything on Google.
If two different DirtyURIs translate to the same CoolURI, then ideally
something like "-#" (where -# is a number) should be added to the end,
I think. Is CoolURI currently capable of this? Certain parameters
(like cHash) should be ignored, of course.

Of course, pages with the same name and the same parent would be a
very bad structure. But for a downloads section it actually makes
sense to have downloads with the same name if it's the same file in
different formats, and there's no confusion as long as there's
different icons for the formats next to the names. E.g.
[pdf-icon] Manual
[doc-icon] Manual
Maybe I could somehow use tx_cooluri::cool2params in my extension for
ab_downloads to check for conflicts, but it would be a hack, because
the functions for CoolURIConf.xml only knows about their specific part
of the URL, not the final result, and changes in the configuration
would then break the extension.
Or I could tell the BE-users to avoid name conflicts, but this will
only work as long as they remember to do so, and I think it is bad
design to make the user work *against* the system rather than *with*
the system.

Regards,
Daniel Lundsgaard Skovenborg

--
http://waldeinburg.dk
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] Headers to export to Excel

2012-09-10 Thread Guillermo R. Oramas J.
Hello.

I have a frontend plugin where I displayed some tabular data. I developed a
function to export the same data to excel.

To do that I created a link with a parameter "?cmd=excel" that redirects to
the same plugin and trigger the excel function.

When the user clicks the link the browser dialog appears offering to open
or save the file. If the user selects "save", the file is saved and then
opens without problems, but if the user selects "open" then the browser
opens the file in an unreadable format.

I know that is because the headers passed to the browser are html and
nothing is said about excel.

I think I need to put something like:

header('Content-Type: application/vnd.ms-excel');
header('Content-Disposition: attachment;filename="filename.xls"');
header('Cache-Control: max-age=0');

But I suspect that the Spreadsheet_Excel_Writer already do that, so the
problem is how to pass these headers before any other headers?

Thanks for the help. I hope I will learn something new today!
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Headers to export to Excel

2012-09-10 Thread Richard Davies
Hi there,

I believe typo3 only throws out its headers right at the end, so if you
call your headers, echo out the data then exit, it should work.
spreadsheet_excel_writer works well for me. Can you confirm you call send
at the start of your write? It should go something like
->construct
->send(file)
//add/write data
->close
exit;

Richard


On 11 September 2012 10:38, Guillermo R. Oramas J. wrote:

> Hello.
>
> I have a frontend plugin where I displayed some tabular data. I developed a
> function to export the same data to excel.
>
> To do that I created a link with a parameter "?cmd=excel" that redirects to
> the same plugin and trigger the excel function.
>
> When the user clicks the link the browser dialog appears offering to open
> or save the file. If the user selects "save", the file is saved and then
> opens without problems, but if the user selects "open" then the browser
> opens the file in an unreadable format.
>
> I know that is because the headers passed to the browser are html and
> nothing is said about excel.
>
> I think I need to put something like:
>
> header('Content-Type: application/vnd.ms-excel');
> header('Content-Disposition: attachment;filename="filename.xls"');
> header('Cache-Control: max-age=0');
>
> But I suspect that the Spreadsheet_Excel_Writer already do that, so the
> problem is how to pass these headers before any other headers?
>
> Thanks for the help. I hope I will learn something new today!
> ___
> TYPO3-english mailing list
> TYPO3-english@lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english