[TYPO3-english] DB error in BE.

2010-10-01 Thread Peter Klein
I have a problem in the BE of 2 of my sites.
When I use the "List" function on either the globe (it's a 4.2
installation) or the root page of the site, I get this error:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried
to allocate 16 bytes) in
/var/www/typo3/typo3_src-4.2.10/t3lib/class.t3lib_db.php on line 812

I have tried increasing the memory from 128Mb to 512Mb, but I still
get the same error.


I have also tried running the "DB Check/Check and update global
reference index" cron script (htdocs/typo3/cli_dispatch.phpsh), but it
fails too with this error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 40 bytes) in
/var/www/typo3/typo3_src-4.2.10/t3lib/class.t3lib_div.php on line 2353

does anyone have any ideas/suggestions on how to fix this?

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


Re: [TYPO3-english] PDF - typo3

2011-03-25 Thread Peter Klein
Another option would be to install SWFTools on the server, and then
write an extension that convertes the PDF to Flash using SWFTools.

SWFTools:
http://www.swftools.org/

Example PDF converted using SWFTools, and viewed using the default
SWFTools viewer:
http://www.swftools.org/flash/paper5.html

Improved Viewer:
http://www.crilance.com/zviewer/

--
Peter Klein

On Wed, 23 Mar 2011 16:17:38 +0100, Steffen Kamper 
wrote:

>Hi,
>
>there is no real proper way to do that. The iframe as Philipp mentioned 
>with the drawback of browser configuration.
>
>There is an alternative using scribd, i tested to implement that in own 
>page:
>http://dev.sk-typo3.de/concepts/documents/exceptional-php.html
>
>vg Steffen
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] mm_forum v1.92 and search

2011-03-28 Thread Peter Klein
I have installed mm_forum v1.92 on a TYPO3 v4.2.11, and everything
works as it should, except the search.

As administrator I can see/click the "Start indexing" link on the
searchform. (Checking the DB shows the words have been indexed.)

But when I try searching for one of the words I know is in the DB, I
get a "No results found"

Is the mm_forum search function broken in 1.92 or has I forgot to
setup something?

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


Re: [TYPO3-english] mm_forum v1.92 and search

2011-03-29 Thread Peter Klein
I finally found and fixed the problem (caused by mm_forum's retarded
way of assigning/checking usergrups)

--
Peter Klein

On Mon, 28 Mar 2011 16:30:15 +0200, Peter Klein 
wrote:

>I have installed mm_forum v1.92 on a TYPO3 v4.2.11, and everything
>works as it should, except the search.
>
>As administrator I can see/click the "Start indexing" link on the
>searchform. (Checking the DB shows the words have been indexed.)
>
>But when I try searching for one of the words I know is in the DB, I
>get a "No results found"
>
>Is the mm_forum search function broken in 1.92 or has I forgot to
>setup something?
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Limit Level of created pages

2011-08-29 Thread Peter Klein
Hi Urs.

Try "KB TSConfig Conditions"
http://typo3.org/extensions/repository/view/kb_tsconfig_cond/current/

If it doesn't work with TYPO3 v4.5, you could always sponsor Bernhard
to get him to make an update ;)

--
Peter Klein


On Mon, 29 Aug 2011 21:36:20 +0200, Urs Bräm  wrote:

>Hi
>
>is there a way to limit the number of levels where an editor can create 
>pages? Say, if I don't want my editors to go below the third level.
>
>The only post I've found about this is this one:
>http://lists.typo3.org/pipermail/typo3-english/2007-October/044066.html
>
>Urs
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] TYPO3 Mobile Content Elements

2011-09-01 Thread Peter Klein
Hi Andreas.

You could use WURFL http://wurfl.sourceforge.net/ , which is a list of
different devices and their scrensize etc.

There's a couple old TYPO3 WURFL extensions (they haven't been updated
for several years) you could use as base if you want to write a TYPO3
ext.

A while back I extended the WURFL2 extension, so it was possible to
get the screensize etc. passed to TypoScript. I also sendt my updates
to the original author, but he never released any updates..

--
Peter Klein




On Thu, 1 Sep 2011 15:15:28 +0700, Andreas Becker 
wrote:

>Hi
>
>Is there a way to define the size of specific content elements for the
>normal website 1000px and with another size for a mobile website with 320px
>width?
>
>Right now we managed to get all elements nicely floating and non fixed sized
>images resized for a mobile Template but i.e. YouTube Videos and some Jquery
>extensions have fixed width. Is it possible to check if the user agent in a
>browser 1000px or a mobile browser 320px width and those content elements
>get resized accordingly.
>
>Thanks
>
>Andi
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Adding additional Values to an already existing and necessary bodytag

2011-09-02 Thread Peter Klein
Hi Andi

Have you tried:

page.bodyTagAdd = onorientationchange="updateOrientation();"

--
Peter Klein


On Fri, 2 Sep 2011 12:16:08 +0700, Andreas Becker 
wrote:

>Hi
>
>Is it possible to add additional Values to an already existing bodytag
>without losing the original values of the bodytag?
>If yes how?
>
>i.e.
>
>
>> or
>> 
>> etc
>
>
>gets set depending on the used Column Settings. Those are predefined by the
>framework for templavoila
>
>To get now the thing running in mobiles we would need to add an additional
>condition:
>
>
>> or
>> 
>> etc
>
>
>Now one possibility would be to enter this value fixed into the already
>existing framework for templavoila extension but we would loose the
>possibility of updating.
>
>Also possible would be to enter always over and over again the value f1a and
>f1d etc to the bodytag via TS and rewrite the whole bodytag.
>
>But actually we are looking for a more comfortable way which would be to
>keep the already existing values inside a body tag "f1d" etc and only adding
>a new value to the bodytag "onorientationchange="updateOrientation();"
>
>How to do?
>
>Thanks for ideas
>
>Andi
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] TS: if + select + renderObj. Marker for tt_news items

2011-09-05 Thread Peter Klein
Hi Sören.
The only debug option available in TS is "debug" :)

It's used like this:

10 = TEXT
10.data = debug:data

It will then show what TS key/value that are available in the "10" TS
object.

--
Peter Klein

 
On Mon, 05 Sep 2011 15:27:56 +0200, Sören Kracker
 wrote:

