Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

Export Categories and Images via Custom PHP Script (for Flash Menu/Banner whatever)
Total Posts:  46
Joined:  2008-01-17


This one would be really useful for a flash Menu/Banner or for a sitemap:
Generate the “top level” category names and links (eventually also with according top positioned images).


I just started out but have this problem:
I do not see how to use the core functionality without the templating system.
The XML export should be generated in a single file.

How to initialize the shop object?
With the code below I get obvious: Fatal error: Using $this when not in object context




if (!
file_exists($mageFilename)) {
if (is_dir('downloader')) {
("Location: downloader");
else {
echo $mageFilename." was not found";

require_once $mageFilename;



#ini_set('display_errors', 1);

foreach ($this->getStoreCategories() as $_category): ?>
<a href="<?php echo $this->getCategoryUrl($_category); ?>"><?php echo $this->htmlEscape($_category->getName()); ?></a>
<?php endforeach ?>



Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top