From cray at mass-media.net Wed Aug 1 02:27:03 2007
From: cray at mass-media.net (Cray Flatline)
Date: Wed, 01 Aug 2007 03:27:03 +0300
Subject: [TYPO3] add images to a standard sitemap
Message-ID: <46AFD357.6010601@mass-media.net>
I need to add to every link of standard sitemap it's own image. Does
somebody did such thing already? (%
--
W BR, Cray Flatline
From cray at mass-media.net Wed Aug 1 02:32:33 2007
From: cray at mass-media.net (Cray Flatline)
Date: Wed, 01 Aug 2007 03:32:33 +0300
Subject: [TYPO3] add id to body tag with TS
Message-ID: <46AFD4A1.20802@mass-media.net>
I need to add to every page's body tag it's own id. I try to make such way:
page.bodyTagCObject = HTML
page.bodyTagCObject.value.field = alias//uid
page.bodyTagCObject.value.wrap =
But it doesn't work
Below is my TS Setup. Please help me somebody
################################################################################
#
# Auto-parser and template main difinitions
#
plugin.tx_automaketemplate_pi1.content = FILE
[globalVar = TSFE:id=14,TSFE:id=41,TSFE:id=42,TSFE:id=43,TSFE:id=44]
plugin.tx_automaketemplate_pi1.content.file =
fileadmin/templates/global/index.html
[else]
plugin.tx_automaketemplate_pi1.content.file =
fileadmin/templates/global/internal.html
[end]
# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
plugin.tx_automaketemplate_pi1.elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
UL.all = 1
DIV.all = 1
LI.all = 1
TD.all = 1
TABLE.all=1
}
# Prefix all relative paths with this value:
plugin.tx_automaketemplate_pi1.relPathPrefix = fileadmin/templates/global/
################################################################################
#
# Mapping parts
#
temp.leftcolumn = CONTENT
temp.leftcolumn {
table = tt_content
select {
pidInList = this
orderBy = sorting
where = colPos = 1
languageField = sys_language_uid
}
}
temp.rightcolumn = CONTENT
temp.rightcolumn {
table = tt_content
select {
pidInList = this
orderBy = sorting
where = colPos = 3
languageField = sys_language_uid
}
}
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the -tags
workOnSubpart = DOCUMENT_BODY
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.mainmenu < temp.mainmenu
subparts.topmenu < temp.topmenu
subparts.footermenu < temp.footermenu
subparts.leftmenu < temp.leftmenu
subparts.barleft < temp.bannerleft
# Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get
subparts.leftcontent < temp.leftcolumn
subparts.rightcontent < temp.rightcolumn
subparts.PAGE_UID = TEXT
subparts.PRINT_PAGE < temp.PRINT
subparts.PAGE_UID.field = uid
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the -tags
workOnSubpart = DOCUMENT_HEADER
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.bodyTagCObject = HTML
page.bodyTagCObject.value.field = alias//uid
page.bodyTagCObject.value.wrap =
# Copying the content from TEMPLATE for -section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for -section:
page.headerData.10 < temp.headTemplate
--
W BR, Cray Flatline
From paprikb at gmail.com Wed Aug 1 08:50:32 2007
From: paprikb at gmail.com (Patrik)
Date: Wed, 1 Aug 2007 08:50:32 +0200
Subject: [TYPO3] TMENU - gifbuilder
Message-ID: <6b195c9e0707312350y3a302ec1webb1d721f4add64@mail.gmail.com>
I have a problem about the TMENU, which has an image (before of text), is
generated with GIFBUILDER.
The image must have a class ("imgmenu"). How add a class in typoscript of
the menu?
Code:
1 = TMENU
1 {
NO.allWrap = |
NO {
beforeImg = GIFBUILDER
beforeImg {
#params = class="imgmenu"
XY = 7,22
10 = IMAGE
10.file = GIFBUILDER
10.file {
#params = class="imgmenu"
XY = 7,22
backColor.data = field:uid
backColor.preUserFunc =
tx_fmcolormenue_pi1->getColor
}
}
ATagParams = class="linktext"
stdWrap.case = upper
}
ACT < .NO
ACT = 1
}
Best regards,
Patrik
From headhunterxiii at yahoo.ca Wed Aug 1 09:29:58 2007
From: headhunterxiii at yahoo.ca (Tyler Kraft)
Date: Wed, 01 Aug 2007 08:29:58 +0100
Subject: [TYPO3] add id to body tag with TS
In-Reply-To:
References:
Message-ID:
Try this - I think it should work for you.
page = PAGE
page.typeNum = 0
page.bodyTag >
page.bodyTagCObject = HTML
page.bodyTagCObject.value.field = alias//uid
page.bodyTagCObject.value.wrap =
Cray Flatline wrote:
>
> I need to add to every page's body tag it's own id. I try to make such way:
>
> page.bodyTagCObject = HTML
> page.bodyTagCObject.value.field = alias//uid
> page.bodyTagCObject.value.wrap =
>
> But it doesn't work
>
> Below is my TS Setup. Please help me somebody
>
> ################################################################################
>
> #
> # Auto-parser and template main difinitions
> #
>
> plugin.tx_automaketemplate_pi1.content = FILE
> [globalVar = TSFE:id=14,TSFE:id=41,TSFE:id=42,TSFE:id=43,TSFE:id=44]
> plugin.tx_automaketemplate_pi1.content.file =
> fileadmin/templates/global/index.html
> [else]
> plugin.tx_automaketemplate_pi1.content.file =
> fileadmin/templates/global/internal.html
> [end]
>
> # Here we define which elements in the HTML that
> # should be wrapped in subpart-comments:
> plugin.tx_automaketemplate_pi1.elements {
> BODY.all = 1
> BODY.all.subpartMarker = DOCUMENT_BODY
> HEAD.all = 1
> HEAD.all.subpartMarker = DOCUMENT_HEADER
> HEAD.rmTagSections = title
> UL.all = 1
> DIV.all = 1
> LI.all = 1
> TD.all = 1
> TABLE.all=1
> }
>
> # Prefix all relative paths with this value:
> plugin.tx_automaketemplate_pi1.relPathPrefix = fileadmin/templates/global/
>
>
> ################################################################################
>
> #
> # Mapping parts
> #
>
>
> temp.leftcolumn = CONTENT
> temp.leftcolumn {
> table = tt_content
> select {
> pidInList = this
> orderBy = sorting
> where = colPos = 1
> languageField = sys_language_uid
> }
> }
>
> temp.rightcolumn = CONTENT
> temp.rightcolumn {
> table = tt_content
> select {
> pidInList = this
> orderBy = sorting
> where = colPos = 3
> languageField = sys_language_uid
> }
> }
>
>
> temp.mainTemplate = TEMPLATE
> temp.mainTemplate {
> # Feeding the content from the Auto-parser to the TEMPLATE cObject:
> template =< plugin.tx_automaketemplate_pi1
> # Select only the content between the -tags
> workOnSubpart = DOCUMENT_BODY
>
> # Substitute the ###menu_1### subpart with dynamic menu:
> subparts.mainmenu < temp.mainmenu
> subparts.topmenu < temp.topmenu
> subparts.footermenu < temp.footermenu
> subparts.leftmenu < temp.leftmenu
> subparts.barleft < temp.bannerleft
>
> # Substitute the ###content### subpart with some example content:
> subparts.content < styles.content.get
> subparts.leftcontent < temp.leftcolumn
> subparts.rightcontent < temp.rightcolumn
>
> subparts.PAGE_UID = TEXT
> subparts.PRINT_PAGE < temp.PRINT
> subparts.PAGE_UID.field = uid
> }
>
>
> # Main TEMPLATE cObject for the HEAD
> temp.headTemplate = TEMPLATE
> temp.headTemplate {
> # Feeding the content from the Auto-parser to the TEMPLATE cObject:
> template =< plugin.tx_automaketemplate_pi1
> # Select only the content between the -tags
> workOnSubpart = DOCUMENT_HEADER
> }
>
>
> # Default PAGE object:
> page = PAGE
> page.typeNum = 0
>
> page.bodyTagCObject = HTML
> page.bodyTagCObject.value.field = alias//uid
> page.bodyTagCObject.value.wrap =
>
> # Copying the content from TEMPLATE for -section:
> page.10 < temp.mainTemplate
> # Copying the content from TEMPLATE for -section:
> page.headerData.10 < temp.headTemplate
>
>
From ps at todesign.pl Wed Aug 1 10:04:52 2007
From: ps at todesign.pl (Paweł Stanisławczuk)
Date: Wed, 1 Aug 2007 10:04:52 +0200
Subject: [TYPO3] 404 when I want to edit plugin content
Message-ID:
Hi,
After moving my TYPO3 to new serwer something went wrong and now I can't
edit any plugin content, when I click on edit icon I get 404 page. Anyone
had this?
Regards
Pawe? Stanis?awczuk
From bp at jung-newmedia.de Wed Aug 1 10:21:21 2007
From: bp at jung-newmedia.de (Jung New Media)
Date: Wed, 01 Aug 2007 10:21:21 +0200
Subject: [TYPO3] sr_freecap in typo3 standard form
In-Reply-To:
References:
Message-ID:
Hi Fabian,
I have got this problem last week too. See how the Problem was dissolved.
----
Ich habe das gleiche Problem gehabt. Hier ist die L?sung.
http://www.blog.jung-newmedia.de/typo3/typo3-standard-formular-gegen-spam-schuetzen/
Bei Fragen einfach melden
es gr??t Dich
Balazs
www.jung-newmedia.de
Fabian Seltmann schrieb:
> Hi at all,
>
> I want to include the extension sr_freecap into a typo3 standard contact
> form. Can anybody help me? Or is there another captcha extension which
> work with a typo3 standard contact form?
>
> Thanks.
>
> Best regards
>
> Fabian
From dominik.smatana at gmail.com Wed Aug 1 10:50:55 2007
From: dominik.smatana at gmail.com (Dominik Smatana)
Date: Wed, 1 Aug 2007 10:50:55 +0200
Subject: [TYPO3] how to generate link
In-Reply-To:
References:
Message-ID:
Hello Jan,
thanks for help. I checked typolink() function and I've found this method:
$this->cObj->getTypoLink_URL($id, $urlParameters, $target)
It generates page url I need, but it don't work with RealURL enabled
(maybe problem is in my configuration, I don't know...).
Dominik Smatana
PS: Thank you for publishing CoolURI - it's really cool extension :)
On 31/07/07, Jan Bednarik wrote:
> Hi,
>
> > From my TS template I call some user functions located in
> > user_function class. Is there any function/method in TYPO3 API to
> > generate correct (RealURL, CoolURI...) link to page specified with ID
> > (plus optional get parameters)?
>
> Try
>
> $GLOBALS['TSFE']->cObject->typolink('text',Array('parameter'=>$pageid));
>
> (maybe there's cObj instead of cObject - try)
>
> --
> Jan Bednarik
> www.bednarik.org - web about Typo3 in czech
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
From info at bednarik.org Wed Aug 1 10:56:50 2007
From: info at bednarik.org (Jan Bednarik)
Date: Wed, 01 Aug 2007 10:56:50 +0200
Subject: [TYPO3] how to generate link
In-Reply-To:
References:
Message-ID:
> $this->cObj->getTypoLink_URL($id, $urlParameters, $target)
This is what you can use in extension. You can't use it this way in user
functions called via PHP_SCRIPT.
> It generates page url I need, but it don't work with RealURL enabled
> (maybe problem is in my configuration, I don't know...).
If RealURL/CoolUri is enabled then it generates nice URIs. Definitely
there's a problem with your configuration.
> PS: Thank you for publishing CoolURI - it's really cool extension :)
Thanks :)
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
From elmar07 at googlemail.com Wed Aug 1 11:06:37 2007
From: elmar07 at googlemail.com (Elmar Hinz)
Date: Wed, 01 Aug 2007 11:06:37 +0200
Subject: [TYPO3] how to generate link
References:
Message-ID:
Dominik Smatana wrote:
> Hello,
> I need a help...
>
> From my TS template I call some user functions located in
> user_function class. Is there any function/method in TYPO3 API to
> generate correct (RealURL, CoolURI...) link to page specified with ID
> (plus optional get parameters)?
>
> Thanks.
>
> Dominik Smatana
> dominik.smatana at gmail.com
Hi Dominik,
in this class you can find all answers you need, but it requires some PHP
knowlege to read it.
http://typo3.org/extensions/repository/view/lib/0.0.23/info/class.tx_lib_link.php/
Regards
Elmar
From mangoo at wpkg.org Wed Aug 1 11:29:04 2007
From: mangoo at wpkg.org (Tomasz Chmielewski)
Date: Wed, 01 Aug 2007 11:29:04 +0200
Subject: [TYPO3] migrating custom extensions from 3.7.0 setup to 4.1.1 - how?
Message-ID: <46B05260.6050901@wpkg.org>
As I'm making a totally new layout for a website, I thought it would be
a good time to migrate it from TYPO3 3.7.0 to 4.1.1.
Most easy parts are done, but I'm not sure how I can migrate some custom
extensions from 3.7.0 to 4.1.1. Obviously, copying the data from
typo3conf/ext/* is not enough, and some other changes are needed.
Does anyone have any hints on what else should I look at (perhaps some
database stuff, but I have no clue).
--
Tomasz Chmielewski
http://wpkg.org
From vikram at fivee.in Wed Aug 1 11:40:04 2007
From: vikram at fivee.in (Vikram Mandal)
Date: Wed, 01 Aug 2007 15:10:04 +0530
Subject: [TYPO3] Advanced userFunc Condition
In-Reply-To:
References:
Message-ID:
Hi,
Nick Weisser wrote:
> Hi there,
>
> I'm trying to use the following TypoScript condition in my TypoScript setup:
>
> # submenu only shows if more than one subpage
> # exists on the next level of the page tree
> [userFunc = user_match(checkLevels)]
> lib.submenu2 = HMENU
> [...]
> [end]
>
> I've added the following user function to typo3conf/localconf.php as
> suggested by TSref:
>
> function user_match($cmd) {
> switch($cmd) {
> case 'checkLevels':
> if ("PID has more then one subpage") {
> return true;
> }
> break;
> }
> }
>
> I wonder if class.t3lib_treeview.php's getCount method can do the trick?
>
> t3lib_treeView->getCount($uid)
>
> How would I add this method to the user function above? Is this at all
> possible or does this require its own extension?
You can probably create a user function is some script and perform the
check in the database.
Not sure if t3lib_treeView->getCount($uid) will work as this has
references to BE user objects.
function init($clause='', $orderByFields='') {
$this->BE_USER = $GLOBALS['BE_USER']; // Setting BE_USER by default
regards,
Vikram
From mortenkjems at gmail.com Wed Aug 1 11:54:59 2007
From: mortenkjems at gmail.com (Morten Kjems)
Date: Wed, 01 Aug 2007 11:54:59 +0200
Subject: [TYPO3] RealURL configuration skipping levels in the page tree
In-Reply-To:
References:
Message-ID:
Thanks for helping out Dmitry.
English is not the default language so I guess it will have to stay.
Then you write: >If 'categoryname' is a postVar, you cannot skip
'category', you
> ca only give it shorter name in configuration.
The URL:
http://mydomain.com/en/category/categoryname/articletype/pagetitle.html
If I understand the documentation correctly both 'category' and
'categoryname' are prevars. They are normal pages and the and the URL
reflects the hierarchy of the page three. In that case it should be
possible to skip 'category' in the URL.
But How?
I tried using the function 'excludePageIds', but it just keeps certain
pages from being rendered by realURL.
It might be that I should not use the tx_realurl_advanced class at all?
I really hope that someone can help me here.
Any suggestions on what to focus on are most welcome.
Here is my setup:
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
),
'redirects' => array(),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => 1,
),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'dk' => '0',
'en' => '1',
),
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 7,
'rootpage_id' => 2,
),
'fixedPostVars' => array(),
'postVarSets' => array(
'_DEFAULT' => array(
// news archive parameters
'archive' => array(
array(
'GETvar' => 'tx_ttnews[year]' ,
),
array(
'GETvar' => 'tx_ttnews[month]' ,
'valueMap' => array(
'january' => '01',
'february' => '02',
'march' => '03',
'april' => '04',
'may' => '05',
'june' => '06',
'july' => '07',
'august' => '08',
'september' => '09',
'october' => '10',
'november' => '11',
'december' => '12',
)
),
),
// news pagebrowser
'browse' => array(
array(
'GETvar' => 'tx_ttnews[pointer]',
),
),
// news categories
'select_category' => array (
array(
'GETvar' => 'tx_ttnews[cat]',
),
),
// news articles and searchwords
'artikel' => array(
array(
'GETvar' => 'tx_ttnews[tt_news]',
'lookUpTable' => array(
'table' => 'tt_news',
'id_field' => 'uid',
'alias_field' => 'title',
'addWhereClause' => ' AND NOT deleted',
'useUniqueCache' => 1,
'useUniqueCache_conf' => array(
'strtolower' => 1,
'spaceCharacter' => '-',
),
),
),
array(
'GETvar' => 'tx_ttnews[swords]',
),
),
),
),
// configure filenames for different pagetypes
'fileName' => array(
'defaultToHTMLsuffixOnPrev' => 1,
'index' => array(
'rss.xml' => array(
'keyValues' => array(
'type' => 100,
),
),
'page.html' => array(
'keyValues' => array (
'type' => 1,
)
),
'rss091.xml' => array(
'keyValues' => array(
'type' => 101,
),
),
'rdf.xml' => array(
'keyValues' => array(
'type' => 102,
),
),
'atom.xml' => array(
'keyValues' => array(
'type' => 103,
),
),
),
),
),
);
Thanks
/Morten
From c.poenighaus at gmx.de Wed Aug 1 13:04:48 2007
From: c.poenighaus at gmx.de (=?ISO-8859-15?Q?Christoph_P=F6nighaus?=)
Date: Wed, 01 Aug 2007 13:04:48 +0200
Subject: [TYPO3] macina searchbox ignores search query
Message-ID:
Hi!
I added the macina searchbox on all pages by using a marker and set the
searchpage-pid to the well working indexed_search. Entering a search
query into the macina searchbox brings me to the searchpage.
Unfortunately the search query is not delivered.
Any help?
Thanks
Christoph
From headhunterxiii at yahoo.ca Wed Aug 1 13:07:05 2007
From: headhunterxiii at yahoo.ca (Tyler Kraft)
Date: Wed, 01 Aug 2007 12:07:05 +0100
Subject: [TYPO3] Checking https server variable
Message-ID:
Hi
I want to do a check to see if the page being served is a https page and
then do something different in my output. I belive I have my condition
correct but it seems to have no effect when I try it. Can anyone let me
know if this would be the correct way for this condition and if not what
would be?
[globalString = IENV:HTTPS>0]
Thanks,
Ty
From c.poenighaus at gmx.de Wed Aug 1 14:09:37 2007
From: c.poenighaus at gmx.de (=?ISO-8859-15?Q?Christoph_P=F6nighaus?=)
Date: Wed, 01 Aug 2007 14:09:37 +0200
Subject: [TYPO3] macina searchbox ignores search query
In-Reply-To:
References:
Message-ID:
Christoph P?nighaus schrieb:
> Hi!
> I added the macina searchbox on all pages by using a marker and set the
> searchpage-pid to the well working indexed_search. Entering a search
> query into the macina searchbox brings me to the searchpage.
> Unfortunately the search query is not delivered.
>
> Any help?
> Thanks
> Christoph
I'm an idiot!!
I don't know why, but i've edited the searchbox-template and by mistake
changed the name of an input-field.
Sorry
Christoph
From dmitry at typo3.org Wed Aug 1 14:43:59 2007
From: dmitry at typo3.org (Dmitry Dulepov)
Date: Wed, 01 Aug 2007 15:43:59 +0300
Subject: [TYPO3] RealURL configuration skipping levels in the page tree
In-Reply-To:
References:
Message-ID:
Morten Kjems wrote:
> The URL:
> http://mydomain.com/en/category/categoryname/articletype/pagetitle.html
>
> If I understand the documentation correctly both 'category' and
> 'categoryname' are prevars. They are normal pages and the and the URL
> reflects the hierarchy of the page three. In that case it should be
> possible to skip 'category' in the URL.
If the are normal pages, they are not preVars. 'en' is a preVar in your
case. It is not possible to skip pages from the tree when generating url
because it would not be possible to resolve url back to id.
--
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
From mail at cascaval.com Wed Aug 1 14:50:16 2007
From: mail at cascaval.com (Tomas Mrozek)
Date: Wed, 01 Aug 2007 14:50:16 +0200
Subject: [TYPO3] RealURL configuration skipping levels in the page tree
In-Reply-To:
References:
Message-ID:
> If I understand the documentation correctly both 'category' and
> 'categoryname' are prevars.
No. If I understand you correctly 'category' and 'categoryname' are
pages, not prevars. 'en' is a prevar.
> In that case it should be possible to skip 'category' in the URL.
If 'category' and 'categoryname' are really pages, I don't think you can
skip it in the URL with RealURL. (at least I am not aware of such
possibility)
Tomas Mrozek
From elmar07 at googlemail.com Wed Aug 1 15:46:48 2007
From: elmar07 at googlemail.com (Elmar Hinz)
Date: Wed, 01 Aug 2007 15:46:48 +0200
Subject: [TYPO3] how to generate link
References:
Message-ID:
Jan Bednarik wrote:
> Hi,
>
>> From my TS template I call some user functions located in
>> user_function class. Is there any function/method in TYPO3 API to
>> generate correct (RealURL, CoolURI...) link to page specified with ID
>> (plus optional get parameters)?
>
> Try
>
> $GLOBALS['TSFE']->cObject->typolink('text',Array('parameter'=>$pageid));
>
> (maybe there's cObj instead of cObject - try)
Time to write id down:
http://t3flyers.wordpress.com/2007/08/01/using-the-typolink-function/
Regards
Elmar
From mortenkjems at gmail.com Wed Aug 1 15:50:03 2007
From: mortenkjems at gmail.com (Morten Kjems)
Date: Wed, 01 Aug 2007 15:50:03 +0200
Subject: [TYPO3] RealURL configuration skipping levels in the page tree
In-Reply-To:
References:
Message-ID:
OK. Thanks to both of you for helping.
I will have to look at the page three structure instead only this will
affect my menu so I will need to make changes here as well.
But now I am on safer ground and know my direction.
Thanks
/Morten
From oliver at liquidlight.co.uk Wed Aug 1 15:58:55 2007
From: oliver at liquidlight.co.uk (Oliver Rowlands)
Date: Wed, 01 Aug 2007 14:58:55 +0100
Subject: [TYPO3] Checking https server variable
In-Reply-To:
References:
Message-ID:
Hi Tyler,
This should do the trick:
[globalString = _SERVER|HTTPS=on]
# Your TS
[end]
Best regards,
Oliver
Tyler Kraft wrote:
> Hi
>
> I want to do a check to see if the page being served is a https page and
> then do something different in my output. I belive I have my condition
> correct but it seems to have no effect when I try it. Can anyone let me
> know if this would be the correct way for this condition and if not what
> would be?
>
> [globalString = IENV:HTTPS>0]
>
> Thanks,
> Ty
>
>
--
Oliver Rowlands
:: Liquid Light ::
E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk
T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35
From headhunterxiii at yahoo.ca Wed Aug 1 16:05:43 2007
From: headhunterxiii at yahoo.ca (Tyler Kraft)
Date: Wed, 01 Aug 2007 15:05:43 +0100
Subject: [TYPO3] Checking https server variable
In-Reply-To:
References:
Message-ID:
Hi
I had tried [globalString = _SERVER|HTTPS = 1] but no dice. This on the
other hand works perfectly.
Thanks.
Ty
Oliver Rowlands wrote:
> Hi Tyler,
>
> This should do the trick:
>
> [globalString = _SERVER|HTTPS=on]
> # Your TS
> [end]
>
> Best regards,
>
> Oliver
>
> Tyler Kraft wrote:
>> Hi
>>
>> I want to do a check to see if the page being served is a https page
>> and then do something different in my output. I belive I have my
>> condition correct but it seems to have no effect when I try it. Can
>> anyone let me know if this would be the correct way for this condition
>> and if not what would be?
>>
>> [globalString = IENV:HTTPS>0]
>>
>> Thanks,
>> Ty
>>
>>
>
>
From vikram at fivee.in Wed Aug 1 16:14:21 2007
From: vikram at fivee.in (Vikram Mandal)
Date: Wed, 01 Aug 2007 19:44:21 +0530
Subject: [TYPO3] Advanced userFunc Condition
In-Reply-To:
References:
Message-ID:
See the following link
http://typo3.org/documentation/document-library/tutorials/doc_tut_frontend/0.0.1/view/3/1/
regards,
Vikram
--
http://www.fivee.in
From info at bednarik.org Wed Aug 1 16:21:33 2007
From: info at bednarik.org (Jan Bednarik)
Date: Wed, 01 Aug 2007 16:21:33 +0200
Subject: [TYPO3] how to generate link
In-Reply-To:
References:
Message-ID:
Sorry for off topic, but I can't help myself.
> http://t3flyers.wordpress.com/2007/08/01/using-the-typolink-function/
why do you need to create always new tslib_cObject instance?
$cObject = t3lib_div::makeInstance('tslib_cObject');
I don't wonder that Typo3 consumes that much memory. Isn't it better to
use already created instance (the one from $GLOBALS['TSFE'])?
The best would be to implement Sigleton pattern on some classes in
makeInstance, but I don't see this happening. So at least, we should use
every available resource instead of creating new ones.
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
From typo3 at rvt.dds.nl Wed Aug 1 16:32:27 2007
From: typo3 at rvt.dds.nl (ries van Twisk)
Date: Wed, 1 Aug 2007 09:32:27 -0500
Subject: [TYPO3] how to generate link
In-Reply-To:
References:
Message-ID: <22316B46-0F4F-4F43-8644-9F517296824D@rvt.dds.nl>
Hey,
I think Elmar instantiates cObject because it's more the OO way of
doing things.
You are right about resources of course, although PHP is very
efficient with
creating objects.
Ries
> Sorry for off topic, but I can't help myself.
>
>> http://t3flyers.wordpress.com/2007/08/01/using-the-typolink-function/
>
> why do you need to create always new tslib_cObject instance?
>
> $cObject = t3lib_div::makeInstance('tslib_cObject');
>
> I don't wonder that Typo3 consumes that much memory. Isn't it
> better to
> use already created instance (the one from $GLOBALS['TSFE'])?
>
> The best would be to implement Sigleton pattern on some classes in
> makeInstance, but I don't see this happening. So at least, we
> should use
> every available resource instead of creating new ones.
>
> --
> Jan Bednarik
> www.bednarik.org - web about Typo3 in czech
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
From bedlamhotel at gmail.com Wed Aug 1 16:46:53 2007
From: bedlamhotel at gmail.com (Christopher Torgalson)
Date: Wed, 1 Aug 2007 07:46:53 -0700
Subject: [TYPO3] TMENU - gifbuilder
In-Reply-To: <6b195c9e0707312350y3a302ec1webb1d721f4add64@mail.gmail.com>
References: <6b195c9e0707312350y3a302ec1webb1d721f4add64@mail.gmail.com>
Message-ID: <2b6e984e0708010746j43d6488bw94361d190aa943b8@mail.gmail.com>
Hi,
On 7/31/07, Patrik wrote:
> I have a problem about the TMENU, which has an image (before of text), is
> generated with GIFBUILDER.
> The image must have a class ("imgmenu"). How add a class in typoscript of
> the menu?
>
> Code:
> 1 = TMENU
> 1 {
> NO.allWrap = |
> NO {
> beforeImg = GIFBUILDER
> beforeImg {
> #params = class="imgmenu"
> XY = 7,22
>
> 10 = IMAGE
> 10.file = GIFBUILDER
> 10.file {
> #params = class="imgmenu"
> XY = 7,22
> backColor.data = field:uid
> backColor.preUserFunc =
> tx_fmcolormenue_pi1->getColor
> }
> }
> ATagParams = class="linktext"
> stdWrap.case = upper
> }
>
> ACT < .NO
> ACT = 1
> }
It's pretty easy: the IMAGE cObject has a property called 'params'
[1], so you can just add this:
10.params = class="imgmenu"
It didn't work where you placed it because the GIFBUILDER object has
no such property (check in the TSref!)
On the other hand, it's probably unnecessary--any time you end up with
number of nearly identical HTML elements inside the same parent
element, each with the same class in your code, it's almost always a
sign that you should be using descendent selectors [2] in your css. If
your TMENU or HMENU has a parent container, put an id into it and
write the the css this way:
/* Assuming the menu is wrapped with */
#menu .nofloat img {
/* Here goes the code that used to be in .imgmenu */
}
--
Christopher Torgalson
http://www.typo3apprentice.com/
[1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/8/6/
[2] http://www.w3.org/TR/REC-CSS2/selector.html#descendant-selectors
From elmar07 at googlemail.com Wed Aug 1 16:42:44 2007
From: elmar07 at googlemail.com (Elmar Hinz)
Date: Wed, 01 Aug 2007 16:42:44 +0200
Subject: [TYPO3] how to generate link
References:
Message-ID:
Jan Bednarik wrote:
> Sorry for off topic, but I can't help myself.
>
>> http://t3flyers.wordpress.com/2007/08/01/using-the-typolink-function/
>
> why do you need to create always new tslib_cObject instance?
>
> $cObject = t3lib_div::makeInstance('tslib_cObject');
>
> I don't wonder that Typo3 consumes that much memory. Isn't it better to
> use already created instance (the one from $GLOBALS['TSFE'])?
>
> The best would be to implement Sigleton pattern on some classes in
> makeInstance, but I don't see this happening. So at least, we should use
> every available resource instead of creating new ones.
Absolutly right and in fact expected that suggestion. But I didn't want to
explain the singleton pattern or when and were $cObj is available and where
not. It's good stuff for the comments part of the blog. :-)
Regards
Elmar
From info at bednarik.org Wed Aug 1 16:53:43 2007
From: info at bednarik.org (Jan Bednarik)
Date: Wed, 01 Aug 2007 16:53:43 +0200
Subject: [TYPO3] how to generate link
In-Reply-To:
References:
Message-ID:
> I think Elmar instantiates cObject because it's more the OO way of doing
> things.
That's right. But since there's no singleton I'd prefer not to do this
this way. In my projects (see CoolUri) I use singleton and therefore I
can "makeInstance" whenever I want without wasting resources.
I think adding Singleton pattern to t3lib_div::makeInstance would be
quite simple. I've tried it once, but Typo3 didn't work then. I guess,
only a few chosen classes could be singleton.
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
From elmar07 at googlemail.com Wed Aug 1 17:04:45 2007
From: elmar07 at googlemail.com (Elmar Hinz)
Date: Wed, 01 Aug 2007 17:04:45 +0200
Subject: [TYPO3] how to generate link
References:
Message-ID:
>
> I think adding Singleton pattern to t3lib_div::makeInstance would be
> quite simple. I've tried it once, but Typo3 didn't work then. I guess,
> only a few chosen classes could be singleton.
>
I have that in mind since the beginning for tx_div::makeInstance, one reason
to wrap t3lib_div::makeInstance apart from the autoloading. As you observe
it doesn't work for all objects. Could be controlled by a second parameter:
tx_div::makeInstance('classname'); // instance
tx_div::makeInstance('classname', TRUE); // find as singleton
That direction.
However performance tuning of lib/div is on the roadmap after 07/09/15.
http://wiki.typo3.org/index.php/MVC_Framework
Regards
Elmar
From typo3 at rvt.dds.nl Wed Aug 1 18:30:29 2007
From: typo3 at rvt.dds.nl (ries van Twisk)
Date: Wed, 1 Aug 2007 11:30:29 -0500
Subject: [TYPO3] how to generate link
In-Reply-To:
References:
Message-ID:
On Aug 1, 2007, at 9:53 AM, Jan Bednarik wrote:
>> I think Elmar instantiates cObject because it's more the OO way of
>> doing
>> things.
>
> That's right. But since there's no singleton I'd prefer not to do this
> this way. In my projects (see CoolUri) I use singleton and therefore I
> can "makeInstance" whenever I want without wasting resources.
>
> I think adding Singleton pattern to t3lib_div::makeInstance would be
> quite simple. I've tried it once, but Typo3 didn't work then. I guess,
> only a few chosen classes could be singleton.
>
TYPO3 is kinda picky :)
And typo3 never could really do it since php4 and singleton is
quite.. Hmmmm how can I say, awkward :D
However I believe the decision was made that from 4.2 php 5.x
is a requirement (I hope not 5.2 and up though).
Which opens doors
From tapio.markula at xetpoint.fi Wed Aug 1 19:42:43 2007
From: tapio.markula at xetpoint.fi (Tapio Markula)
Date: Wed, 01 Aug 2007 20:42:43 +0300
Subject: [TYPO3] Memory limit
In-Reply-To:
References:
Message-ID:
Jan Bednarik kirjoitti:
>> use htaccess to increase the memory to 32MB. Typo3 Ext. require 32 or
>> more
>> memory limit to run.
>
> Can't do. If I could set memory limit I would and wouldn't ask you here.
>
> And until now 16MB was OK. Even Install tool says that 16MB is enough.
>
try in localconf.php ini_set(...
From info at bednarik.org Wed Aug 1 20:30:49 2007
From: info at bednarik.org (Jan Bednarik)
Date: Wed, 01 Aug 2007 20:30:49 +0200
Subject: [TYPO3] Memory limit
In-Reply-To:
References:
Message-ID:
> try in localconf.php ini_set(...
This function is forbidden. Fortunately, the webhoster was willing to
raise memory limit to 24MB, so it works now.
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
From oliver at liquidlight.co.uk Wed Aug 1 20:32:30 2007
From: oliver at liquidlight.co.uk (Oliver Rowlands)
Date: Wed, 01 Aug 2007 19:32:30 +0100
Subject: [TYPO3] migrating custom extensions from 3.7.0 setup to 4.1.1 -
how?
In-Reply-To:
References:
Message-ID:
Hi Tomasz,
I've done a number upgrades from Typo3 3.6, 3.7 & 3.8 to 4.x, here are a
few tips:
- Use a clean version of the latest dummy install (4.1.2) and copy over
all of your assets (fileadmin, typo3conf, uploads) rather than reusing
the old structure.
- Once you've installed the latest sources (4.1.2) run the 'Compare'
function of the 'Database Wizard' tool in the 'Install tool'. A number
of core tables (be_users, pages & tt_content) have changed in between
3.7 and 4.1.2. This should take care of all the updates for you.
From past experience the whole upgrade process is extremely smooth.
Let me know if you have problems.
Regards,
Oliver
Tomasz Chmielewski wrote:
> As I'm making a totally new layout for a website, I thought it would be
> a good time to migrate it from TYPO3 3.7.0 to 4.1.1.
>
> Most easy parts are done, but I'm not sure how I can migrate some custom
> extensions from 3.7.0 to 4.1.1. Obviously, copying the data from
> typo3conf/ext/* is not enough, and some other changes are needed.
>
> Does anyone have any hints on what else should I look at (perhaps some
> database stuff, but I have no clue).
>
>
--
Oliver Rowlands
:: Liquid Light ::
E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk
T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35
From bedlamhotel at gmail.com Wed Aug 1 20:40:32 2007
From: bedlamhotel at gmail.com (Christopher Torgalson)
Date: Wed, 1 Aug 2007 11:40:32 -0700
Subject: [TYPO3] migrating custom extensions from 3.7.0 setup to 4.1.1 -
how?
In-Reply-To:
References:
Message-ID: <2b6e984e0708011140p62305de6w73f2b06ab79eb56d@mail.gmail.com>
Hi,
On 8/1/07, Oliver Rowlands wrote:
> Hi Tomasz,
>
> I've done a number upgrades from Typo3 3.6, 3.7 & 3.8 to 4.x, here are a
> few tips:
>
> - Use a clean version of the latest dummy install (4.1.2) and copy over
> all of your assets (fileadmin, typo3conf, uploads) rather than reusing
> the old structure.
I have TYPO3 4.1.2 sites that have been running since version 3.5b5
without ever having done this. Why would it be necessary?
--
Christopher Torgalson
http://www.typo3apprentice.com/
From keiser_soze at hotmail.com Wed Aug 1 21:40:34 2007
From: keiser_soze at hotmail.com (Antonio Willybiro)
Date: Wed, 1 Aug 2007 20:40:34 +0100
Subject: [TYPO3] RTEmagicC: can i disable that?
Message-ID:
Hi,
Is it possible to disable RTEmagic? I don't want the RTE to create
duplicates of pictures.
Cheers
Antonio
From tapio.markula at xetpoint.fi Wed Aug 1 22:33:29 2007
From: tapio.markula at xetpoint.fi (Tapio Markula)
Date: Wed, 01 Aug 2007 23:33:29 +0300
Subject: [TYPO3] RTEmagicC: can i disable that?
In-Reply-To:
References:
Message-ID:
Antonio Willybiro kirjoitti:
> Hi,
>
> Is it possible to disable RTEmagic? I don't want the RTE to create
> duplicates of pictures.
>
> Cheers
> Antonio
>
>
that doesn't disable duplicates if you use text with imges.
Concerning editor disable image magic images.
RTE.default.blindImageOptions=magic
From solshark at i-soldi.com Wed Aug 1 22:59:08 2007
From: solshark at i-soldi.com (Mik B. Shvets)
Date: Wed, 1 Aug 2007 23:59:08 +0300
Subject: [TYPO3] DB Integration, search form, custom template
Message-ID: <200708012359.08570.solshark@i-soldi.com>
Hello all. It's possible use custom template for searck form created with DB
Integration extension? I know how to create and use custom template for
search result and insert form. Is any way to do this for search form?
If any, show me some example please.
Thx.
--
primus inter pares
From lars at typo3.org Wed Aug 1 23:34:52 2007
From: lars at typo3.org (Lars Houmark)
Date: Wed, 1 Aug 2007 23:34:52 +0200
Subject: [TYPO3] TYPO3 Security Bulletin 20070801-1: Multiple
vulnerabilities in extension ve_guestbook
Message-ID:
Dear users of TYPO3,
It has been discovered that the extension ve_guestbook is vulnerable
to SQL Injection attacks. Also, a Cross Site Scripting issue has been
detected.
==== Component Type ====
Third party extension. This extension is not part of the TYPO3
default installation.
==== Affected Versions ====
Version 1.9.3 and below
==== Vulnerability Type ====
SQL Injection, Cross Site Scripting
==== Severity ====
HIGH.
We have received indications that the flaw is already being
actively exploited.
==== Problem Description ====
Some versions of the extension are exposed to SQL injection because
they fail to properly sanitize user-supplied input. Besides that,
some versions are not preventing Cross Site Scripting attacks properly.
==== Solution ====
An updated version is available from the TYPO3 extension manager and at
http://typo3.org/extensions/repository/view/ve_guestbook/2.0.0/
==== General advice ====
Follow the recommendations that are given in the TYPO3 Security
Cookbook [1].
Keep notice of the TYPO3 security bulletin page [2].
==== Annotation ====
The TYPO3 Security Team wishes to clarify that we have not yet
been able to get in touch with the author, nor to accomplish a formal
review of the extension. This advisory is being published nevertheless,
because we have received indications that the flaw is already being
actively exploited.
[1] http://typo3.org/fileadmin/security-team/
typo3_security_cookbook_v-0.5.pdf
[2] http://typo3.org/teams/security/security-bulletins/
Regards,
Lars Houmark
lars at typo3.org
From katja.lampela at lieska.net Thu Aug 2 02:54:40 2007
From: katja.lampela at lieska.net (Katja Lampela)
Date: Thu, 02 Aug 2007 03:54:40 +0300
Subject: [TYPO3] extendedshop single view
Message-ID:
Hello folks,
I'm sorry if this is too stupid a question, but I just can't seem to
find a way to connect extendedshops list view to single view. Everything
else seem to work fine.
Anyone uses the latest version 2.0.6 and has this working and is a kind
soul to tell me what obvious thing I have missed..?
- Katja
From master_nhg at mail.ru Thu Aug 2 08:01:09 2007
From: master_nhg at mail.ru (Alexander)
Date: Thu, 02 Aug 2007 10:01:09 +0400
Subject: [TYPO3] RealURL and .htaccess
Message-ID:
Hello list.
I have some problems with RealURL configuration and redirections. I need
place some redirects into my .htaccess file, but now RealURL has
priority. How can I do this, I mean how to make priority for .htaccess.
I need to read .htaccess settings first then RealURL settings.
Regards, Alex
From info at bednarik.org Thu Aug 2 08:46:15 2007
From: info at bednarik.org (Jan Bednarik)
Date: Thu, 02 Aug 2007 08:46:15 +0200
Subject: [TYPO3] RealURL and .htaccess
In-Reply-To:
References:
Message-ID:
Hey,
> I have some problems with RealURL configuration and redirections. I need
> place some redirects into my .htaccess file, but now RealURL has
> priority. How can I do this, I mean how to make priority for .htaccess.
> I need to read .htaccess settings first then RealURL settings.
.htaccess is always first. RealURL comes when request is redirected to
index.php. That means you need to place your rules before rules that
redirect everything to index.php.
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
From typothree at gmail.com Thu Aug 2 08:50:26 2007
From: typothree at gmail.com (dave typo)
Date: Thu, 2 Aug 2007 08:50:26 +0200
Subject: [TYPO3] how to disable li links opening a new window?
Message-ID: <631ee64b0708012350s491630b4i5837cfbffbc95f8f@mail.gmail.com>
When a user clicks on a link within a element, the page loads in
a new window - how do I disable this, so that the new page loads in
the same browser?
-dave
From master_nhg at mail.ru Thu Aug 2 08:55:21 2007
From: master_nhg at mail.ru (Alexander)
Date: Thu, 02 Aug 2007 10:55:21 +0400
Subject: [TYPO3] RealURL and .htaccess
In-Reply-To:
References:
Message-ID:
Jan Bednarik ?????:
> Hey,
>
>> I have some problems with RealURL configuration and redirections. I
>> need place some redirects into my .htaccess file, but now RealURL has
>> priority. How can I do this, I mean how to make priority for
>> .htaccess. I need to read .htaccess settings first then RealURL settings.
>
> .htaccess is always first. RealURL comes when request is redirected to
> index.php. That means you need to place your rules before rules that
> redirect everything to index.php.
>
Thanks for quick answer. I will try it.
From mauro.lorenzutti at webformat.com Thu Aug 2 09:12:43 2007
From: mauro.lorenzutti at webformat.com (Mauro Lorenzutti)
Date: Thu, 02 Aug 2007 09:12:43 +0200
Subject: [TYPO3] extendedshop single view
In-Reply-To:
References:
Message-ID: <46B183EB.4050303@webformat.com>
Hi Katja,
> Hello folks,
>
> I'm sorry if this is too stupid a question, but I just can't seem to
> find a way to connect extendedshops list view to single view. Everything
> else seem to work fine.
>
> Anyone uses the latest version 2.0.6 and has this working and is a kind
> soul to tell me what obvious thing I have missed..?
>
> - Katja
>
I tested again the extension and it seems to work correctly. Just a few
points:
- you have to create the product records in the same page where you want
to show them
- the detail page is the same of the list page, you can't create a
different page for the detailed view
If these are not the cases, please send me some more information.
Regards,
--
Mauro Lorenzutti
e-mail: mauro.lorenzutti at webformat.com
---------------------------------------------------------
WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN
Tel +39-0427-926.389 -- Fax +39-0427-927.653
info at webformat.com -- http://www.webformat.com
---------------------------------------------------------
From info at bednarik.org Thu Aug 2 09:56:41 2007
From: info at bednarik.org (Jan Bednarik)
Date: Thu, 02 Aug 2007 09:56:41 +0200
Subject: [TYPO3] how to disable li links opening a new window?
In-Reply-To:
References:
Message-ID:
> When a user clicks on a link within a element, the page loads in
> a new window - how do I disable this, so that the new page loads in
> the same browser?
It's got nothing to do with element. It depends on what is the
link. Is it menu/sitemap generated via TS? Then you need to delete the
preset extTarget.
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
From thorsten.kahler at dkd.de Thu Aug 2 09:28:19 2007
From: thorsten.kahler at dkd.de (Thorsten Kahler)
Date: Thu, 02 Aug 2007 09:28:19 +0200
Subject: [TYPO3] how to generate link
In-Reply-To:
References:
Message-ID:
Hi Ries,
ries van Twisk wrote on 01.08.2007 18:30:
> On Aug 1, 2007, at 9:53 AM, Jan Bednarik wrote:
>> I think adding Singleton pattern to t3lib_div::makeInstance would be
>> quite simple. I've tried it once, but Typo3 didn't work then. I guess,
>> only a few chosen classes could be singleton.
>
> TYPO3 is kinda picky :)
> And typo3 never could really do it since php4 and singleton is
> quite.. Hmmmm how can I say, awkward :D
TYPO3 indeed doesn't implement the singleton pattern yet because of its
compatibility to PHP 4. But t3lib_div::getUserObj() offers a method to use
objects as singletons (implemented as a kind of object repository).
> However I believe the decision was made that from 4.2 php 5.x
> is a requirement (I hope not 5.2 and up though).
>From version 4.2 TYPO3 will raise it's requirements to PHP 5.1 and will be
fully compatible with 5.2. See Stuckis blog post [1].
Regards
Thorsten
[1] http://buzz.typo3.org/people/stucki/article/leaving-php4-behind/
From typothree at gmail.com Thu Aug 2 10:08:51 2007
From: typothree at gmail.com (dave typo)
Date: Thu, 2 Aug 2007 10:08:51 +0200
Subject: [TYPO3] how to disable li links opening a new window?
In-Reply-To:
References:
Message-ID: <631ee64b0708020108u5362f73dl460883715f7e11@mail.gmail.com>
it is a menu/sitemap generated via a content element
is there TS that can disable this globally?
On 8/2/07, Jan Bednarik wrote:
> > When a user clicks on a link within a element, the page loads in
> > a new window - how do I disable this, so that the new page loads in
> > the same browser?
>
> It's got nothing to do with element. It depends on what is the
> link. Is it menu/sitemap generated via TS? Then you need to delete the
> preset extTarget.
>
> --
> Jan Bednarik
> www.bednarik.org - web about Typo3 in czech
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
From elmar07 at googlemail.com Thu Aug 2 10:19:07 2007
From: elmar07 at googlemail.com (Elmar Hinz)
Date: Thu, 02 Aug 2007 10:19:07 +0200
Subject: [TYPO3] how to generate link
References:
Message-ID:
>
> TYPO3 indeed doesn't implement the singleton pattern yet because of its
> compatibility to PHP 4. But t3lib_div::getUserObj() offers a method to use
> objects as singletons (implemented as a kind of object repository).
>
Hi Thorsten,
I worked with the singleton pattern in PHP4. Which additional features do I
have with PHP5 for singletons?
Regards
Elmar
From info at bednarik.org Thu Aug 2 10:39:53 2007
From: info at bednarik.org (Jan Bednarik)
Date: Thu, 02 Aug 2007 10:39:53 +0200
Subject: [TYPO3] how to generate link
In-Reply-To:
References:
Message-ID:
> TYPO3 indeed doesn't implement the singleton pattern yet because of its
> compatibility to PHP 4. But t3lib_div::getUserObj() offers a method to use
> objects as singletons (implemented as a kind of object repository).
Since when there's a problem with php4 and singleton. Let's see:
http://www.developertutorials.com/tutorials/php/php-singleton-design-pattern-050729/page2.html
or
function getInstance($classname) {
if (empty($GLOBALS['instances'][$classname])) {
$GLOBALS['instances'][$classname] = new $classname;
}
return $GLOBALS['instances'][$classname];
}
--
Jan Bednarik
www.bednarik.org - web about Typo3 in czech
From thorsten.kahler at dkd.de Thu Aug 2 10:42:36 2007
From: thorsten.kahler at dkd.de (Thorsten Kahler)
Date: Thu, 02 Aug 2007 10:42:36 +0200
Subject: [TYPO3] how to generate link
In-Reply-To:
References:
Message-ID:
Hi Elmar,
Elmar Hinz wrote on 02.08.2007 10:19:
>> TYPO3 indeed doesn't implement the singleton pattern yet because of its
>> compatibility to PHP 4. But t3lib_div::getUserObj() offers a method to use
>> objects as singletons (implemented as a kind of object repository).
>>
>
> Hi Thorsten,
>
> I worked with the singleton pattern in PHP4. Which additional features do I
> have with PHP5 for singletons?
>
AFAIK the singleton pattern requires static attributes and methods as well
as access specifiers.
There's no problem to use a class as singleton in PHP4 but that's based on
goodwill, not on the singleton /pattern/.
Regards
Thorsten
From typothree at gmail.com Thu Aug 2 10:45:38 2007
From: typothree at gmail.com (dave typo)
Date: Thu, 2 Aug 2007 10:45:38 +0200
Subject: [TYPO3] how to disable li links opening a new window?
In-Reply-To: <631ee64b0708020108u5362f73dl460883715f7e11@mail.gmail.com>
References:
<631ee64b0708020108u5362f73dl460883715f7e11@mail.gmail.com>
Message-ID: <631ee64b0708020145p2f7a2ca8h846937372de2f384@mail.gmail.com>
should this not take care of it?
config.extTarget = _self
its not working...
On 8/2/07, dave typo wrote:
> it is a menu/sitemap generated via a content element
>
> is there TS that can disable this globally?
>
> On 8/2/07, Jan Bednarik wrote:
> > > When a user clicks on a link within a element, the page loads in
> > > a new window - how do I disable this, so that the new page loads in
> > > the same browser?
> >
> > It's got nothing to do with element. It depends on what is the
> > link. Is it menu/sitemap generated via TS? Then you need to delete the
> > preset extTarget.
> >
> > --
> > Jan Bednarik
> > www.bednarik.org - web about Typo3 in czech
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
>
From tapio.markula at xetpoint.fi Thu Aug 2 10:55:42 2007
From: tapio.markula at xetpoint.fi (Tapio Markula)
Date: Thu, 02 Aug 2007 11:55:42 +0300
Subject: [TYPO3] Problem with skin_grey2 / top menu
In-Reply-To:
References:
Message-ID:
Andreas Balzer kirjoitti:
> Andreas Balzer schrieb:
>> Hi!
>> I have a little problem with top menu for skin_grey2. I set
>> maxSubItems per EM to 11, updated, cleared extension cache and
>> reloaded. Unluckily it still only shows 6 icons side by side. Do I
>> have to config something additional?
>
> found the answer in User Setup.
>
> Andreas
If you have once saved User > Setup with added options, those always
override plugin configuration.
Plugin configuration should work if the related option in User Setup
have newer saved.
If that doesn't work I have bug - but this is impossible to test after
you have once saved user settings.
From elmar07 at googlemail.com Thu Aug 2 10:55:15 2007
From: elmar07 at googlemail.com (Elmar Hinz)
Date: Thu, 02 Aug 2007 10:55:15 +0200
Subject: [TYPO3] how to generate link
References:
Message-ID:
Thorsten Kahler wrote:
> Hi Elmar,
>
> Elmar Hinz wrote on 02.08.2007 10:19:
>>> TYPO3 indeed doesn't implement the singleton pattern yet because of its
>>> compatibility to PHP 4. But t3lib_div::getUserObj() offers a method to
>>> use objects as singletons (implemented as a kind of object repository).
>>>
>>
>> Hi Thorsten,
>>
>> I worked with the singleton pattern in PHP4. Which additional features do
>> I have with PHP5 for singletons?
>>
>
> AFAIK the singleton pattern requires static attributes and methods as well
> as access specifiers.
>
> There's no problem to use a class as singleton in PHP4 but that's based on
> goodwill, not on the singleton /pattern/.
>
> Regards
> Thorsten
The static attribute has been available in PHP4.
http://www.php.net/manual/de/language.oop.php
Please see the comment from:
Felix M dot Palmen
10-Oct-2005 01:18
Regards
From katja.lampela at lieska.net Thu Aug 2 11:00:18 2007
From: katja.lampela at lieska.net (Katja Lampela)
Date: Thu, 02 Aug 2007 12:00:18 +0300
Subject: [TYPO3] how to disable li links opening a new window?
In-Reply-To:
References: <631ee64b0708020108u5362f73dl460883715f7e11@mail.gmail.com>
Message-ID:
Hi Dave,
Try this in your template constant:
content.pageFrameObj =
HTH katja
dave typo kirjoitti:
> should this not take care of it?
>
> config.extTarget = _self
>
> its not working...
>
> On 8/2/07, dave typo wrote:
>> it is a menu/sitemap generated via a content element
>>
>> is there TS that can disable this globally?
>>
>> On 8/2/07, Jan Bednarik wrote:
>>>> When a user clicks on a link within a element, the page loads in
>>> > a new window - how do I disable this, so that the new page loads in
>>> > the same browser?
>>>
>>> It's got nothing to do with element. It depends on what is the
>>> link. Is it menu/sitemap generated via TS? Then you need to delete the
>>> preset extTarget.
>>>
>>> --
>>> Jan Bednarik
>>> www.bednarik.org - web about Typo3 in czech
>>> _______________________________________________
>>> TYPO3-english mailing list
>>> TYPO3-english at lists.netfielders.de
>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>>
From thorsten.kahler at dkd.de Thu Aug 2 11:21:54 2007
From: thorsten.kahler at dkd.de (Thorsten Kahler)
Date: Thu, 02 Aug 2007 11:21:54 +0200
Subject: [TYPO3] how to generate link
In-Reply-To:
References:
Message-ID:
Hi Jan,
Jan Bednarik wrote on 02.08.2007 10:39:
>> TYPO3 indeed doesn't implement the singleton pattern yet because of its
>> compatibility to PHP 4. But t3lib_div::getUserObj() offers a method to
>> use
>> objects as singletons (implemented as a kind of object repository).
>
> Since when there's a problem with php4 and singleton. Let's see:
> http://www.developertutorials.com/tutorials/php/php-singleton-design-pattern-050729/page2.html
>
I didn't say that there's a problem with singletons but with the singleton
/pattern/. (But see Elmars comment about that.)
>
> or
>
> function getInstance($classname) {
> if (empty($GLOBALS['instances'][$classname])) {
> $GLOBALS['instances'][$classname] = new $classname;
> }
> return $GLOBALS['instances'][$classname];
> }
>
Did you take a look at t3lib_div::getUserObj()? ;-)
Regards
Thorsten
From katja.lampela at lieska.net Thu Aug 2 11:25:03 2007
From: katja.lampela at lieska.net (Katja Lampela)
Date: Thu, 02 Aug 2007 12:25:03 +0300
Subject: [TYPO3] extendedshop single view
In-Reply-To:
References:
Message-ID:
Hello Mauro,
And thanks a lot for your response.
I moved the products now from the sysfolder to the page where the plugin
is. (I couldn't move the categories records though.)
I tried the listing/detail page:
- with 1 plugin: no defined instance
- with 1 plugin: "Products list"
- with 2 plugins: one with "Products list" and the other with "Single
product"
but unfortunately no effect with the single view :(
The basket instance in the same page works ok.
I cleared cache - can't think of anything..?
- Katja
Mauro Lorenzutti kirjoitti:
> Hi Katja,
>> Hello folks,
>>
>> I'm sorry if this is too stupid a question, but I just can't seem to
>> find a way to connect extendedshops list view to single view. Everything
>> else seem to work fine.
>>
>> Anyone uses the latest version 2.0.6 and has this working and is a kind
>> soul to tell me what obvious thing I have missed..?
>>
>> - Katja
>>
>
> I tested again the extension and it seems to work correctly. Just a few
> points:
>
> - you have to create the product records in the same page where you want
> to show them
> - the detail page is the same of the list page, you can't create a
> different page for the detailed view
>
> If these are not the cases, please send me some more information.
>
> Regards,
>
From mauro.lorenzutti at webformat.com Thu Aug 2 11:46:58 2007
From: mauro.lorenzutti at webformat.com (Mauro Lorenzutti)
Date: Thu, 02 Aug 2007 11:46:58 +0200
Subject: [TYPO3] extendedshop single view
In-Reply-To:
References:
Message-ID: <46B1A812.3070201@webformat.com>
Hi Katja,
> Hello Mauro,
>
> And thanks a lot for your response.
> I moved the products now from the sysfolder to the page where the plugin
> is. (I couldn't move the categories records though.)
>
> I tried the listing/detail page:
> - with 1 plugin: no defined instance
> - with 1 plugin: "Products list"
> - with 2 plugins: one with "Products list" and the other with "Single
> product"
>
> but unfortunately no effect with the single view :(
> The basket instance in the same page works ok.
>
> I cleared cache - can't think of anything..?
>
> - Katja
>
the correct configuration is the following one:
- a single page for products list and details. In this page you have to
store all the products you want to list in this page and you have to
insert the plugin and select the "Products list". In this page you'll
see the list of the products and, for each product, a link to the
detailed page (that is the same but with a productID parameter). Pay
attention to the startingpoint field (it must be empty).
you can have a lot of this pages.
Is this your configuration?
Regards,
--
Mauro Lorenzutti
e-mail: mauro.lorenzutti at webformat.com
---------------------------------------------------------
WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN
Tel +39-0427-926.389 -- Fax +39-0427-927.653
info at webformat.com -- http://www.webformat.com
---------------------------------------------------------
From John.de.Stigter at bedrijvenweb.nl Thu Aug 2 11:43:00 2007
From: John.de.Stigter at bedrijvenweb.nl (John de Stigter)
Date: Thu, 2 Aug 2007 11:43:00 +0200
Subject: [TYPO3] Using resized images in RTE
Message-ID: <03C096612B5E36419709A2032F669687A6322F@PEHSERVER.PEH.local>
Hi all,
When adding images to the Richt Text Editor (RTE), images are not
resized when using the tab "Drag'n Drop".
The original file is placed instead of an temporary image resized by
image magick. This is not the case when adding an image via the tab "New
Magic Image". Selecting an image their will create a resized copy of the
image.
Is it possible to enabe RTE to resize images selected by "Drag'n Drop"?
This tab is used more often because of the option to upload images.
And is it possible to let TYPO3 resize images uploaded by the user?
Cheerios,
RJ
From typothree at gmail.com Thu Aug 2 12:11:26 2007
From: typothree at gmail.com (dave typo)
Date: Thu, 2 Aug 2007 12:11:26 +0200
Subject: [TYPO3] how to disable li links opening a new window?
In-Reply-To:
References:
<631ee64b0708020108u5362f73dl460883715f7e11@mail.gmail.com>
Message-ID: <631ee64b0708020311m3aa26d13ubdc974f17601d827@mail.gmail.com>
hmm didn't work.....
is there some option somewhere that is taking precedence over another
that I may not have considered?
On 8/2/07, Katja Lampela wrote:
> Hi Dave,
> Try this in your template constant:
>
> content.pageFrameObj =
>
> HTH katja
>
>
> dave typo kirjoitti:
> > should this not take care of it?
> >
> > config.extTarget = _self
> >
> > its not working...
> >
> > On 8/2/07, dave typo wrote:
> >> it is a menu/sitemap generated via a content element
> >>
> >> is there TS that can disable this globally?
> >>
> >> On 8/2/07, Jan Bednarik wrote:
> >>>> When a user clicks on a link within a element, the page loads in
> >>> > a new window - how do I disable this, so that the new page loads in
> >>> > the same browser?
> >>>
> >>> It's got nothing to do with element. It depends on what is the
> >>> link. Is it menu/sitemap generated via TS? Then you need to delete the
> >>> preset extTarget.
> >>>
> >>> --
> >>> Jan Bednarik
> >>> www.bednarik.org - web about Typo3 in czech
> >>> _______________________________________________
> >>> TYPO3-english mailing list
> >>> TYPO3-english at lists.netfielders.de
> >>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >>>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
From John.de.Stigter at bedrijvenweb.nl Thu Aug 2 12:15:31 2007
From: John.de.Stigter at bedrijvenweb.nl (John de Stigter)
Date: Thu, 2 Aug 2007 12:15:31 +0200
Subject: [TYPO3] how to disable li links opening a new window?
In-Reply-To: <631ee64b0708012350s491630b4i5837cfbffbc95f8f@mail.gmail.com>
Message-ID: <03C096612B5E36419709A2032F669687A63230@PEHSERVER.PEH.local>
Hi,
What is the target of your link? (Check the source code of the page in
the browser).
RJ
> When a user clicks on a link within a element, the page
> loads in a new window - how do I disable this, so that the
> new page loads in the same browser?
>
>
> -dave
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
From typothree at gmail.com Thu Aug 2 12:26:48 2007
From: typothree at gmail.com (dave typo)
Date: Thu, 2 Aug 2007 12:26:48 +0200
Subject: [TYPO3] how to disable li links opening a new window?
In-Reply-To: <03C096612B5E36419709A2032F669687A63230@PEHSERVER.PEH.local>
References: <631ee64b0708012350s491630b4i5837cfbffbc95f8f@mail.gmail.com>
<03C096612B5E36419709A2032F669687A63230@PEHSERVER.PEH.local>
Message-ID: <631ee64b0708020326w64bf03e5o22a52ffe5e6e84ab@mail.gmail.com>
my target is "page"
hmm... any suggestions?
On 8/2/07, John de Stigter wrote:
> Hi,
>
> What is the target of your link? (Check the source code of the page in
> the browser).
>
> RJ
>
> > When a user clicks on a link within a element, the page
> > loads in a new window - how do I disable this, so that the
> > new page loads in the same browser?
> >
> >
> > -dave
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
From headhunterxiii at yahoo.ca Thu Aug 2 12:42:42 2007
From: headhunterxiii at yahoo.ca (Tyler Kraft)
Date: Thu, 02 Aug 2007 11:42:42 +0100
Subject: [TYPO3] how to disable li links opening a new window?
In-Reply-To:
References: <631ee64b0708012350s491630b4i5837cfbffbc95f8f@mail.gmail.com> <03C096612B5E36419709A2032F669687A63230@PEHSERVER.PEH.local>
Message-ID:
in your template constants:
PAGE_TARGET =
content.pageFrameObj =
in your template setup:
config.extTarget =
config.intTarget = {$PAGE_TARGET}
dave typo wrote:
> my target is "page"
>
> hmm... any suggestions?
>
> On 8/2/07, John de Stigter wrote:
>> Hi,
>>
>> What is the target of your link? (Check the source code of the page in
>> the browser).
>>
>> RJ
>>
>>> When a user clicks on a link within a element, the page
>>> loads in a new window - how do I disable this, so that the
>>> new page loads in the same browser?
>>>
>>>
>>> -dave
>>> _______________________________________________
>>> TYPO3-english mailing list
>>> TYPO3-english at lists.netfielders.de
>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
From typothree at gmail.com Thu Aug 2 12:55:47 2007
From: typothree at gmail.com (dave typo)
Date: Thu, 2 Aug 2007 12:55:47 +0200
Subject: [TYPO3] how to disable li links opening a new window?
In-Reply-To:
References: <631ee64b0708012350s491630b4i5837cfbffbc95f8f@mail.gmail.com>
<03C096612B5E36419709A2032F669687A63230@PEHSERVER.PEH.local>
Message-ID: <631ee64b0708020355j423e11e4qa858af0422b9b54f@mail.gmail.com>
perfect thanks a lot everyone :)
On 8/2/07, Tyler Kraft wrote:
> in your template constants:
>
> PAGE_TARGET =
> content.pageFrameObj =
>
>
> in your template setup:
> config.extTarget =
> config.intTarget = {$PAGE_TARGET}
>
>
> dave typo wrote:
> > my target is "page"
> >
> > hmm... any suggestions?
> >
> > On 8/2/07, John de Stigter wrote:
> >> Hi,
> >>
> >> What is the target of your link? (Check the source code of the page in
> >> the browser).
> >>
> >> RJ
> >>
> >>> When a user clicks on a link within a