>Besides that: how could I debug typoscript? It would be helpful to see, 
>what really happens in those if statements and what renderObj returns.
>
>Greetings
>
>Sören
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] howto enable tt_content subheader in actual TYPO3 version 4.5

2011-09-06 Thread Peter Klein
http://lists.typo3.org/pipermail/typo3-dev/2011-August/044109.html

--
Peter Klein

On Tue, 06 Sep 2011 14:15:31 +0200, Josef Florian Glatz
 wrote:

>Hello list,
>
>
>I've found a snippet howto re-enable the subheader for tt_content table 
>in be.
>
>t3lib_extMgm::addToAllTCAtypes("tt_content", 'subheader;;8', '', 
>'after:header');
>
>After this, my subheader is positioned at the "Extended" Tab. Can I 
>position this "new" field after the header? The syntax my snippet seems 
>to be outdated.
>
>thx in advance!
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] typoscript: count_HMENU_MENUOBJ & count_menuItems

2011-09-22 Thread Peter Klein

Hi Jaco.

Take a look here:
http://www.typo3wizard.com/en/snippets/menus/menu-with-recursive-count-of-subpages.html
http://www.typo3wizard.com/en/snippets/menus/numbered-menu.html

--
Peter Klein / Clio Online


On Thu, 22 Sep 2011 14:30:37 +1000, "jaco graaff"
 wrote:

>I am trying to do some manipulation with conditional statements (see my post 
>on multi-column menus)
>
>If I put the code at the bottom of this post in my menu-typoscript I get a 
>view of what each value means
>
>I can test the current object number in the linear/1 dimensional array of 
>menu items - in other words - independant of its level by using
>{register:count_HMENU_MENUOBJ}
>
>I can get the amount of items in a particular level by using
>{register:count_menuItems}
>
>but how do I get the current menu item within it's hierchy??
>
>example:
>
>
>
>menu 1- count_HMENU_MENUOBJ = 1, count_menuItems 
>= 2
>-menu 1.1-  cHM = 2, cmI = 4
>-menu 1.2-  cHM = 3, cmI = 4
>-menu 1.3-  cHM = 4, cmI = 4
>-menu 1.4-  cHM = 5, cmI = 4
>menu 2- cHM = 6, cmI = 2
>-menu 2.1-  cHM = 7, cmI = 3
>--menu 2.1.1-- cHM = 8, cmI = 3
>--menu 2.1.2-- cHM = 9, cmI = 3
>--menu 2.1.3-- cHM = 10, cmI = 3
>-menu 2.2-  cHM = 11, cmI = 3
>--menu 2.2.1-- cHM = 12, cmI = 2
>--menu 2.2.2-- cHM = 13, cmI = 2
>-menu 2.3-  cHM = 14, cmI = 3
>
>
>
>
>
>I need to know that [menu 2] is number 2 of a total of 2 and not number 6 of 
>a total of 14
>
>##---
>
>NO = 1
>NO {
>beforeWrap = b-
>
>before.cObject = TEXT
>before.cObject.field =
>before.cObject.dataWrap = test registers:current 
>count_HMENU_MENUOBJ:{register:count_HMENU_MENUOBJ} (current position of menu 
>item independant of level), count_menuItems:{register:count_menuItems}
>(menu items at this level), count_HMENU: {register:count_HMENU} (menus 
>on this page)
>
>afterWrap = -a
>
>}
>
>##---
> 
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Content periodicity

2009-11-11 Thread Peter Klein
Use Conditions.

--
Peter Klein


On Wed, 11 Nov 2009 14:49:14 +0100, "* k-do *" 
wrote:

>Hi list,
>
>I'd like to know if there is a way to show a content or another depending on
>the week.
>My case is that I need to show a lunch menu. Week1 I have to show menu1,
>week2 menu2, week3 menu1, week4 menu2...
>Also, this 2 menus are different in winter than in summer (there are two
>specific transition dates)
>
>Maybe this last requirement could be done by hand, by hiding and unhiding
>content. But it's better if it's authomatic. But the menus changing every
>week it is compulsory to do it autmaticly.
>
>How can I achieve this?
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Flexform: get default tt_content header

2009-11-14 Thread Peter Klein
Hi Aneta.

Check the bottom of this page, about the special register: values:
http://typo3.org/documentation/document-library/extension-manuals/templavoila/1.3.7/view/1/5/

--
Peter Klein


