[oxid-dev-general] Unterkategorie einer Kategorie

2012-04-19 Thread Ralf Kronen
Hallo,

ich möchte den Baum einer bestimmten Kategorie haben:

class smx_oxviewconfig extends smx_oxviewconfig_parent
{
public function getBaumuster()
{
$myConfig = $this-getConfig();
$sCatID = $myConfig-getConfigParam('sBaumusterCatId');

$oCat = oxNew('oxcategory');
$oCat-load($sCatID);

$oSubCat = $oCat-getSubCats();

return $oSubCat;
} //function
}

Die Kategorie ist so aufgebaut (und alle korrekt angelegt mit Artikeln, aktiv 
usw):
Hauptkategorie (sBaumusterCatId)
- Unter 1
-- Unterunter 1
-- Unterunter 2
- Unter 2
- Unter 3

Das soll auch im Template verfügbar sein über [{assign var=obm 
value=$oViewConf-getBaumuster()}]. Leider gibt das getSubCats immer ein leeres 
Array zurück. Was fehlt ihm hier, was muss nach load() noch folgen?

Das Objekt $oCat sieht auch OK aus, es fehlen nur die Subcats:

smx_oxcategory Object
(
[_aSubCats:protected] = Array
(
)

[_aContentCats:protected] = Array
(
)

[_sClassName:protected] = oxcategory
[_iNrOfArticles:protected] = 
[_blIsVisible:protected] = 
[_blExpanded:protected] = 
[_blHasSubCats:protected] = 
[_blHasVisibleSubCats:protected] = 
[_blIsSeoObject:protected] = 1
[_blUseLazyLoading:protected] = 
[_sDynImageDir:protected] = 
[_blTopCategory:protected] = 
[_aIds:protected] = Array
(
)

[_aStdUrls:protected] = Array
(
)

[_aSeoUrls:protected] = Array
(
)

[_iLanguage:protected] = 0
[_blEmployMultilanguage:protected] = 1
[_sOXID:protected] = 214e377cb795b8a7e473188a78abd024
[_iShopId:protected] = 1
[_blIsSimplyClonable:protected] = 1
[_aErrors:protected] = Array
(
)

[_sCoreTable:protected] = oxcategories
[_sViewTable:protected] = 
[_blForceCoreTableUsage:protected] = 
[_blDisableShopCheck:protected] = 1
[_aFieldNames:protected] = Array
(
[oxid] = 0
[oxparentid] = 0
[oxleft] = 0
[oxright] = 0
[oxrootid] = 0
[oxsort] = 0
[oxactive] = 1
[oxhidden] = 0
[oxshopid] = 0
[oxshopincl] = 0
[oxshopexcl] = 0
[oxtitle] = 1
[oxdesc] = 1
[oxlongdesc] = 1
[oxthumb] = 1
[oxextlink] = 0
[oxtemplate] = 0
[oxdefsort] = 0
[oxdefsortmode] = 0
[oxpricefrom] = 0
[oxpriceto] = 0
[oxicon] = 0
[oxpromoicon] = 0
[oxvat] = 0
[oxskipdiscounts] = 0
[oxshowsuffix] = 0
[smxbaumuster] = 0
)

[_blIsNewCache:protected] = 
[_sCacheKey:protected] = allviews_i18n
[_aSkipSaveFields:protected] = Array
(
)

[_sExistKey:protected] = oxid
[_blIsDerived:protected] = 
[_blReadOnly:protected] = 
[_blIsInList:protected] = 
[_isLoaded:protected] = 1
[_aInnerLazyCache:protected] = 
[oxcategories__oxid] = oxField Object
(
[value] = 214e377cb795b8a7e473188a78abd024
)

[oxcategories__oxparentid] = oxField Object
(
[rawValue] = oxrootid
)

[oxcategories__oxleft] = oxField Object
(
[rawValue] = 1
)

[oxcategories__oxright] = oxField Object
(
[rawValue] = 198
)

[oxcategories__oxrootid] = oxField Object
(
[rawValue] = 214e377cb795b8a7e473188a78abd024
)

[oxcategories__oxsort] = oxField Object
(
[rawValue] = -1
)

[oxcategories__oxactive] = oxField Object
(
[rawValue] = 1
)

[oxcategories__oxhidden] = oxField Object
(
[rawValue] = 0
)

[oxcategories__oxshopid] = oxField Object
(
[value] = 1
)

[oxcategories__oxshopincl] = oxField Object
(
[rawValue] = 1
)

[oxcategories__oxshopexcl] = oxField Object
(
[rawValue] = 0
)

[oxcategories__oxtitle] = oxField Object
(
[rawValue] = Baumuster
)

[oxcategories__oxdesc] = oxField Object
(
[rawValue] = Sammelkategorie für Baumuster Baum
)

[oxcategories__oxlongdesc] = oxField Object
(
[value] = 
)

[oxcategories__oxthumb] = oxField Object
(
[rawValue] = 
)

[oxcategories__oxextlink] = oxField Object
(
[rawValue] = 
)

[oxcategories__oxtemplate] = oxField Object
(
[rawValue] = 
)

[oxcategories__oxdefsort] = oxField Object
(
[rawValue] = 
)

[oxcategories__oxdefsortmode] = oxField Object
(
[rawValue] = 0
)


Re: [oxid-dev-general] Unterkategorie einer Kategorie

2012-04-19 Thread Marco Steinhaeuser
Hello Ralf,

nice to see you on this mailing list finally :-)
Please note that we cannot accept other languages than English here as there 
are a lot of non-native Germans subscribed. Alternatively, you have the choice 
to post into the German dev forum:
http://www.oxid-esales.com/forum/forumdisplay.php?f=20

