| 00:00 |
dinsdale07 |
constants editor is module template - Constant Editor(dropdown) |
| 00:00 |
tCzern_ |
I thought so |
| 00:01 |
tCzern_ |
I think I use the standard mailform, not powermail |
| 00:02 |
tCzern_ |
ok, forget about it, way too complicated |
| 00:10 |
jananne |
dinsdale07: |
| 00:10 |
jananne |
it's not checked automaticly.. i see the input now. |
| 00:10 |
jananne |
http://www.lifealliance.nl/nieuws/aanmeldennieuwsbrief/ |
| 00:11 |
dinsdale07 |
but if you include in the template checked="checked", it should be, or did you try that? |
| 00:12 |
jananne |
i tried.. |
| 00:13 |
jananne |
somehow it removes those lines.. |
| 00:13 |
jananne |
just copy pasted it... |
| 00:13 |
dinsdale07 |
maybe paste it outside the replace markers ... |
| 00:14 |
dinsdale07 |
if it's plain html it shouldnt' get touched at all |
| 00:15 |
jananne |
okay |
| 00:17 |
lubosz |
where do i find the "include static" dialog to include typoscript files to my extension? |
| 00:19 |
jananne |
dinsdale07: i'll include the checkbox, and then the users can deside to have it as html or plain text. this is taking me to much time. thx for the info! |
| 00:20 |
dinsdale07 |
np, I guess not a biggie anyway. |
| 00:21 |
dinsdale07 |
jananne, I like the language icons on your site - they are bigger than usual. |
| 00:28 |
jananne |
dinsdale07: |
| 00:28 |
jananne |
i downloaded the from www.famfamfam.com |
| 00:28 |
jananne |
don't know wich pack exactly, but there are a whole bunch :) |
| 00:28 |
jananne |
there free :) |
| 00:29 |
dinsdale07 |
looks like a good site - bookmarked :-) thanks |
| 00:30 |
jananne |
np :) |
| 00:52 |
Weener |
www.TheSpiderWebSystem.com/vanaudo |
| 01:25 |
jananne |
does anyone know how to change the BE startupscreen? so when i log in i want to see the pagetree automaticly instead of the info about all the menu's? |
| 05:58 |
null0_ |
moin |
| 06:02 |
jsfan |
hi null0_ |
| 06:03 |
null0_ |
hiho |
| 06:03 |
null0_ |
boring... |
| 07:16 |
turuburu |
hi guys |
| 08:21 |
turuburu |
what is the link for that 45 min typoscript tutorial? |
| 08:36 |
turuburu |
i found |
| 08:44 |
Briareos1 |
hi |
| 08:52 |
Briareos1 |
is it possible do display certain pages of my tree by default in a different language? |
| 09:06 |
sorenmalling |
Anybody with t3blog experience? |
| 09:08 |
maholtz|WORK |
here |
| 09:08 |
maholtz|WORK |
really quick to install, but you should read the manual |
| 09:08 |
maholtz|WORK |
it is not sooo easy to make your own design (but i am not an designer, so...) |
| 09:08 |
maholtz|WORK |
and i do not know how trackback works |
| 09:09 |
sorenmalling |
maholtz|WORK: Okay, does it depend on dam? |
| 09:09 |
maholtz|WORK |
i am not an blogger so... |
| 09:09 |
maholtz|WORK |
does not matter, because it uses irre and content elements |
| 09:09 |
sorenmalling |
It doesn't say in the manual, but i get PHP errors in my log, regarding calls to txdam_getMediaTCA, which is a undefined function |
| 09:09 |
kaktuspalme |
hi there, i'd like to set cookies in a extension, how can i do that, should i use the normal php function setcookie, or is there a typo3 function? |
| 09:10 |
maholtz|WORK |
hm... wondering - can you use normal content elements? |
| 09:11 |
sorenmalling |
Yep, everything else works, it was doing the "Install extension" after importing the t3x file, that my TYPO3 installation was blank and my error log got these messages |
| 09:12 |
kaktuspalme |
ok i found something which helps me |
| 09:15 |
PiMB |
morning |
| 09:15 |
sorenmalling |
maholtz|WORK: Call to undefined function txdam_getMediaTCA() in /mnt/storage01/www/www.domain.dk/htdocs/typo3/typo3conf/temp_CACHED_ps3b4f_ext_tables.php on line 2540, referer: http://domain.dk/typo3/typo3/backend.php |
| 09:17 |
maholtz|WORK |
@kaktuspalme: what did you found? |
| 09:17 |
maholtz|WORK |
@sorenmalling: so check ext_tables.php of t3blog |
| 09:18 |
kaktuspalme |
maholtz|WORK: http://typo3.org/documentation/document-library/references/doc_core_tsref/4.2.0/view/1/14/#id4501321 |
| 09:18 |
sorenmalling |
maholtz|WORK: I found the error, Ive checked the requirements, but the answer was under the "Installation" part of the manual :) |
| 09:18 |
sorenmalling |
"The extension is configured to work smoothly with the DAM. You can use it without DAM but then you will have to reprogramm quite a few lines of TypoScript and PHP-Code." |
| 09:18 |
maholtz|WORK |
uh |
| 09:19 |
sorenmalling |
Yep :) Unless you programmed the lines as the quote referrers to |
| 09:26 |
maholtz|WORK |
i did not, so i have dam installed... |
| 09:29 |
_pedda_ |
hmm i did a big mess |
| 09:29 |
_pedda_ |
my db is completely damaged |
| 09:29 |
_pedda_ |
hmpf.. |
| 09:32 |
_pedda_ |
in my utf8 db i have something like this |
| 09:32 |
_pedda_ |
Ãffentlicher Bereich |
| 09:33 |
_pedda_ |
which becomes Öffentlicher bereich when it is rendered in fe |
| 09:33 |
_pedda_ |
when i dump the db via shell |
| 09:33 |
_pedda_ |
and import the sql file to another db |
| 09:33 |
_pedda_ |
on the same place there is |
| 09:34 |
_pedda_ |
ÉÄìffentlicher Bereich' |
| 09:37 |
_pedda_ |
when i dump the sql file via phpmyadmin everything is fine... |
| 09:37 |
_pedda_ |
strange.. |
| 09:46 |
nd__ |
How do I get indexed_search to index .zip files? |
| 09:56 |
m4rtijn |
hia ll |
| 09:58 |
_pedda_ |
hi m4rtijn |
| 09:58 |
PiMB |
hi |
| 09:59 |
beli |
hey all |
| 10:14 |
maholtz|WORK |
someone here is good at the shell? i want to find 15 recent changed files (sorted and recursiv in subfolders too) |
| 10:15 |
maholtz|WORK |
i did: find pdffolder -type f -iname *.pdf -mtime 30 |
| 10:15 |
maholtz|WORK |
but that is not what i need...:( |
| 10:18 |
m4rtijn |
try asking in #linux |
| 10:19 |
maholtz|WORK |
you are right, thx |
| 10:29 |
_pedda_ |
hmpf... call me dr strangelove... there are things happening around... i can't understand.. |
| 10:29 |
_pedda_ |
1 hour ago i created a dump and imported into another db.. |
| 10:29 |
_pedda_ |
all the special chars were messed up |
| 10:30 |
_pedda_ |
but both db's are utf8 |
| 10:30 |
_pedda_ |
i repeated the process 10 times or something.. |
| 10:31 |
_pedda_ |
i called the support then.. they didn't know what to say.. they haven't discovered something like this before... |
| 10:31 |
m4rtijn |
erm _pedda_ |
| 10:31 |
m4rtijn |
try exporting the DB to an older mysql format |
| 10:32 |
_pedda_ |
but when the supoort executed the same command i did the 4th time.. everything went fine again since then |
| 10:32 |
_pedda_ |
i should leave and go to bed.. it's not my day today |
| 10:32 |
m4rtijn |
:) |
| 10:34 |
mikhas |
hi. hmm. is it possible to use constants when stacking variables with load_registers ? I'm not sure I get exactly what you can do with load_register? (i want to save a variable in an early part of a COA and use it in a later part of a COA) |
| 10:37 |
mikhas |
hmm. i might be able to do this. http://lists.netfielders.de/pipermail/typo3-france/2005-September/000355.html |
| 11:07 |
maholtz|WORK |
@mikhas: you are |
| 11:08 |
HardPhuck |
is this okay in my be module to set GET variables? |
| 11:08 |
HardPhuck |
<a href="' . $BACK_PATH . 'index.php?view='.$record['uid'].'"> |
| 11:08 |
mikhas |
maholtz|WORK: I'm figuring out how, at the moment. :) |
| 11:09 |
maholtz|WORK |
10 = LOAD_REGISTER |
| 11:09 |
maholtz|WORK |
10.testme = 10 |
| 11:09 |
maholtz|WORK |
20 = TEXT |
| 11:09 |
maholtz|WORK |
20.data = register:testme |
| 11:19 |
mikhas |
maholtz|WORK: FINALLY! finally found the correct formula |
| 11:28 |
mikhas |
maholtz|WORK: thanks a lot for the help, i had a messy time with the syntax (as always) but now it works. typoscript is difficult, but useful. :) |
| 11:30 |
maholtz|WORK |
:) perhaps you can put an snippet to snippets.typo3.org ... :) |
| 11:47 |
maholtz|WORK |
afk |
| 11:47 |
HardPhuck |
where do i find path do the BE module |
| 11:48 |
HardPhuck |
FE plugins have $_EXTKEY for that |
| 11:51 |
HardPhuck |
or where do i find the relative path to the extension |
| 11:54 |
HardPhuck |
what noone here made a BE extension :) |
| 12:11 |
Briareos1 |
no IDEA on how it's possible to display certain pages of the tree by default in a different language than default? |
| 12:15 |
Nekdo |
heya guys |
| 12:16 |
Nekdo |
a quick simple q |
| 12:16 |
Nekdo |
if i define something like "plugin.extension.setting = something" in constants |
| 12:17 |
Nekdo |
how do i get that value in ext. |
| 12:17 |
HardPhuck |
if you define it then it's already in the extension |
| 12:17 |
Nekdo |
yah |
| 12:18 |
Nekdo |
what's the syntax to access the value |
| 12:18 |
HardPhuck |
like if you define plugin.tt_news.displaySinlge = 23 the plugin in FE will always look up to this value |
| 12:18 |
HardPhuck |
ah |
| 12:19 |
Nekdo |
$this->conf['setting'] |
| 12:19 |
Nekdo |
is that correct? |
| 12:19 |
HardPhuck |
should be yes |
| 12:19 |
Nekdo |
let's see |
| 12:23 |
Nekdo |
nah |
| 12:24 |
Nekdo |
no value |
| 12:24 |
Nekdo |
ah |
| 12:24 |
Nekdo |
it works if i put it to setup instead of constants |
| 12:24 |
Nekdo |
thx! |
| 12:25 |
HardPhuck |
np :) |
| 12:25 |
HardPhuck |
where are you from |
| 12:27 |
Nekdo |
slovenia |
| 12:28 |
Nekdo |
have to buy dmitry extension development book |
| 12:28 |
Nekdo |
lately im dealing with ext. daily |
| 12:29 |
HardPhuck |
u koncno se en slovenc tuki :) |
| 12:29 |
HardPhuck |
sem biu leta sam tu |
| 12:30 |
Nekdo |
hehe |
| 12:30 |
Nekdo |
zanimivo :) |
| 12:30 |
Nekdo |
nism vedu da se spoh še kdo ukvarja s typom |
| 12:30 |
Nekdo |
s kot pa si? |
| 12:31 |
HardPhuck |
Litija |
| 12:31 |
HardPhuck |
polovico svojega casa, drugo polovico pa v Prekmurju :) |
| 12:31 |
Nekdo |
aha |
| 12:31 |
Nekdo |
js pa lj/ve |
| 12:32 |
HardPhuck |
s typom pa se ukvarja kar veliko folka, pol severne evrope je na njem |
| 12:32 |
Nekdo |
drugaè si mi pa znan s tegale kanala |
| 12:32 |
Nekdo |
ja sam slovencev je bolj malo |
| 12:32 |
HardPhuck |
to pa drzi |
| 12:32 |
HardPhuck |
ampak je kul to, mamo tisti ki znamo s typom veliko dela :) |
| 12:33 |
Nekdo |
hehe |
| 12:33 |
Nekdo |
ja preveè èist |
| 12:34 |
Nekdo |
tale tvoj page bol neraèunalniški zgleda :) |
| 12:34 |
HardPhuck |
ker page |
| 12:34 |
Nekdo |
pok-sp |
| 12:34 |
HardPhuck |
aja, to je od fotra :) |
| 12:34 |
Nekdo |
aha, hehe |
| 12:35 |
HardPhuck |
pa ta je edini ki ga nisem s typom delu ker sem probaval se en sistem |
| 12:35 |
Nekdo |
hehe |
| 12:35 |
Nekdo |
kje pa delaš drugaè |
| 12:35 |
Nekdo |
al to freelance? |
| 12:35 |
HardPhuck |
svojo firmo mam |
| 12:35 |
HardPhuck |
jap freelancing |
| 12:35 |
Nekdo |
ktera firma to |
| 12:35 |
HardPhuck |
Optiss se imenuje |
| 12:36 |
HardPhuck |
sem samo jaz zaenkrat |
| 12:36 |
HardPhuck |
pa pogodbeni partnerji, zaposlenih se nimam :) |
| 12:36 |
HardPhuck |
sem se student |
| 12:36 |
Nekdo |
tud js :) |
| 12:36 |
HardPhuck |
nimam svojga pagea :) |
| 12:36 |
Nekdo |
kolk dolgo pa že kej delaš na typo3? |
| 12:37 |
maholtz|WORK |
re |
| 12:38 |
Nekdo |
oj |
| 12:38 |
Nekdo |
sry :) |
| 12:38 |
maholtz|WORK |
which language was that? |
| 12:38 |
HardPhuck |
Slovenian |
| 12:38 |
Nekdo |
we just found out that there is more of us from slovenia dealing with typo3 |
| 12:40 |
maholtz|WORK |
there is no usergroup in slovenia? |
| 12:40 |
HardPhuck |
no |
| 12:44 |
HardPhuck |
it's not many people in Slovenia who know typo3 |
| 12:44 |
HardPhuck |
could count them on fingers on one hand |
| 12:44 |
maholtz|WORK |
which cms is used there? |
| 12:45 |
HardPhuck |
mostly inhouse cmses are used |
| 12:45 |
HardPhuck |
almost every web company has it's own cms |
| 12:45 |
HardPhuck |
which they sell |
| 12:45 |
HardPhuck |
most of them are junk, but people buy it anyway |
| 12:46 |
maholtz|WORK |
ok, its only a matter of time |
| 12:47 |
HardPhuck |
well, i use typo3 for about 4 yrs, and things didn't change since then |
| 12:48 |
HardPhuck |
i said to my mate that that's just fine by me, more work gets in |
| 12:48 |
HardPhuck |
no real competition :D |
| 12:48 |
maholtz|WORK |
perfact:) |
| 12:49 |
smutje33 |
hi |
| 12:49 |
smutje33 |
i need a install readme for typo4.2.2 webserver installation |
| 12:50 |
HardPhuck |
google is your friend |
| 12:50 |
smutje33 |
i thought u are my friend :o) |
| 12:53 |
maholtz|WORK |
@smutje33: tar -zxvf typo3....tar.gz |
| 12:53 |
maholtz|WORK |
read than the readme file |
| 12:53 |
maholtz|WORK |
and install.txt |
| 12:56 |
HardPhuck |
lol |
| 12:56 |
maholtz|WORK |
am i wrong? |
| 12:56 |
maholtz|WORK |
sometime the manual is so near... |
| 12:57 |
HardPhuck |
you are right :) |
| 13:12 |
maholtz|WORK |
but smutje33 doesnt think so... ? |
| 13:18 |
HardPhuck |
oh well,... he'll get it eventually :) |
| 13:19 |
HardPhuck |
we all have |
| 13:19 |
maholtz|WORK |
hehe |
| 13:29 |
m4rtijn |
did u find out how to get the latest changed files maholtz|WORK ? |
| 13:30 |
maholtz|WORK |
well, i would say, i found a solution - i use find with -printf put mtime at the front, sort then, and parse the whole thing and crops the mtime again... |
| 13:30 |
m4rtijn |
hehe |
| 13:31 |
m4rtijn |
in windows u would be totally lost with such a request |
| 13:31 |
m4rtijn |
at least its somehow possible in linux |
| 13:31 |
maholtz|WORK |
yep, somehow:) |
| 13:31 |
maholtz|WORK |
what i did not tell you was, that i do it in typoscript... |
| 13:31 |
maholtz|WORK |
parse and split etc... |
| 13:32 |
maholtz|WORK |
not much fun |
| 13:32 |
maholtz|WORK |
anymore |
| 13:32 |
m4rtijn |
arrr |
| 13:32 |
maholtz|WORK |
should have written an extension, if i would have known what has to be done |
| 13:32 |
maholtz|WORK |
and now i added a jquery table sorter to it, yeah, that seems to work |
| 13:39 |
tf |
how can i make a languageselection in my direct_mail_subscription? the user can choose the prefered language and then his contactinformation are stored in the sysfolder for the prefered language. |
| 13:42 |
HardPhuck |
how do i set the relative path to an image in PI |
| 13:42 |
HardPhuck |
<img src="'.$this->extKey.'/res/accept.png" |
| 13:42 |
HardPhuck |
this doesn't work |
| 13:44 |
HardPhuck |
ah found it |
| 13:55 |
beli |
what was it? |
| 13:56 |
sorenmalling |
Hi, I've created a extension and inserted in on a page in my pagetree. When i want to move that page around in the pagetree, the installation returns a internal server error, is there anything that i need to be aware of, when developing extensions, that could cause this problem? |
| 13:56 |
ockmonix |
hi |
| 13:56 |
nkuttler |
hm, the "display content from this page" option doesn't work for me if i try to get content that's on a page on a different domain. any ideas? or is that supposed to be this way? |
| 13:58 |
ockmonix |
i have a page content element Image. is it possible to give the image tag a class attribute? |
| 14:09 |
maholtz|WORK |
did you check tsref for that? |
| 14:10 |
tf |
nkuttler: try this config.content_from_pid_allowOutsideDomain = 1 |
| 14:10 |
maholtz|WORK |
@sorenmalling: never heard about |
| 14:11 |
sorenmalling |
maholtz|WORK: Hm, i just had the same experience with a page not containing extensions, i think i need to contact the provider |
| 14:17 |
maholtz|WORK |
@HardPhuck: wb:) |
| 14:26 |
HardPhuck |
thanx :D |
| 14:26 |
HardPhuck |
i love this new irc client |
| 14:26 |
HardPhuck |
automatically sets away status :D |
| 14:27 |
maholtz|WORK |
lol |
| 14:27 |
beli |
HardPhuck: what was the probme? |
| 14:27 |
maholtz|WORK |
not bad |
| 14:27 |
beli |
s/probme/problem/ |
| 14:28 |
nkuttler |
tf: thanks |
| 14:28 |
HardPhuck |
beli: no problems |
| 14:29 |
beli |
HardPhuck: with your directory problem....the solution...i wanna know :) |
| 14:29 |
HardPhuck |
oh :) in the FE or BE? |
| 14:29 |
HardPhuck |
t3lib_extMgm::siteRelPath($this->extKey) |
| 14:30 |
HardPhuck |
this is for the frontend plugins |
| 14:30 |
beli |
hmmm yes |
| 14:30 |
beli |
tahts what you used |
| 14:31 |
HardPhuck |
yes |
| 14:31 |
beli |
but you said it didnt work |
| 14:31 |
HardPhuck |
<img src="'.$this->extKey.'/res/accept.png" |
| 14:31 |
HardPhuck |
this didnt work |
| 14:31 |
HardPhuck |
but then i've set: |
| 14:32 |
HardPhuck |
<img src="'.t3lib_extMgm::siteRelPath($this->extKey).'/res/accept.png" |
| 14:32 |
HardPhuck |
and this works |
| 14:32 |
beli |
aaaah |
| 14:32 |
beli |
ok, fine, got it |
| 14:32 |
beli |
$this->extKey was not existing... |
| 14:39 |
maholtz|WORK |
@sorenmalling: how far are you with your frontend dashboard? |
| 14:40 |
sorenmalling |
maholtz|WORK: Got the "technical drawing" (how to handle widgets and widgets types) and I'm beginning to build the whole handling part |
| 14:41 |
maholtz|WORK |
will you put it into the wiki? |
| 14:41 |
maholtz|WORK |
forge is quit slow atm |
| 14:42 |
sorenmalling |
Yep, sure :) Yes, forge has been very slow the last week |
| 14:42 |
maholtz|WORK |
i bet they installed flow3 on that server *g* |
| 14:42 |
sorenmalling |
lol! :D |
| 14:44 |
sorenmalling |
When ever Forge would like me to enter my project, and i got the text ready, ill be writing it to the wiki |
| 14:45 |
maholtz|WORK |
perfect:) |
| 14:45 |
maholtz|WORK |
i am interested in that project, but not have not enough time |
| 14:45 |
sorenmalling |
Cool :) I will keep it updated as much as possible |
| 15:00 |
ockmonix |
is it possible to give the img tag of the content element Image a class attribute? |
| 15:13 |
maholtz|WORK |
@ockmonix: i think so, check TSref->IMAGE for that |
| 15:15 |
ockmonix |
i have overwritten it in the css_styled_content setup |
| 15:15 |
m4rtijn |
hehe |
| 15:15 |
ockmonix |
tt_content.image.20.1.params = class="new" |
| 15:16 |
ockmonix |
but i only want it for image content elements not textpic |
| 15:17 |
maholtz|WORK |
so, image is copied into textpic, so you have to delete it in textpic via ...1.params > |
| 15:19 |
ockmonix |
i have tried that too but it doesn't work |
| 15:20 |
maholtz|WORK |
do it via ts-objectbrowser |
| 15:20 |
maholtz|WORK |
uh, where did you override it? |
| 15:20 |
maholtz|WORK |
typoscript setup, not in extension css_styled_content! |
| 15:21 |
ockmonix |
in the setup field of my extension template |
| 15:24 |
tPl0ch |
hi |
| 15:26 |
tPl0ch |
i have a configuration problem. I changed the value in 'fileDenyPattern' so I can create php files for Ajax Requests. But still Typo3 does not allow me to create these files. Is there anything else I have to do to get that working. I didin't find any other config that might help out |
| 15:26 |
tPl0ch |
edit: I cleared the config cache :) |
| 15:30 |
maholtz|WORK |
? cant you write an extension for that? using eId - why do you want to create dynamically php files? |
| 15:30 |
maholtz|WORK |
via backend? |
| 15:32 |
tf |
i have a problem with update and edit the direct_mail_subscription profil. when i subscribe to the newsletter, my categories are saved correct. but when i try to edit my profil, all categories are checked and the changes are not saved. |
| 15:32 |
tPl0ch |
maholtz|WORK: dunno how to write an extension for that, I just want to create a php-file thats acting as an ajax responder |
| 15:33 |
maholtz|WORK |
google typo3 eId should help a bit further |
| 16:00 |
jangla |
is there any way (i.e. a built in typo3 function) of doing a recursive query in an extension? Basically I want to return every page id that has a doktype of 4 that has a parent record of a given ID at some point above it in the tree i.e. it might be the direct parent or the parent of the parent or the parent of the parent of the parent etc. |
| 16:02 |
maholtz|WORK |
you can get the rootline of an page |
| 16:02 |
maholtz|WORK |
do not know the syntax, but its possible |
| 16:44 |
m4rtijn |
hmm, why doesnt the nickserv request an authentification anymore |
| 16:45 |
HardPhuck |
it requested it from me this morning |
| 16:45 |
beli |
0wned :) |
| 16:46 |
dinsdale07 |
tf, you are usinf fe self register for direct mail categories?? - did you compare the template for "create" and "edit" + "confirm"? |
| 16:47 |
tf |
dinsdale07: yes. i found the "bug". http://bugs.typo3.org/view.php?id=4776 |
| 16:48 |
tf |
the solution is in the notes |
| 16:48 |
ockmonix |
hey i want to delete the <div class="csc-textpic-text"> container, it should work with "tt_content.textpic.20.text.wrap >" but it doesn't. any ideas why? |
| 16:49 |
dinsdale07 |
tf, ah - well done, |
| 17:18 |
Crocus |
hi ther |
| 17:18 |
Crocus |
e |
| 17:23 |
m4rtijn |
hi |
| 19:34 |
turuburu |
hi guys |
| 19:52 |
jananne |
Hello, i wan't to have images automacly be resized to a surten width/height when uploading. I don't want images on my server that are like 5mb per image :). |
| 19:54 |
dinsdale07 |
jananne, limit the upload size in the form. As far as I'm aware It's easy to resize images inside typo3 but during the upload process they are usually not processed. |
| 19:55 |
krutt |
constands |
| 19:55 |
krutt |
constants |
| 20:00 |
jananne |
okay, thx for the info dinsdale07.. |
| 20:51 |
theconic |
hey guys, ich have such a simple question, but search for the answer for days now: |
| 20:51 |
theconic |
how can i check via TS whether a file exists or not? |
| 20:52 |
theconic |
in php it's if.file_exists(filename) |
| 20:52 |
theconic |
can someone give me a hint here? |
| 20:53 |
theconic |
i have looked through the tsref, but found nothing |
| 20:55 |
dinsdale07 |
I've never tried it but maybe |
| 20:55 |
theconic |
doesn't matter, i'll try it on my own, jsut need a hint... |
| 20:56 |
dinsdale07 |
10 = FILE; 10.file = path/file 10.file.ifEmpty = otherpath/file |
| 20:56 |
dinsdale07 |
just a guess really ... :-S |
| 20:57 |
dinsdale07 |
obviously a condition would be better but I don't know how to check for a file in a condition. |
| 20:58 |
kraftb |
hi ... |
| 20:58 |
theconic |
hm... |
| 20:59 |
kraftb |
the current wheater (climatical also as political) reminds me of this game: |
| 20:59 |
kraftb |
http://en.wikipedia.org/wiki/Transarctica |
| 20:59 |
theconic |
i already use if conditions |
| 20:59 |
kraftb |
it is about getting coal out of where you can ;) |
| 20:59 |
theconic |
but i don't find the solutions for checking files |
| 21:01 |
theconic |
i would have a solution if .typolink would only link if the file really exists (like it says in the tsref) but this is not true |
| 21:01 |
dinsdale07 |
have you checked on typo3wizards.com - sometimes they have nice solutions to common problems |
| 21:02 |
theconic |
one moment... |
| 21:02 |
theconic |
is typo3wizards.com offline??? |
| 21:03 |
dinsdale07 |
sorry, it's typo3wizard.com |
| 21:04 |
dinsdale07 |
kraftb, I think oil will peak first and with greater consequences. |
| 21:07 |
dinsdale07 |
theconic, have you looked into CASE? that might help as well. |
| 21:09 |
theconic |
no, typo3wizard says nothing to that topic ... |
| 21:09 |
theconic |
case? one moment |
| 21:09 |
dinsdale07 |
that looks much like an if clause. |
| 21:10 |
theconic |
don't find it at the moment... |
| 21:10 |
theconic |
where in the tsref? |
| 21:10 |
dinsdale07 |
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/8/17/ |
| 21:10 |
just2b |
anyone can help with a WS question? |
| 21:10 |
theconic |
thanks |
| 21:12 |
dinsdale07 |
what is WS? |
| 21:12 |
just2b |
workspace |
| 21:13 |
theconic |
dinsdale07: yes, this is something like if, but no chance to check files |
| 21:13 |
theconic |
... |
| 21:13 |
theconic |
just2b, do you know a way to check if a file exists or not? |
| 21:13 |
just2b |
is_file |
| 21:14 |
kraftb |
in php or TS ? |
| 21:14 |
kraftb |
check if a file exists: in php or via TypoScript ? |
| 21:14 |
dinsdale07 |
I think TS. |
| 21:15 |
kraftb |
hmm ... just checking if it exists is probably easy ... |
| 21:16 |
kraftb |
but this depends on - is it possibel that the file is "there" for one page request - and then is gone the next page request |
| 21:16 |
kraftb |
or is it quite rare that this file vanishes or gets created |
| 21:16 |
theconic |
kraftb: theoratically yes, but there is no cache anyway ;) |
| 21:17 |
kraftb |
the thing is - if you use conditions [] - then cache takes care of them ... |
| 21:17 |
theconic |
it is rare, but where is the problem? |
| 21:17 |
kraftb |
if you just make an ".if" via typoScript it won't get re-rendered when the file gets deleted .... |
| 21:17 |
kraftb |
but without cache there should be no problem ... |
| 21:17 |
kraftb |
wait. |
| 21:19 |
kraftb |
http://t3paste.org/I5uAd9 |
| 21:21 |
kraftb |
tell me if it works ... |
| 21:21 |
theconic |
the are two possibilities now: |
| 21:21 |
kraftb |
if you do not know how to adopt it you have to tell me exactly what you would like to achieve ... |
| 21:21 |
theconic |
1. i was too stupid to get this idea before |
| 21:22 |
theconic |
2. this doesn't work |
| 21:22 |
theconic |
i beg for the first choice |
| 21:22 |
theconic |
one minute... |
| 21:22 |
kraftb |
take a sleep after 8 hours of works - it will restore your "batteries" |
| 21:22 |
theconic |
no, i know how to use this... back in 5 minutes... |
| 21:23 |
kraftb |
at least thats what i do ... no man can work 8 hours during day, do usual housekeeping things, etc ... and then continue work in the evening without sleep ... |
| 21:23 |
kraftb |
coffee is no alternative - coffee is no replacement - coffee is the reason why things start to get more problematic ;) |
| 21:26 |
theconic |
kraftb: youre right twice! |
| 21:27 |
theconic |
i don't drink coffee neither, but i don't sleep enough, that could really be the problem |
| 21:30 |
theconic |
kraftb: no, this doesn't work |
| 21:31 |
theconic |
the element if always rendered, independent of the existence of the file |
| 21:31 |
theconic |
i mean it's always rendered |
| 21:31 |
theconic |
and i turned off the cache |
| 21:36 |
theconic |
hm, now it is not rendered anymore... |
| 21:36 |
theconic |
strange |
| 21:37 |
theconic |
kraftb: how can i secure that there is nothing cached |
| 21:37 |
theconic |
? |
| 21:38 |
dinsdale07 |
try to add &nocache=1 at the end of the URL |
| 21:38 |
theconic |
i set the page to nocache, it adds this automatically |
| 21:40 |
dinsdale07 |
then you should be fine. You can also disable it globally for development. Just add as UserTS: [globalVar = TSFE : beUserLogin> 0]; config.no_cache = 1; [global] |
| 21:40 |
just2b |
this belongs to the ts, not usertsconfig |
| 21:44 |
theconic |
kraftb: heyho, your script works, but only if it is a txt file like it seems |
| 21:45 |
theconic |
and i want to check a pdf file |
| 21:45 |
theconic |
doe someone know what 10 = FILE 10.file = fileadmin/file.pdf returns ??? |
| 21:47 |
theconic |
the TSREF says it "is read and inserted into the HTML-code" |
| 21:48 |
theconic |
but i can't imagine it reads a pdf document!? |
| 21:48 |
dinsdale07 |
I don't think that a .pdf file can be a cObject. T3 maybe can't work with that |
| 21:49 |
dinsdale07 |
There seems to be another limitation: The maximum filesize of documents to be read is set to 1024 kb internally! |
| 21:51 |
theconic |
right... |
| 21:52 |
theconic |
but what das it return if it's over 1MB? |
| 21:52 |
theconic |
let's find it out... |
| 21:53 |
theconic |
nice, typo3 also works that pdf format |
| 21:54 |
theconic |
hehe |
| 21:55 |
theconic |
1. typo3 includes the pdf into the page (of course this is absolutely nonsense, but to check the file it is enough ;) ) |
| 21:58 |
theconic |
2. if the file size is over 1MB, it returns nothing |
| 22:04 |
dinsdale07 |
did you solve your problem? |
| 22:10 |
kraftb |
theconic |
| 22:10 |
kraftb |
i would have another solution |
| 22:11 |
kraftb |
http://t3paste.org/LBGobd |
| 22:11 |
kraftb |
^ theconic |
| 22:13 |
theconic |
ok i try this, one moment |
| 22:16 |
theconic |
this method seems like not working |
| 22:17 |
theconic |
oh, you forgot the .cObject. ;) |
| 22:46 |
kraftb |
hmm ... there should be no cObject for this case ... |
| 22:48 |
kraftb |
http://t3paste.org/xsVrSE |
| 22:48 |
kraftb |
this should also work ... |
| 22:49 |
kraftb |
oh ... sorry ... found the problem |
| 22:50 |
kraftb |
http://t3paste.org/KN6hPA |
| 22:50 |
kraftb |
this one ... if it doesn't work i'll owe you a fruit-juice ... |
| 22:51 |
theconic |
sry was afk... |
| 22:51 |
theconic |
let's see... |
| 22:52 |
theconic |
ok i don't understand the code but let's try ;) |
| 22:56 |
theconic |
i don't know what the override should do there |
| 23:00 |
theconic |
no, seems like this doesn't work |
| 23:13 |
kraftb |
http://t3paste.org/kTZyWj |
| 23:13 |
kraftb |
theconic ... |
| 23:13 |
kraftb |
sorry ... missed the "filelink" before "path" ... |
| 23:14 |
kraftb |
altough I had some sleep in the evening it is also a long day for me now .... |
| 23:27 |
smux |
Hi all. I'm looking for ressources I want to build an ajax frontend menu. Did you see that already ? |
| 23:38 |
TaucherMK_ |
whats the need of an Ajax Frontend Menu? |
| 23:46 |
jsfan |
hello everyone :) |
| 23:52 |
kraftb |
http://t3paste.org/kTZyWj |