"Aneta Jaroslava"  wrote in message 
news:mailman.1.1258147762.17401.typo3-engl...@lists.typo3.org...
> Hi all,
>
>
> I have flexform as own contentelement.
> Now I want to get the default tt?content header to write to mz flexform 
> mainheadline.
> Manz things did not work to get header.
> I am out of ideas ...:-(
>
>  
> 
>   mainheadline
>   mainheadline
>   
> mainheadline
>   
>   input_g
>   
>  
> 
> 
>   
> input
> 48
> trim
>   
>   MAIN HEADLINE
> 
>   
>
>
> Number 1 to 4 are the things I treid, but did not work.
> Anybody help me please?!
>
> Thanks. 


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


Re: [TYPO3-english] Problem with crop and text field with line breaks

2009-11-18 Thread Peter Klein
Hej Brian.

The standard "crop" function doesn't respect HTML tags, so you should use 
stripHtml = 1 before you crop.

Or if you want to preserve the HTML formatting, use this extension:
http://typo3.org/extensions/repository/view/pmkhtmlcrop/current/

It has same parameters as the standard "crop" + more.

--
Peter Klein


"Brian Bendtsen"  wrote in message 
news:mailman.1.1258548266.20779.typo3-engl...@lists.typo3.org...
> Hi
>
> This is driving me crazy.
>
> Im using the crop function on a text field, but somehow the output gets 
> messed up if there is a linebreak in the text field.
>
> ts:
>
> lib.mytextfield.crop = 100 | ... | 1
>
> the output looks like this:
>
> 
>  
>   this is my text before linebreak 
>  <.../p>
> 
>
> The <.../p> is the problem here. What can I do to prevent this from 
> happening? Any help is appreciated
>
> /Brian 


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


Re: [TYPO3-english] click on image doesn't open the image

2009-11-19 Thread Peter Klein
Hi Ronald.

Does it happen in all browsers, or just in some (IE8)?

As IE8 have problems with standard click-enlarge. (A quick way to fix it is 
to install a lightbox extension.)

--
Peter Klein

"Ronald Wiplinger (Lists)"  wrote in message 
news:mailman.6506.1258600376.595.typo3-engl...@lists.typo3.org...
>I have an image on my web page, and clicking on it SHOULD enlarge it.
>
>
> However, it opens guide.opendns.com page (since I use opendns) and give
> into the search field:
>
> loa elmit infoindex
>
> If I  copy the link address of the picture:
> http://loa.elmit.info/index.php?eID=tx_cms_showpic&file=uploads%2Fpics%2FDream_Board_01.jpg&width=800m&height=600m&bodyTag=%3Cbody%20style%3D%22margin%3A0%3B%20background%3A%23fff%3B%22%3E&wrap=%3Ca%20href%3D%22javascript%3Aclose%28%29%3B%22%3E%20%7C%20%3C%2Fa%3E&md5=101bd22c4e5ec36b1cb9486d07ca1583
>
> then it works.
>
> How can I fix that?
>
>
> bye
>
> Ronald 


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


Re: [TYPO3-english] How to get all external links opening up inpmkshadowbox by default?

2009-11-19 Thread Peter Klein
Hi Andreas.

You can trick TYPO3 to add REL attributes to all your external links.

Insert this in CONSTANTS: (Notice the "incorrect" placement of the opening 
and closing quote chars!)
-- cut --
styles.content.links.extTarget = _blank" rel="shadowbox;width=600;height=400
-- cut --

I had to enable extTarget for RTE links too (maybe you need to do that 
too?), by inserting this in SETUP:
-- cut --
lib.parseFunc_RTE.tags.link.typolink.extTarget = 
{$styles.content.links.extTarget}
-- cut --

--
Peter Klein

"Andreas Becker"  wrote in message 
news:mailman.6538.1258603042.595.typo3-engl...@lists.typo3.org...
> Hi
>
> perhaps somebody could tell us how we could get all external links in a
> TYPO3 website always opening up in pmkshadowbox by default!
>
> Andi 


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


Re: [TYPO3-english] ttnews export to Indesign

2009-11-19 Thread Peter Klein
Hi Edward.

I have done several XML exports using the "DB check" BE tool.

1) Select DB check (Left menu)
2) Choose "Full search" in the 1st selectbox.
3) Choose "Advanced query" in the 2nd selectbox.

Now you can choose any TYPO3 table, and setup a query to get exactly the 
fields you want.
After you are done you can save your query setup. (And reuse it if you have 
the Task center/Actions (sys_action) plugin installed)

The result can be exported in either CSV or XML formats, with or without 
"translation" of special fields, such as timestamps which you can export 
either as unix timestamp or in readable format)

--
Peter Klein


"Edward Lenssen"  wrote in message 
news:mailman.1.1258634788.32741.typo3-engl...@lists.typo3.org...
> Hi,
>
> we want to export our products descriptions (ttnews records) through a XML 
> to Indesign to make a nice catalog in 6 languages.
>
> Somebody has experience with this?
>
> Edward Lenssen
>
> 


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


Re: [TYPO3-english] How to get all external links opening upinpmkshadowbox by default?

2009-11-19 Thread Peter Klein
Hi Andreas.

The extTarget parameter is normally used to set the target attribute, so if
you enter something like:
extTarget = _blank

Then TYPO3 will on the generated link "translate that into
target="_blank"

So by using the incorrect placement of quotes:
extTarget = _blank" rel="shadowbox;width=600;height=400

TYPO3 inserts it like:
target="_blank" rel="shadowbox;width=600;height=400"

and adds it's own starting and closing quotes fom the target attribute, so
the link will be valid. ;)

--
Peter Klein


- Original Message - 
From: "Andreas Becker" 
Newsgroups: typo3.english
To: "TYPO3 English" 
Sent: Thursday, November 19, 2009 6:00 PM
Subject: Re: [TYPO3-english] How to get all external links opening
upinpmkshadowbox by default?


> Hi Peter
> Looks like a IE Hack :-) with those incorrect placed quotes - funny, but
> if
> it is working it is really good . I will try it tomorrow
>
> Thanks a lot
>
> Andi
>
> On Thu, Nov 19, 2009 at 11:51 PM, Peter Klein  wrote:
>
>> Hi Andreas.
>>
>> You can trick TYPO3 to add REL attributes to all your external links.
>>
>> Insert this in CONSTANTS: (Notice the "incorrect" placement of the
>> opening
>> and closing quote chars!)
>> -- cut --
>> styles.content.links.extTarget = _blank"
>> rel="shadowbox;width=600;height=400
>> -- cut --
>>
>> I had to enable extTarget for RTE links too (maybe you need to do that
>> too?), by inserting this in SETUP:
>> -- cut --
>> lib.parseFunc_RTE.tags.link.typolink.extTarget =
>> {$styles.content.links.extTarget}
>> -- cut --
>>
>> --
>> Peter Klein
>>
>> "Andreas Becker"  wrote in message
>> news:mailman.6538.1258603042.595.typo3-engl...@lists.typo3.org...
>> > Hi
>> >
>> > perhaps somebody could tell us how we could get all external links in a
>> > TYPO3 website always opening up in pmkshadowbox by default!
>> >
>> > Andi
>>
>>
>> ___
>> 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] How to cut menu into two pieces

2009-11-21 Thread Peter Klein
Hi Tapio.

Check this:
http://www.typo3wizard.com/en/snippets/menus/dynamically-split-a-menu-in-2-parts.html

--
Peter Klein


"Tapio Markula"  wrote in message 
news:mailman.1.1258805401.16379.typo3-engl...@lists.typo3.org...
> Hi
>
> I would need to create a menu using COA, where
>
> lib.menu_1a has items 1-7
>
> and lib.menu_1b has rest items
>
> and
> lib.menu_1=COA
> lib.menu_1.10 < lib.menu_1a
> lib.menu_2.10 < lib.menu_1b
>
> How to set the cutting for those menu parts? 


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


Re: [TYPO3-english] Check if an area doesn't contain elements

2009-11-24 Thread Peter Klein
Hi Jeppe. You can use the "numRows" property to test if a DB lookup
returns something or not.

if.isTrue.numRows {
table = tt_content
select {
pidInList = [ID OF PAGE WITH CE ELEMENT]
where = uid=49
    }
}