Will you post it once again?

Thanks for understanding.
Marco



From: dev-general-boun...@lists.oxidforge.org 
[dev-general-boun...@lists.oxidforge.org] on behalf of Ralf Kronen 
[ralf.kronen.fo...@googlemail.com]
Sent: Thursday, April 19, 2012 11:47 AM
To: dev-general@lists.oxidforge.org
Subject: [oxid-dev-general] Unterkategorie einer Kategorie

Hallo,

ich möchte den Baum einer bestimmten Kategorie haben:

class smx_oxviewconfig extends smx_oxviewconfig_parent
{
public function getBaumuster()
{
$myConfig = $this-getConfig();
$sCatID = $myConfig-getConfigParam('sBaumusterCatId');



$oCat = oxNew('oxcategory');
$oCat-load($sCatID);



$oSubCat = $oCat-getSubCats();



return $oSubCat;
} //function
}

Die Kategorie ist so aufgebaut (und alle korrekt angelegt mit Artikeln, aktiv 
usw):
Hauptkategorie (sBaumusterCatId)
- Unter 1
-- Unterunter 1
-- Unterunter 2
- Unter 2
- Unter 3

Das soll auch im Template verfügbar sein über [{assign var=obm 
value=$oViewConf-getBaumuster()}]. Leider gibt das getSubCats immer ein leeres 
Array zurück. Was fehlt ihm hier, was muss nach load() noch folgen?

Das Objekt $oCat sieht auch OK aus, es fehlen nur die Subcats:

