| 12:17 |
andy001 |
good morning all |
| 12:18 |
andy001 |
can anybody give me a short inspiration? |
| 12:20 |
tobi_t3w |
when you wake up, stand before the mirror and say out loud "I am the king of the world!!". it helps. |
| 12:20 |
tobi_t3w |
good morning btw ;) |
| 12:21 |
andy001 |
i need a addiotional paramater automaticly starts from id xxx /i must give the url some params(&test=1&test2=2) |
| 12:21 |
andy001 |
the params are important for a java function/JSE |
| 12:22 |
andy001 |
this function is from an external script |
| 12:25 |
andy001 |
the ouptut from the url must be has this view: www.xxxxxx.com/index.php?id=120&test=1&test2=23 |
| 12:25 |
tobi_t3w |
from where do you get the parameters? i mean, you can use a CONTENT object on addtinalParams.cObject to generate them |
| 12:25 |
andy001 |
has anybody an idea? |
| 12:26 |
andy001 |
ah, i must get the paramters later for each site with typoscipt |
| 12:27 |
andy001 |
the paramers generates a list of product ( by POST) |
| 12:28 |
tobi_t3w |
what is you problem? adding the parametrs or reading them? |
| 12:28 |
andy001 |
adding |
| 12:29 |
tobi_t3w |
you want to add them to all menuitem? from where do you know which parameters to add? |
| 12:30 |
andy001 |
by ts |
| 12:30 |
tobi_t3w |
you can use menu.1.NO.additionalParams=&test1=1 etc |
| 12:32 |
andy001 |
okay... menu.1. is the right parameter for the menue? |
| 12:32 |
tobi_t3w |
no, was just a sample .. menu depends on the name of your menu |
| 12:33 |
andy001 |
this is the problem I use the content "Menü/Sitemap" type= "unterpunkte der seiten" |
| 12:34 |
andy001 |
better "unterseiten/mit inhaltsangabe" |
| 12:35 |
tobi_t3w |
so you have to add this to tt_content.menu.20.4.1.NO i think .. just browse tt_content.menu with the object browser to find this |
| 12:36 |
andy001 |
and then i must put it into the ts from the "maintemplate" starts with the site id from the root where it shoul works |
| 12:37 |
tobi_t3w |
yes# |
| 12:41 |
andy001 |
okay... wait! |
| 12:42 |
andy001 |
well done! it works perfect! thanks lot |
| 12:42 |
tobi_t3w |
np, you are welcome |
| 12:50 |
andy001 |
one short question i will generate the params for each id (example &test1=1 only id=1, test1=2 only id=2 ...) |
| 12:50 |
andy001 |
the problem is that the tt_content.menu.20.4.1. is generated automaticly! |
| 12:53 |
tobi_t3w |
tt_content.menu.20.4 is a normal TMENU, you can change everything |
| 12:53 |
tobi_t3w |
http://paste.phlogi.net/-a0366fd23f/ should use the page id as value for test1 |
| 12:54 |
tobi_t3w |
(when not using templavoila) |
| 12:55 |
andy001 |
i understand, i don't use tv, but the menue generats all functions for each entry |
| 12:56 |
andy001 |
(example: each menu entry hast the params &test1=1&test2=2 |
| 12:57 |
andy001 |
i need entry with id 22 = &test1=1&test2=2, id=25 = &test1=22&test2=11) |
| 12:58 |
tobi_t3w |
the example i posted before uses the page id for test1, to use individual parameters for each page you a) have to add a field to the pages table which you read there or b) use a CASE element on additionalParams.cObject .. |
| 12:59 |
tobi_t3w |
bbl need food ;) |
| 13:06 |
andy001 |
okay thanks! |
| 17:05 |
theconic |
hi guys, i have a question to all who already wrote own extensions: |
| 17:06 |
theconic |
what knowledge do i need for writing an easy t3 extension that gives me the possibility of inserting a new content element type? |
| 17:07 |
theconic |
i'm familiar with html and javascript and know a little bit about php |
| 17:07 |
theconic |
is writing t3 extensions something "high-level" ? |
| 17:09 |
snoy_ms |
theconic: it belongs of what you are doing... |
| 17:10 |
snoy_ms |
theconic: In some cases you can use the TCA config and sometimes its easy to use templavoila with some ts-script. |
| 17:11 |
snoy_ms |
Maybe someone knows it. Can i use the TCA to add a new content element ? |
| 17:12 |
kinea |
snoy_ms: what do you want to achieve? |
| 17:12 |
ries |
theconic: it's not high level at all... |
| 17:12 |
ries |
do you need to insert content from the BE or from the FE?? |
| 17:12 |
snoy_ms |
that theconic can use tca or templavoila instead of an extension |
| 17:13 |
theconic |
my advantage is that i have much time for it |
| 17:14 |
kinea |
theconic: what kind of ce you want to insert? |
| 17:14 |
kinea |
a fixed dataset with several different layouts? -> templavoila |
| 17:14 |
kinea |
no need for an extension |
| 17:15 |
theconic |
it should just have a box where you can insert a file, and its path should be wrapped with some html |
| 17:15 |
kinea |
like a download link? |
| 17:15 |
theconic |
"like" that, yes |
| 17:16 |
theconic |
the wrapped html is not flexible |
| 17:16 |
kinea |
should be possible with tv |
| 17:17 |
theconic |
some tutorial, documentation...? |
| 17:17 |
theconic |
i already use TV, but don't know this tca ;) |
| 17:17 |
kinea |
http://typo3.org/documentation/document-library/tutorials/doc_tut_ftb1/current/ |
| 17:17 |
theconic |
thanks ;) |
| 17:17 |
kinea |
ah |
| 17:17 |
kinea |
so you know it |
| 17:18 |
kinea |
why do you need tca for it? |
| 17:18 |
theconic |
didn't you say that? |
| 17:18 |
kinea |
no |
| 17:18 |
theconic |
<snoy_ms> theconic: In some cases you can use the TCA config and sometimes its easy to use templavoila with some ts-script. |
| 17:19 |
theconic |
and how did you mean i could do that? |
| 17:21 |
kinea |
i never tried, but maybe "linkfield" helps? |
| 17:21 |
kinea |
only an idea. you have to try |
| 17:21 |
theconic |
maybe i didn't explain well: i want to create a new CE type (like "text" or "table" or "filelist") with a wizard that asks me for the filepath and wraps this automatically with some (by me defined) html |
| 17:22 |
kinea |
i thought "linkfield" could be used for this |
| 17:22 |
kinea |
(as editing type) |
| 17:22 |
kinea |
in templavoila |
| 17:22 |
kinea |
you make a template with the html around the content. |
| 17:23 |
theconic |
done |
| 17:23 |
kinea |
and map the inner div or something to the linkfield editing type |
| 17:23 |
kinea |
oh, it works? |
| 17:23 |
theconic |
no, the template with html around the content ;) |
| 17:24 |
theconic |
ah, i know what you mean, but this is not what i need, i didn't explain well |
| 17:25 |
theconic |
my editors need a new wizard for implementing PDFs |
| 17:26 |
theconic |
so i thought i could write an extension -> new content element "PDF" that you can insert as usual content, which has a wizard that asks you for the path |
| 17:27 |
theconic |
and the path is automatically wrapped by the html code and then inserted in the page as a content type "PDF" |
| 17:27 |
theconic |
got what i mean? |
| 17:34 |
kinea |
theconic: but at least you only want the ce to be html around a link, correct? |
| 17:35 |
kinea |
i didnt get the point, why you cant use templavoila witht eh linkfield type. |
| 17:35 |
theconic |
not a link but the path of the file |
| 17:36 |
theconic |
and the path has to be inserted three times into the html |
| 17:36 |
kinea |
what is the difference? |
| 17:37 |
theconic |
so it will be like <html><filepath><another html><filepath><again html><filepath><last html> |
| 17:37 |
theconic |
very easy, but i don't know how to work that |
| 17:37 |
theconic |
and this has to be very easy for my editors |
| 17:37 |
kinea |
well you could use a typolink (with the linkfield type) and then ts inside the tv template,which copies the typolink to the three points in the code |
| 17:38 |
theconic |
and how would my editors then insert the CE? |
| 17:38 |
kinea |
the insert the new fce |
| 17:38 |
kinea |
and then choose the file |
| 17:39 |
kinea |
and save |
| 17:39 |
kinea |
should be easy. |
| 17:39 |
kinea |
for THEM |
| 17:45 |
theconic |
hehe, i don't like saying it, but i don't unserstand this : <kinea> well you could use a typolink (with the linkfield type) and then ts inside the tv template,which copies the typolink to the three points in the code |
| 17:47 |
kinea |
first question, if we forget the need to have three links in the ce: would the functionality of the linkfield type fit you needs? |
| 17:47 |
sorenmalling |
Hi, can someone tell me why the extension "blogs" from forge, aren't showed in my EM after done a checkout from the repository in to my /typ3conf/ext folder? |
| 17:47 |
kinea |
*your needs |
| 17:48 |
kinea |
if it fits, then you could try in a second step to copy the typolink of the this field two times. |
| 17:48 |
kinea |
(you could make a lib.twocopies COA and insert it in the templavoila template as t3 object |
| 17:49 |
kinea |
its also possible to integrate ts code INSIDE the template |
| 17:50 |
kinea |
like i said: i am not sure, if it works, but i would think so. |
| 18:23 |
sorenmalling |
can someone tell me why the extension "blogs" from forge, aren't showed in my EM after done a checkout from the repository in to my /typ3conf/ext folder? |
| 21:16 |
kinea |
i want to make an extension which sends a login mail to a FE user. in the mail is a link to a auto-login-page. the link includes a one time usable code, so it can not be used again. so FE users can login without typing in their password. f.e. to book a new newsletter, the user dont has to type in the username and password , only the username and gets the loginmail with the link. he clicks it... |
| 21:16 |
kinea |
and is logged in at the right page. |
| 21:16 |
kinea |
what do you think about it? |
| 21:17 |
kinea |
the code will be a MD5 timecode pid and be stord in a table and deleted after usage. |
| 21:18 |
kinea |
is this secure enough? |
| 21:38 |
kraftb |
add some random before you make the md5 sum ... |
| 21:38 |
kraftb |
like: $md5 = md5(time().rand(1,999999999)); |
| 21:42 |
kraftb |
kinea ^ |
| 21:42 |
kinea |
hi |
| 21:43 |
kinea |
ah ok |
| 21:43 |
kinea |
what about this: $time = time();$code = md5($time.getmypid()); |
| 21:52 |
kraftb |
hmm ... also ok ... but I would suggest using a random number in any case ... |
| 21:53 |
kraftb |
depending on the apache worker module you are using, the same process can render multiple pages |
| 21:53 |
kinea |
thanx, kraftb |
| 21:53 |
kinea |
? |
| 21:53 |
kinea |
could you explain me this? |
| 21:53 |
kraftb |
it will be really rare, that a process with the same pid, generates two keys during the same second ... but it could be |
| 21:54 |
kraftb |
the apache process ... |
| 21:54 |
kraftb |
one apache process - with one pid ... will under some circumstances answer multiple requests ... |
| 21:55 |
kinea |
ah good to know |
| 21:56 |
kraftb |
i mean - even whenusing a random number it could also be that two succesive calls generate the same random number ... |
| 21:57 |
kinea |
but they would never have the same time() |
| 21:57 |
kraftb |
but with a probability of 1:1 billion this is REALLY rare ... |
| 21:57 |
kinea |
so the code would be different |
| 21:57 |
kraftb |
to be sure you could simply add the "uid" of the created record to the md5 sum ... |
| 21:57 |
kraftb |
so create record -> get uid -> build md5 -> update record |
| 21:57 |
kraftb |
why ... |
| 21:58 |
kraftb |
time() delivers the second ... |
| 21:58 |
kinea |
ah sure |
| 21:58 |
kinea |
you are right |
| 21:58 |
kinea |
i make it with the insert/update procedure, like you suggested |
| 21:58 |
kraftb |
if one process generates the md5 sum - and the same process hapens to get to the point where the time() call of the next request is made ... |
| 21:58 |
kraftb |
and this happens within one second, they will have the same value there ... |
| 21:58 |
kraftb |
using the uid in the md5 sum would be the best option ... I think ... |
| 21:59 |
kinea |
this would be very bad! :-) |
| 21:59 |
kraftb |
and probably use and md5 sum of the username also ... or just the first 10 chars of it |
| 21:59 |
kinea |
one could login as another user |
| 21:59 |
kraftb |
you could think of a lof of measures ... |
| 21:59 |
kinea |
good that i asked here. |
| 22:51 |
kinea |
is there a function like pi_linkToPage , which gives me the absolute url of the page |
| 23:03 |
untouch_ |
hi |
| 23:03 |
untouch_ |
anyone ever installed typo3 on a strato web server |
| 23:11 |
kinea |
oh my god |
| 23:12 |
kinea |
untouch_: it was not possible until this year. |
| 23:12 |
kinea |
(the safe mode off problems are gone now) |
| 23:13 |
kinea |
but i would really suggest another provider |
| 23:14 |
kinea |
the mysql database is really slow at strato |
| 23:15 |
kinea |
so not a good condition for typo3 |
| 23:16 |
kinea |
take a serious typo3 provider |
| 23:23 |
caliel |
Hello everyone. |
| 23:31 |
HardPhuck |
kinea |
| 23:31 |
HardPhuck |
you still here? |
| 23:32 |
untouch_ |
n o he gone |
| 23:34 |
HardPhuck |
ah ok |