--
Peter Klein

On Tue, 24 Nov 2009 09:44:26 +0100, Jeppe Donslund 
wrote:

>Hi,
>
>I would like to know if it is possible to check wether an area contains 
>elements or not.
>I have 3 elements in the bottom of my page. The user can but content in 
>these elements but if they leave it empty on a page TYPO3 should use 
>content from an other page using this TypoScript:
>
>lib.element1 = COA
>lib.element1 {
>10 = RECORDS
>10.dontcheckPid = 1
>10.tables = tt_content
>10.source = 49
>}
>
>I guess this is possible, I just don't know where to look for it :-)
>
>Regards
>Jeppe Donslund
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] TypoScript / PHP Interaction

2009-11-26 Thread Peter Klein
This is one of the best articles/tutorials for TYPO3. Great Work!!
I lost track of the number of times I have posted that url on the IRC chat, 
and in emails :)

IMO this should be integrated into one of the core documents.

--
Peter Klein

"Bernhard Kraft"  wrote in message 
news:mailman.1.1259253047.20934.typo3-engl...@lists.typo3.org...
> Hello !
>
> Just for anyone interested. I wrote a little documentation about how
> TypoScript and PHP interact with each other, and a little explanation of
> how COA and other content objects work and can get rendered from within
> PHP. If anyone is interested in some good read:
>
> http://wiki.typo3.org/index.php/TypoScript_-_PHP_Interaction
>
> PS: I always find it good to resize the browser to a more narrow size when
> reading such wiki entries, so you do not have very long lines.
>
>
> greets,
> Bernhard 


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


Re: [TYPO3-english] Automatic new dirs under fileadmin

2009-12-25 Thread Peter Klein
Hi Sancar.

You can create a file named "class.ext_update.php" in the root of your 
extension folder.
Then there will be an extra dropdown option called "UPDATE!", which triggers 
that script.
See TinyMCE RTE for an eample. 
http://typo3.org/extensions/repository/view/tinymce_rte/current/

--
Peter Klein


"Sancar Saran"  wrote in message 
news:mailman.13115.1261748908.615.typo3-engl...@lists.typo3.org...
> Hello everyone.
>
> My Extension needs some new dirs under fileadmin.
>
> Is there any way to automatically generate those dirs on extension setup 
> like
> sql tables ?
>
> Regards... 


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


Re: [TYPO3-english] Hide tabs on certain page type

2010-01-21 Thread Peter Klein
Hi Maria.
The manual is your friend ;)

TCEFORM.[tablename].[field] -  configures the field in TCEFORM for all 
types.
TCEFORM.[tablename].[field].types.[type] - configures the field in TCEFORM 
in case the 'type'-value of the field matches type.
http://typo3.org/documentation/document-library/core-documentation/doc_core_tsconfig/4.3.1/view/1/5/#id2506152

--

Peter Klein / Clio Online



"Maria van der Laan"  wrote in message 
news:mailman.1.1263916964.21945.typo3-engl...@lists.typo3.org...
> Am 19.01.2010, 16:51 Uhr, schrieb Steffen Gebert 
> :
>
>> Am 19.01.2010, 16:45 Uhr, schrieb Maria van der Laan :
>>
>>> Am 19.01.2010, 10:56 Uhr, schrieb Sebastian Gebhard 
>>> :
>>>
>>>> You can disable certain fields of any table with pageTS (page 
>>>> properties -> field "TSconfig").
>>>> Syntax is:
>>>> TCEFORM.*table*.*field*.disabled = 1
>>>>
>>>> So when you want to disable the Metadata Tab you need to disable all 
>>>> of the fields which are in this tab:
>>>>
>>>> TCEFORM.pages{
>>>>author.disabled = 1
>>>>author_email.disabled = 1
>>>>abstract.disabled = 1
>>>>keywords.disabled = 1
>>>>description.disabled = 1
>>>> }
>>>>
>>>
>>> Isn't it possible to define the shown rtabs in User or usergroup TS 
>>> config?
>>> Any suggestion?
>>
>> You can set the values also in UserTS, yes.
>>
>> Steffen
>
> Hey,
>
> you where faster ...
> :-D
>
> I did it that way:
>
>   # remove options tab
> page.TCEFORM.pages {
>   l18n_cfg.disabled = 1
>   module.disabled = 1
>   content_from_pid.disabled = 1
> }
>
> My problem now is, that I want this remove fields to be bound for a 
> certain page type:
>
> like remove options tab from type 1, remove access tab from page type 4 
> e.g. ...
>
> regards
>
> 


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


Re: [TYPO3-english] Hide tabs on certain page type

2010-01-22 Thread Peter Klein
It can be used with any field configured as "type" in TCA (Those are BE 
fields that prompts you to refresh the form)
So you could use it for tables like tt_news which also has a "type" field.

Do disable the complete "Access" tab on the shortcut page only, you disable 
all the fields in that Tab:

TCEFORM.pages {
# 4 is the num. value for the type used for shortcut pages
 starttime.types.4.disabled = 1
 endtime.types.4.disabled = 1
 fe_group.types.4.disabled = 1
 extendToSubpages.types.4.disabled = 1
}

--
Peter Klein / Clio Online

"Tyler Kraft"  wrote in message 
news:mailman.1.1264164536.17814.typo3-engl...@lists.typo3.org...
> Hi
>
>
>> Normally I don't see an author field in shortcut pages :-)
>
> It was just a quick example ;-)
>
>
>
>> I tried TCEFORM.pages.starttime.types.4.disabled = 1 and on shortcut 
>> pages the start-field on the Access tab disappeared!
>
> It does - I've looked for this same way to do that for a long time. I 
> think the explanation is quite unclear
>
> "TCEFORM.[tablename].[field].types.[type] - configures the field in 
> TCEFORM in case the 'type'-value of the field matches type."
>
>  as where it reads "'type'-value of the field matches type." I always 
> assumed it was referring to the [type]. Perhaps it should be changed to 
> read something along the lines of
>
> "TCEFORM.[tablename].[field].types.[type] - configures the field in 
> TCEFORM in case the 'type'-value of the doktype field matches type."
>
> Or can it be used in other ways that with just the doktype? Thoughts? 


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


Re: [TYPO3-english] How to secure download ?