smx_oxcategory Object
(
[_aSubCats:protected] = Array
(
)

[_aContentCats:protected] = Array
(
)

[_sClassName:protected] = oxcategory
[_iNrOfArticles:protected] =
[_blIsVisible:protected] =
[_blExpanded:protected] =
[_blHasSubCats:protected] =
[_blHasVisibleSubCats:protected] =
[_blIsSeoObject:protected] = 1
[_blUseLazyLoading:protected] =
[_sDynImageDir:protected] =
[_blTopCategory:protected] =
[_aIds:protected] = Array
(
)

[_aStdUrls:protected] = Array
(
)

[_aSeoUrls:protected] = Array
(
)

[_iLanguage:protected] = 0
[_blEmployMultilanguage:protected] = 1
[_sOXID:protected] = 214e377cb795b8a7e473188a78abd024
[_iShopId:protected] = 1
[_blIsSimplyClonable:protected] = 1
[_aErrors:protected] = Array
(
)

[_sCoreTable:protected] = oxcategories
[_sViewTable:protected] =
[_blForceCoreTableUsage:protected] =
[_blDisableShopCheck:protected] = 1
[_aFieldNames:protected] = Array
(
[oxid] = 0
[oxparentid] = 0
[oxleft] = 0
[oxright] = 0
[oxrootid] = 0
[oxsort] = 0
[oxactive] = 1
[oxhidden] = 0
[oxshopid] = 0
[oxshopincl] = 0
[oxshopexcl] = 0
[oxtitle] = 1
[oxdesc] = 1
[oxlongdesc] = 1
[oxthumb] = 1
[oxextlink] = 0
[oxtemplate] = 0
[oxdefsort] = 0
[oxdefsortmode] = 0
[oxpricefrom] = 0
[oxpriceto] = 0
[oxicon] = 0
[oxpromoicon] = 0
[oxvat] = 0
[oxskipdiscounts] = 0
[oxshowsuffix] = 0
[smxbaumuster] = 0
)

[_blIsNewCache:protected] =
[_sCacheKey:protected] = allviews_i18n
[_aSkipSaveFields:protected] = Array
(
)

[_sExistKey:protected] = oxid
[_blIsDerived:protected] =
[_blReadOnly:protected] =
[_blIsInList:protected] =
[_isLoaded:protected] = 1
[_aInnerLazyCache:protected] =
[oxcategories__oxid] = oxField Object
(
[value] = 214e377cb795b8a7e473188a78abd024
)

[oxcategories__oxparentid] = oxField Object
(
[rawValue] = oxrootid
)

[oxcategories__oxleft] = oxField Object
(
[rawValue] = 1
)

[oxcategories__oxright] = oxField Object
(
[rawValue] = 198
)

[oxcategories__oxrootid] = oxField Object
(
[rawValue] = 214e377cb795b8a7e473188a78abd024
)

[oxcategories__oxsort] = oxField Object
(
[rawValue] = -1
)

[oxcategories__oxactive] = oxField Object
(
[rawValue] = 1
)

[oxcategories__oxhidden] = oxField Object
(
[rawValue] = 0
)

[oxcategories__oxshopid] = oxField Object
(
[value] = 1
)

[oxcategories__oxshopincl] = oxField Object
(
[rawValue] = 1
)

[oxcategories__oxshopexcl] = oxField Object
(
[rawValue] = 0
)

[oxcategories__oxtitle] = oxField Object
(
[rawValue] = Baumuster
)

[oxcategories__oxdesc] = oxField 

[oxid-dev-general] Changed Update Cycles and Maintenance Releases

2012-04-19 Thread Marco Steinhaeuser
Hi everybody,

starting with the release of version 4.6.0 we will introduce some changes in 
the OXID eShop update cycles. We will also expand our maintenance activities 
for previous versions of OXID eShop. Please read more about it in Erik's blog 
post:
http://www.oxid-esales.com/en/news/blog/oxid-eshop-update-cycles-and-maintenance-releases

Regards
Marco 
___
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general


Re: [oxid-dev-general] Performance-Tweaking

2012-04-19 Thread samer
Hi there,

could anyone help me with this issue?

Best regards
Riccardo Samer

Von: dev-general-boun...@lists.oxidforge.org 
[mailto:dev-general-boun...@lists.oxidforge.org] Im Auftrag von 
sa...@oberberg.net
Gesendet: Dienstag, 17. April 2012 15:30
An: dev-general@lists.oxidforge.org
Betreff: [oxid-dev-general] Performance-Tweaking

Hi there,

our last shops were all pretty small and the traffic, they produced, was also 
quite small. But now we have to host and develop a big shop. So we want and 
have to tweak the server and the shop. I've read the whitepaper from Oxid about 
that topic. But I think there are more possibilities to tweak the shop and the 
system.

Do you have any experiences about MySQL-config-tweaks or caching-systems like 
memcached? Is the option to activate the oxid-caching-system only implemented 
in the EE?

Best regards

Riccardo Samer
___
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general

Re: [oxid-dev-general] Performance-Tweaking

2012-04-19 Thread Alexander Kludt


  
  
Hi,
  
  the "real" caching goes only for EE - you can use memcached to
  tune the performance a little. 
  If you want to tweak your performance you should start doing this
  by compressing all of the 
  assets e.g. use css/js compression and sprites for images and get
  rid of unneeded js/css. 
  
  You should use yslow (firebug plugin) to get a measure of what you
  can optimize without server changes.

-- 
  
  
  
  mit freundlichen Gren
  Alexander Kludt
  
  
  __
  Phone: 09283-5925453
  Fax: 09283-592671
  Skype: kingschnulli
  Email: cod...@aggrosoft.de
  Website: www.aggrosoft.de
  
  __
  Aggrosoft it intelligence GbR
  Tannstrasse 12
  95111 Rehau
  GERMANY
  
  Sitz Rehau, Amtsgericht Hof
  Steuernummer: 223/165/54508
  Ust.-Id. Nr. gem  27 a Umsatzsteuergesetz: DE260722773
  
  ___
  Diese Nachricht ist nur fr den Empfnger () bestimmt, sollten
  Sie nicht der Empfnger sein lschen Sie diese Nachricht
  umgehend und geben Sie uns bitte per Email (cod...@aggrosoft.de)
  Bescheid
  ber den flschlichen Erhalt. 
  




  

  
  

  

sa...@oberberg.net
  19. April 2012 12:43
  

  
  




  Hi there,
  
  could anyone help me with this issue?
  
  
Best regards
Riccardo Samer
  
  
  

  Von:
  dev-general-boun...@lists.oxidforge.org
  [mailto:dev-general-boun...@lists.oxidforge.org] Im
Auftrag von sa...@oberberg.net
  Gesendet: Dienstag, 17. April 2012 15:30
  An: dev-general@lists.oxidforge.org
  Betreff: [oxid-dev-general]
  Performance-Tweaking

  
  
  Hi there,
  
  our last shops were
  all pretty small and the traffic, they produced, was also
  quite small. But now we have to host and develop a big
  shop. So we want and have to tweak the server and the
  shop. Ive read the whitepaper from Oxid about that topic.
  But I think there are more possibilities to tweak the shop
  and the system. 
  
  Do you have any
  experiences about MySQL-config-tweaks or caching-systems
  like memcached? Is the option to activate the
  oxid-caching-system only implemented in the EE?
  
  Best
  regards
  
  Riccardo
  Samer

___
  dev-general mailing list
  dev-general@lists.oxidforge.org
  http://dir.gmane.org/gmane.comp.php.oxid.general

  
  

  

sa...@oberberg.net
  17. April 2012 15:30
  

  
  




  Hi there,
  
  our last shops were
  all pretty small and the traffic, they produced, was also
  quite small. But now we have to host and develop a big
  shop. So we want and have to tweak the server and the
  shop. Ive read the whitepaper from Oxid about that topic.
  But I think there are more possibilities to tweak the shop
  and the system. 
  
  Do you have any
  experiences about MySQL-config-tweaks or caching-systems
  like memcached? Is the option to activate the
  oxid-caching-system only implemented in the EE?
  
  Best
  regards
  
  Riccardo
  Samer

___
  dev-general mailing list
  dev-general@lists.oxidforge.org
  http://dir.gmane.org/gmane.comp.php.oxid.general
  

  

___
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general

Re: [oxid-dev-general] Performance-Tweaking [T-3SF8EIKAE4-34]

2012-04-19 Thread Andreas Ziethen
Hi Riccardo,

your question is a little bit like asking: can somebody teach me how to build a 
house?
Performance optimizatzion on huge OXID installations needs a lot of experience 
and may differ from shop to shop. It depends on a lot of differend issues. So 
it's just not possible to explain that in a few lines here.

If you want to save time, look for somebody who already has got all that 
experience, rent him for a day or two, let him do the main work and try to 
learn as much as possible from him! ;)

Greetings!
Andy

--
anzido consulting
Andreas Ziethen
Iltisweg 3
44269 Dortmund

Tel.: 0231 - 60 71 079
Fax: 0231 - 60 71 081

Ecommerce Consulting - Projektmanagment - Technische Konzeption - Entwicklung

-Ursprüngliche Daten-
Datum: 19.04.2012 12:43:31
Von: sa...@oberberg.net
An: dev-general@lists.oxidforge.org
Betreff: Re: [oxid-dev-general] Performance-Tweaking
Vorgang: T-3SF8EIKAE4-34

 Hi there,

 could anyone help me with this issue?

 Best regards

 Riccardo Samer

 Von: dev-general-boun...@lists.oxidforge.org 
 [mailto:dev-general-boun...@lists.oxidforge.org] Im Auftrag von 
 sa...@oberberg.net
 Gesendet: Dienstag, 17. April 2012 15:30
 An: dev-general@lists.oxidforge.org
 Betreff: [oxid-dev-general] Performance-Tweaking

 Hi there,

 our last shops were all pretty small and the traffic, they produced, was also 
 quite small. But now we have to host and develop a big shop. So we want and 
 have to tweak the server and the shop. Irsquove read the whitepaper from Oxid 
 about that topic. But I think there are more possibilities to tweak the shop 
 and the system.

 Do you have any experiences about MySQL-config-tweaks or caching-systems like 
 memcached? Is the option to activate the oxid-caching-system only implemented 
 in the EE?

 Best regards

 Riccardo Samer

 ___
 dev-general mailing list dev-general@lists.oxidforge.org 
 http://dir.gmane.org/gmane.comp.php.oxid.general