2010-03-14 Thread Peter Klein
You could also try this one..
http://typo3.org/extensions/repository/view/pmkfdl/current/

--
Peter Klein / Clio Online


"J. Bakshi"  wrote in message 
news:mailman.336.1268500213.610.typo3-engl...@lists.typo3.org...
> On Sat, 13 Mar 2010 17:50:45 +0100
> "Philipp Gampe"  wrote:
>
>> Am 13.03.2010, 17:34 Uhr, schrieb J. Bakshi :
>>
>> > Dear list,
>> >
>> > I am seeking for a suggestion from you.
>> ...
>> > Or any extension which can create a random link for a single
>> > session only
>> >
>> > Any suggestion/idea is most welcome.
>>
>> this one?
>> http://typo3.org/extensions/repository/view/naw_securedl/current/
>>
>> Best regards
>
> Thanks a lot,
>
> I have read the documentation but no information that it generates random 
> links for a single session. Any how I'll give it a try definitely.
>
> Wish you a nice time.
> cheers.
> 


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


Re: [TYPO3-english] How to secure download ?

2010-03-15 Thread Peter Klein
The encrypted link is unique for the file/path + access groups.
If the link is on an access protected page, the link is only valid if
a user with the correct access is logged in to the system.

--
Peter Klein / Clio Online

On Mon, 15 Mar 2010 09:19:49 +0530, "J. Bakshi"
 wrote:

>On 03/15/2010 08:15 AM, J. Bakshi wrote:
>> On 03/14/2010 06:11 PM, Peter Klein wrote:
>>   
>>> You could also try this one..
>>> http://typo3.org/extensions/repository/view/pmkfdl/current/
>>>
>>> --
>>> Peter Klein / Clio Online
>>>
>>>
>>>   
>>> 
>> Thanks, this extension seems very promising for my purpose. I'll give it
>> a try along with naw_securedl
>>
>>
>>
>>   
>
>I have found "secure download" option of pmkfdl  actually encrypts the
>file path. One basic question here, Is that encrypted link is unique for
>a single session or always same for a particular  file path ?
>
>Thanks
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] How to secure download ?

2010-03-15 Thread Peter Klein
BTW: The extension has 2 hooks. You could use the 1st one (for
pre-processing the link) and add a random value to the link, so that
it generates unique paths.

--
Peter KLein / Clio Online

On Mon, 15 Mar 2010 09:19:49 +0530, "J. Bakshi"
 wrote:

>On 03/15/2010 08:15 AM, J. Bakshi wrote:
>> On 03/14/2010 06:11 PM, Peter Klein wrote:
>>   
>>> You could also try this one..
>>> http://typo3.org/extensions/repository/view/pmkfdl/current/
>>>
>>> --
>>> Peter Klein / Clio Online
>>>
>>>
>>>   
>>> 
>> Thanks, this extension seems very promising for my purpose. I'll give it
>> a try along with naw_securedl
>>
>>
>>
>>   
>
>I have found "secure download" option of pmkfdl  actually encrypts the
>file path. One basic question here, Is that encrypted link is unique for
>a single session or always same for a particular  file path ?
>
>Thanks
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] How to secure download ?

2010-03-20 Thread Peter Klein
Try

lib.parseFunc_RTE.tags.link.typolink.parameter.makeDownloadLink = secure

--
Peter Klein