___
dev-general mailing list
dev-general@lists.oxidforge.org
http://dir.gmane.org/gmane.comp.php.oxid.general

Re: [oxid-dev-general] Subcategory from a category

2012-04-19 Thread Kai Gazmaga
Hi Ralf,

why not simply get the complete path and then get the part without the 
root-/main-category? Therefore a new function in oxcategorylist should do the 
trick? The tree is built early, so it should be available when you need it. But 
be careful: there are no full oxcategory-Objects in the tree!! I had to deal 
with that a few weeks ago while writing a special Head-Navigation with 
extensive additional functionality. If you need the full object, create it, or 
change oxcategorylist::_getSqlSelectFieldsForTree(...) and maybe 
oxcategorylist::_ppBuildTree(), to have the needed fields in the cat-objects in 
the tree.

Regards, Kai

-Ursprüngliche Nachricht-
Von: dev-general-boun...@lists.oxidforge.org 
[mailto:dev-general-boun...@lists.oxidforge.org] Im Auftrag von Ralf Kronen
Gesendet: Donnerstag, 19. April 2012 14:00
An: dev-general@lists.oxidforge.org
Betreff: Re: [oxid-dev-general] Subcategory from a category

Hi,

thank you, that's right, but i want the tree without the Maincategory.

For Example:
Maincategory = $myConfig-getConfigParam('sBaumusterCatId')
- Sub 1
-- Sub Sub 1
-- Sub Sub 2
- Sub 2
- Sub 3

Return to the template:
Sub 1
- Sub Sub 1
- Sub Sub 2
Sub 2
Sub 3

cheers
ralf




Am 19.04.2012 um 12:29 schrieb Ferber Sven:

 Hello there,
 
 loading a category does not load its category tree, so _aSubCats will always 
 be an empty array.
 Have a look at oxcategorylist-buildTree() to get the required category tree 
 array.
 
 Regards
 Sven
 
 
 Am 19.04.12 12:21 schrieb Ralf Kronen unter 
 ralf.kronen.fo...@googlemail.com:
 
 Hello Marco,
 
 i'm sorry. I try it in english :-) i have already posted in the german 
 dev forum :-)
 
 I would like to have the tree of a certain category:
 
 class smx_oxviewconfig extends smx_oxviewconfig_parent {
public function getBaumuster()
{
$myConfig = $this-getConfig();
$sCatID = $myConfig-getConfigParam('sBaumusterCatId');
 
$oCat = oxNew('oxcategory');
$oCat-load($sCatID);
 
$oSubCat = $oCat-getSubCats();
 
return $oSubCat;
} //function
 }
 
 The category ist structured like this (everything is ok with the 
 Subcats and the articles)
 
 Maincategory = $myConfig-getConfigParam('sBaumusterCatId')
 - Sub 1
 -- Sub Sub 1
 -- Sub Sub 2
 - Sub 2
 - Sub 3
 
 But $oCat-getSubCats() returns a empty array. Is anything need after 
 $oCat-load($sCatID)?
 
 This is the $oCat Object:
 
 smx_oxcategory Object
 (
[_aSubCats:protected] = Array
(
)
 
[_aContentCats:protected] = Array
(
)
 
[_sClassName:protected] = oxcategory
[_iNrOfArticles:protected] =
[_blIsVisible:protected] =
[_blExpanded:protected] =
[_blHasSubCats:protected] =
[_blHasVisibleSubCats:protected] =
[_blIsSeoObject:protected] = 1
[_blUseLazyLoading:protected] =
[_sDynImageDir:protected] =
[_blTopCategory:protected] =
[_aIds:protected] = Array
(
)
 
[_aStdUrls:protected] = Array
(
)
 
[_aSeoUrls:protected] = Array
(
)
 
[_iLanguage:protected] = 0
[_blEmployMultilanguage:protected] = 1
[_sOXID:protected] = 214e377cb795b8a7e473188a78abd024
[_iShopId:protected] = 1
[_blIsSimplyClonable:protected] = 1
[_aErrors:protected] = Array
(
)
 
[_sCoreTable:protected] = oxcategories
[_sViewTable:protected] =
[_blForceCoreTableUsage:protected] =
[_blDisableShopCheck:protected] = 1
[_aFieldNames:protected] = Array
(
[oxid] = 0
[oxparentid] = 0
[oxleft] = 0
[oxright] = 0
[oxrootid] = 0
[oxsort] = 0
[oxactive] = 1
[oxhidden] = 0
[oxshopid] = 0
[oxshopincl] = 0
[oxshopexcl] = 0
[oxtitle] = 1
[oxdesc] = 1
[oxlongdesc] = 1
[oxthumb] = 1
[oxextlink] = 0
[oxtemplate] = 0
[oxdefsort] = 0
[oxdefsortmode] = 0
[oxpricefrom] = 0
[oxpriceto] = 0
[oxicon] = 0
[oxpromoicon] = 0
[oxvat] = 0
[oxskipdiscounts] = 0
[oxshowsuffix] = 0
[smxbaumuster] = 0
)
 
[_blIsNewCache:protected] =
[_sCacheKey:protected] = allviews_i18n
[_aSkipSaveFields:protected] = Array
(
)
 
[_sExistKey:protected] = oxid
[_blIsDerived:protected] =
[_blReadOnly:protected] =
[_blIsInList:protected] =
[_isLoaded:protected] = 1
[_aInnerLazyCache:protected] =
[oxcategories__oxid] = oxField Object
(
[value] = 214e377cb795b8a7e473188a78abd024
)
 
[oxcategories__oxparentid] = oxField Object
(
[rawValue] = oxrootid
)
 
[oxcategories__oxleft] = oxField Object
(
[rawValue] = 1
)
 
[oxcategories__oxright] = oxField Object
(