"J. Bakshi"  wrote in message 
news:mailman.1778.1268989082.610.typo3-engl...@lists.typo3.org...
> Hello Peter KLein,
>
> I did some experiment with pmkfdl but I'm afraid to say that I have not
> got any success yet.  There are already some links ( associated with
> some mp3 ) coming from rte.  To encrypts the links I have added the
> following in the TS setup
>
> ``
> lib.parseFunc_RTE.tags.link.typolink.parameter.postUserFunc =
> tx_pmkfdl->makeDownloadLink
> `
>
> Additionally  I have added pmkfld at "include static" at template
> section. But still the links coming from rte is not encrypted yet. Could
> you please enlighten me to make it working ? typo3 version is 4.3
>
> Thanks
>
>
>
>
> On 03/15/2010 02:50 PM, J. Bakshi wrote:
>> Thanks a lot for the internals.
>>
>>
>>
>> On 03/15/2010 01:59 PM, Peter Klein wrote:
>>
>>> BTW: The extension has 2 hooks. You could use the 1st one (for
>>> pre-processing the link) and add a random value to the link, so that
>>> it generates unique paths.
>>>
>>>
> -- 
> ? ?
> 


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


Re: [TYPO3-english] How to secure download ?

2010-03-21 Thread Peter Klein
It works on my system, so something must be wrong in your setup.

--
Peter Klein

"J. Bakshi"  wrote in message 
news:mailman.1997.1269188104.610.typo3-engl...@lists.typo3.org...
> Thanks for your kind attention. I have tested with the config you 
> mentioned but still no success. Here is the complete TS setup where I am 
> doing my experiment with pmkfdl
>
> ``
>
> # Default PAGE object:
> page = PAGE
> page.10 = TEXT
>
> page.10.value = HELLO WORLD!
>
> lib.parseFunc_RTE.tags.link.typolink.parameter.makeDownloadLink = secure
>
> ``
>
> The links from rte still have
>
> http://192.168.1.1/test/fileadmin/manual.pdf
>
> the "include section" of template do have pmkfld
>
>
> On Sat, 20 Mar 2010 21:36:00 +0100
> "Peter Klein"  wrote:
>
>> Try
>>
>> lib.parseFunc_RTE.tags.link.typolink.parameter.makeDownloadLink =
>> secure
>>
>> --
>> Peter Klein 


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


Re: [TYPO3-english] Any Linux command to manually uncompress .t3x ?

2010-03-24 Thread Peter Klein
You can also try expandt3x.exe (Which is a compiled PHP script). 
You can download it here:
http://www.typo3.net/forum/list/list_post//61537/

--
Peter Klein / Clio Online



On Tue, 23 Mar 2010 15:41:51 +0530, "J. Bakshi"
 wrote:

>On 03/23/2010 03:32 PM, Peter Russ wrote:
>> --- Original Nachricht ---
>> Absender: J. Bakshi
>> Datum: 23.03.2010 10:28:
>>> Hello list,
>>>
>>> I wounder if there is any linux based command to uncompress the .t3x
>>> file manually. Is there any such command ?
>>> Please let me know.
>>>
>>> thanks
>>>
>> You can use this as a startung point for bash
>> http://www.typo3-jack.net/typo3-dev-lists-netfielders-de/5152-typo3-dev-decompress-t3x.html
>>
>>
>> Hopes that helps.
>>
>>
>
>thanks , now need to understand php ;-)
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Naming convention of record icons with hidden, start-/endtime status

2010-03-24 Thread Peter Klein
Hi Lee.

If you install the extension extdeveval, then it has a function to
display all possible icon combinations. 
http://typo3.org/extensions/repository/view/extdeveval/current/

---
Peter Klein / Clio Online

On Wed, 24 Mar 2010 14:48:13 +0100, Lee Perry 
wrote:

>Hi there,
>
>in my own extension I use some icons for the records in the TYPO3 
>backend. The standard icon is named 
>"icon_tx_[extension-key]_[table-name].gif" - and it works, but with the 
>extra fields "starttime" and "endtime" I will need some more icons, 
>because the default icon is not used.
>
>I don't know the naming convention for these cases 
>(starttime/endtime-access, hidden, ...), but I've realized the default 
>icon name gets a suffix like "*__h.gif" for a hidden record or 
>"*__t.gif" for a record, that is out of the start-/endtime.
>
>I tried some cases and got the following results:
>
>NowStart  Stop   IconDisabled
>
>24-3-2010  0  0  default false
>24-3-2010  15-1-2010  0  default false
>24-3-2010  15-4-2010  0  "__t"   true
>24-3-2010  0  15-2-2010  "__t"   true
>24-3-2010  0  15-4-2010  "__f"   false
>24-3-2010  15-1-2010  15-2-2010  "__t"   true
>24-3-2010  15-1-2010  15-4-2010  "__f"   false
>24-3-2010  15-4-2010  15-5-2010  "__tf"  true
>
>And when all these different records are hidden, the "h" will be added 
>to the suffix (f.e. "__ht").
>
>So when "t" means "true" - it is disabled because it's out of the time, 
>but what does "__tf" stands for?
>
>Please help me to understand the naming convention of the icons.
>
>
>Thanx and greetings,
>Lee
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] Is there any manual/tutorial for felogin?

2010-04-08 Thread Peter Klein

Im trying to setup the redirect by refere option of "felogin", but
can't get it to work.

And the manual is totally useless (Manual is for v 1.0.0, but current
extension is v1.3.0) and contain info about 10% of the config options.

Does anyone know of a better manual/tutorial for this extension?
Or is the best option just to discard "felogin", and write (yet
another) loginbox?

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


Re: [TYPO3-english] Is there any manual/tutorial for felogin?

2010-04-08 Thread Peter Klein
Hi Lars.

According to http://bugs.typo3.org/view.php?id=10327. then the bug
should have been fixed in v4.3.

--
Peter Klein / Clio Online


On Thu, 8 Apr 2010 03:47:18 -0500, Lars Houmark 
wrote:

>Hi Peter,
>
>> Im trying to setup the redirect by refere option of "felogin", but
>> can't get it to work.
>
>Please see RFC# 10327 in the core list or 
>http://bugs.typo3.org/view.php?id=10327.
>
>It seems login by referrer is broken in the current version. A patch is 
>available though, so maybe that can help you until a new version is 
>released - probably along with 4.3.3.
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Is there any manual/tutorial for felogin?

2010-04-08 Thread Peter Klein
The SVN version of the trunk is also v1.3.0 and contains the same
(unusable) manual.

Isn't there any tutorials describing the "redirectMode" option?
Should I specify more than one keyword?

I find it really anoying that extensions (felogin is not the only one)
included in the Core contains such limited/unfinished documentation.
:(

--
Peter Klein / Clio Online.


On Thu, 08 Apr 2010 11:18:23 +0200, Peter Klein 
wrote:

>Hi Lars.
>
>According to http://bugs.typo3.org/view.php?id=10327. then the bug
>should have been fixed in v4.3.
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Is there any manual/tutorial for felogin?

2010-04-08 Thread Peter Klein
Hi Bjoern.

Thanks for the link, it's a bit better (but not much)than the one that
is included in the extension.

But unfortunatly it still doesn't explain how the redirect options
works.

I guess I'll have to write my own loginbox then..

--
Peter Klein / Clio Online.




On Thu, 08 Apr 2010 15:02:03 +0200, Bjoern Pedersen
 wrote:

>Am 08.04.2010 11:40, schrieb Peter Klein:
>> The SVN version of the trunk is also v1.3.0 and contains the same
>> (unusable) manual.
>> 
>> Isn't there any tutorials describing the "redirectMode" option?
>> Should I specify more than one keyword?
>> 
>> I find it really anoying that extensions (felogin is not the only one)
>> included in the Core contains such limited/unfinished documentation.
>> :(
>> 
>
>As some has to do the work, documentation sometimes takes some time.
>Often you can find documentaion for new features in the wiki:
>
>http://wiki.typo3.org/index.php/Ext/felogin
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] Is there any manual/tutorial for felogin?

2010-04-12 Thread Peter Klein
Hi Steffen.

I FINALLY got the referer redirect to work (after doing some debugging on 
the felogin extension.)

Here's what to do:

Disregard the example of "typolinkLinkAccessRestrictedPages" and 
"typolinkLinkAccessRestrictedPages_addParams" in TSRef as that is wrong! 
(Where do I post such info?)
http://typo3.org/documentation/document-library/core-documentation/doc_core_tsref/4.3.1/view/1/6/#id2511740

TSRef says that the parameter of 
"typolinkLinkAccessRestrictedPages_addParams" should be:
config.typolinkLinkAccessRestrictedPages_addParams = 
&return_url=###RETURN_URL###&pageId=###PAGE_ID###

But felogin doesn't use the "return_url" (or "redirect_url" which is listed 
on some sites/blogs.) GET parameter when redirecting!
Nor does it use "This features uses the HTTP_REFERER server environment 
variable. It requires that the browser transmits this variable." as the 
manual/wiki says. (I can edit the wiki info if you want?)

Instead the GET parameter should be "referer", like this:
config.typolinkLinkAccessRestrictedPages_addParams = 
&referer=###RETURN_URL###

--
Peter Klein / Clio Online


"Steffen Müller"  wrote in message 
news:mailman.1.1270764272.9262.typo3-engl...@lists.typo3.org...

> The referrer redirects did not work for me. Since I don't have time to 
> trace this problem and open bugs, someone else needs to do that.
>
> -- 
> cheers,
> Steffen
>
> TYPO3 Blog: http://www.t3node.com/
> Microblog:  http://twitter.com/t3node 


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

Re: [TYPO3-english] Add or remove custom columns in Pagecontent

2010-04-20 Thread Peter Klein
Hi ??, Try this..
http://typo3.org/extensions/repository/view/zed_more_columns/current/

--
Peter Klein / Clio Online

"ktt"  wrote in message 
news:mailman.9707.1271682805.610.typo3-engl...@lists.typo3.org...
> Hello,
>
> I there any extension to add or remove custom columns in a TYPO3 
> Pagecontent (backend)/
>
> Regards,
> Ktt
>
>
> 


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


[TYPO3-english] EXT: felogin - What's the difference between the GET/POS and the REFERER options?

2010-04-20 Thread Peter Klein
In the SVN version of the felogin extension, the manual have been updated.
http://forge.typo3.org/repositories/revision/27/7317

The GET/POST option is described like this:
Redirect the visitor based on the GET/POST variable 'redirect_url'. If the 
TypoScript configuration config.typolinkLinkAccessRestrictedPages is set, 
the GET/POST parameter 'return_url' is used.
Example url:
http://www.domain.ext/index.php?id=12&redirect_url=http%3A%2F%2Fwww%2Edomain%2Eext%2Fdestiny%2F


And REFERER is is described like this (which is wrong):
The referer page is used for the redirect. This basically means that the 
user is sent back to the page he originally came from.

The REFERER option works exactly like the GET/POST method, only difference 
is that you need to set "referer" GET/POST variable instedad of 
"redirect_url".


So what's the difference between those 2 methods (except for the different 
spelling of the GET/POST variable) ?
(And if there's no difference, why not remove one of them?)

--
Peter Klein / Clio Online.


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


[TYPO3-english] Is there any reason why "mainpalette" is used for the "fe_group" field in tt_content?

2010-04-20 Thread Peter Klein
In the TCA setup for the tt_content table, the "fe_group" field is not 
placed correctly/directly under the "Access" tab.
(It looks like it's under the Access Tab , but it really isn't, as it's 
placed using the "mainpalette" option.)

$TCA['tt_content']['ctrl']['mainpalette'] = 15;
$TCA['tt_content']['palettes']['15']['showitem'] = 'fe_group';

This makes the "fe_group" field appear as the LAST field in the BE tabs 
,which is ok as long as the Access tab is the last one. But if an extension 
adds an extra Tab, then the "fe_group" field will be placed under that Tab, 
and not the Access Tab.

It looks like some "left overs" from before Tabs was introduced, as it might 
have made sence to place the "fe_group" field at the bottom of the page..

Wouldn't it be better to move the "fe_group" directly under the Access Tab?

--
Peter Klein / Clio Online 


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


Re: [TYPO3-english] EXT: felogin - What's the difference between the GET/POS and the REFERER options?

2010-04-22 Thread Peter Klein
Hi Jigal.

Thanks for explaining the differences. That helped me a lot!

--
Peter Klein / Clio Online.

"Jigal van Hemert"  wrote in message 
news:mailman.10059.1271785570.610.typo3-engl...@lists.typo3.org...
> Peter Klein wrote:
>> The GET/POST option is described like this:
>> Redirect the visitor based on the GET/POST variable 'redirect_url'. If 
>> the TypoScript configuration config.typolinkLinkAccessRestrictedPages is 
>> set, the GET/POST parameter 'return_url' is used.
>> Example url:
>> http://www.domain.ext/index.php?id=12&redirect_url=http%3A%2F%2Fwww%2Edomain%2Eext%2Fdestiny%2F
>>
>>
>> And REFERER is is described like this (which is wrong):
>> The referer page is used for the redirect. This basically means that the 
>> user is sent back to the page he originally came from.
>>
>> The REFERER option works exactly like the GET/POST method, only 
>> difference is that you need to set "referer" GET/POST variable instedad 
>> of "redirect_url".
>
> It only seems like this! You could 'fake' a referrer by setting the 
> GET/POST variable, but normally it's initialised by the login form.
> In felogin_pi1::showLogin() around line 466 the variable is initialized 
> with HTTP_REFERER.
> This is transferred from the login form to the felogin plugin after the 
> login to handle the redirect.
> After the login the felogin plugin would see the login form as the 
> referrer and we need the referrer of the login form to redirect to. That's 
> why it's transferred as a GET/POST variable.
>
> HTH
>
> -- 
> Jigal van Hemert
> skype:jigal.van.hemert
> msn: ji...@xs4all.nl
> http://twitter.com/jigalvh 


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


Re: [TYPO3-english] Is there any reason why "mainpalette" is used for the "fe_group" field in tt_content?

2010-04-22 Thread Peter Klein
Hi Lars.

I don't subscribe to the corelist, but I have added a bugreport now..
http://bugs.typo3.org/view.php?id=14185

--
Peter Klein /Clio Online.

"Lars Houmark"  wrote in message 
news:mailman.1.1271823037.21105.typo3-engl...@lists.typo3.org...
> Hi Peter,
>
>> Wouldn't it be better to move the "fe_group" directly under the Access 
>> Tab?
>
> I agree, please create a bug report in the bug tracker, and post a RFC on 
> the core list including a patch. Should go into both 4.3 and 4.4.
>
> -- 
> Lars Houmark
> 


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


Re: [TYPO3-english] Creating an XML for pageflipper per tt_news record

2010-04-30 Thread Peter Klein
Hi Bert.

TSFE:lastImageInfo| is only available AFTER you have processed an IMAGE 
object.
If you change your TS, so that instead of using dataWrap, you create an 
IMAGE object, then it should work.

If you just need to return the url and do the wrapping yourself, you can 
create an IMG_RESOURCE object.
Then the width/height info is stored in TSFE:lastImgResourceInfo|

--
Peter Klein / Clio Online

"Bert Hiddink [BENDOO e-work solutions]"  wrote in 
message news:mailman.1.1272633231.15348.typo3-engl...@lists.typo3.org...
> Hello!
>
> Please see the code below. I managed to create an XML file of the images 
> per tt_news-record and then feed this XML into a page-flipper.
> Works fine!
>
> However, when I create the mark-up for an image, I need to add some 
> additional info, besides the NAME of the image.
>
> In particular, I need to pass the width and height of each image.
> The needed output is:
>   
> height="height_if_this_image" />
>   
>
>
> I know this is stored in:
> 20 = TEXT
> 20.data = TSFE:lastImageInfo|0
>
> and
>
> 20 = TEXT
> 20.data = TSFE:lastImageInfo|1
>
> However, I do not see how I can do this. I tried:
>
> xmlmegazine.30 = RECORDS
> xmlmegazine.30 {
> dontCheckPid = 1
> tables = tt_news
> source.data = GPvar:tx_ttnews|tt_news
> conf.tt_news = TEXT
> conf.tt_news {
>   field = image
>split {
>token=,
>cObjNum = 1
>1.current = 1
>1.dataWrap (
>   
>   height="{TSFE:lastImageInfo|1}"/>
>   
>
> )
>   }
> }
> conf.tt_news.required = 1
> }
>
>
> ...but this returns an empty value:
>  
> 
> 
>  
>   
>   height=""/>
>   
>   height=""/>
>
>   
>   height=""/>
>   
> 
> 
>
> Any ideas here?
>
> Thanks in advance
>
> Bert
>
>
>
>
>
>
>
>
>
>
> 


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


Re: [TYPO3-english] Creating an XML for pageflipper per tt_news record

2010-05-03 Thread Peter Klein
Hi Bert.

It's the "conf.tt_news" part you need to make as an IMG_RESOURCE, and not as 
a TEXT object.
(Maybe you should make it a COA object, so that you can place the 
IMG_RESOURCE and your 20 and 30 parts inside the same context..)

--
Peter Klein / Clio Online

"Bert Hiddink [BENDOO e-work solutions]"  wrote in 
message news:mailman.1.1272900729.19581.typo3-engl...@lists.typo3.org...
> Hello Peter!
>
> Thanks for your reply and explaination:
>
> On 5/1/10 12:36 AM, Peter Klein wrote:
>> Hi Bert.
>>
>> TSFE:lastImageInfo| is only available AFTER you have processed an IMAGE
>> object.
>> If you change your TS, so that instead of using dataWrap, you create an
>> IMAGE object, then it should work.
>>
>> If you just need to return the url and do the wrapping yourself, you can
>> create an IMG_RESOURCE object.
>> Then the width/height info is stored in TSFE:lastImgResourceInfo|
>
> Thanks to your tip, I could get height and width out of
> the object xmlmegazine.10.15, that is, when I define the PDF
> in a static manner, these are printed under xmlmegazine.10.20
> and xmlmegazine.10.30 respectively.
>
> So far, so good.
>
> However, I would like to get the height and width of the PDF which is 
> linked to a tt_news record (see xmlmegazine.10.10).
> This works fine, that is, this TS-block gives me back the name of the 
> PDF-file
>
> However, I do not manage to create an IMAGE-object or IMG_RESOURCE-object 
> out of the xmlmegazine.10.10.
>
> I thought this may be simply done with:
>   15 = IMG_RESOURCE
>   15.file < 10
> ...but this did not work. Any ideas what I am doing wrong here?
>
> Thanks in advance!!!
>
> Bert
>
>
> 
> xmlmegazine.10 = COA
> xmlmegazine.10 {
>   10 = RECORDS
>   10 {
> dontCheckPid = 1
> tables = tt_news
> source.data = GPvar:tx_ttnews|tt_news
> conf.tt_news = TEXT
> conf.tt_news.field = image
> conf.tt_news.required = 1
>   }
>   10.wrap = uploads/media/
>
>
>   # This works:
>   #15 = IMG_RESOURCE
>   #15.file = uploads/media/memoria_institucional_2009.pdf
>
>   # This does not works:
>   15 = IMG_RESOURCE
>   15.file < 10
>
>   20 = TEXT
>   20.data = TSFE:lastImgResourceInfo|0
>   20.noTrimWrap  = | pageheight="|"  |
>
>   30 = TEXT
>   30.data = TSFE:lastImgResourceInfo|1
>   30.noTrimWrap  = | pagewidth="|"> |
> }
>  


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


Re: [TYPO3-english] calculation with values from register

2010-05-11 Thread Peter Klein
Hi Rob.

You need to put the "Math part" in a "cObject", so that the "prioCalc"
sees numeric values and not "register:blahblah"..

Just change the 40 part of your script to this, and it should work.

-- cut --
40 = TEXT
40.cObject = TEXT
40.cObject.dataWrap = {register:20}+{register:21}
40.prioriCalc = 1
    40.wrap = SUM=|
-- cut --

--
Peter Klein / Clio Online

On Tue, 11 May 2010 11:41:52 + (UTC), Rob De Vries 
wrote:

>Hello,
>
>I'm trying to do a very simple calculation with values i've added to the 
>register :
>
>lib.output = COA
>lib.output {
>   20 = LOAD_REGISTER
>   20 { 
>   20.numRows.table = tt_content 
>   20.numRows.select.pidInList = this
>   20.numRows.select.where = tx_templavoila_ds = 2 AND deleted=0 AND 
>hidden=0
>   
>   }
>   
>   21 = LOAD_REGISTER
>   21 {
>   21.numRows.table = tt_content 
>   21.numRows.select.pidInList = this
>   21.numRows.select.where = tx_templavoila_ds = 5 AND deleted=0 AND 
>hidden=0
>   }
>   
>   22 = LOAD_REGISTER
>   22 {
>   22.numRows.table = tt_content 
>   22.numRows.select.pidInList = this
>   22.numRows.select.where = tx_templavoila_ds = 6 AND deleted = 0 AND 
>hidden=0
>   }
>   
>   40 = TEXT
>   40.value = {register:20}+{register:21}
>   40.insertData=1
>   40.prioriCalc = 1
>   40.wrap = SUM=|
>}
>
>output:  SUM=0
>
>I don't understand why the outpuy is 0
>
>register:20 = 1 and register:21 = 3 so the output need to be 4. 
>
>any suggestions on what i'm doing wrong ?
>
>tnx
>Rob
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english