Discussion:
[TYPO3-english] dd_googlesitemap for extensions
Rik Willems
2009-04-02 16:04:24 UTC
Permalink
Hi all, and Dmitry,

I am working on an extra for the dd_googlesitemap extension that would
be very useful for e-commerce websites that use the commerce extension.
My thought is to create a sitemap that would include all products in
that installation.

But, the dd_googlesitemap extension is currently only suited (hardcoded)
for either normal (pages) or news (tt_news). I now 'hacked' it to enable
my own extra. How could we go on to make dd_googlesitemap in such a way
that it could be extended for the different available extensions like
commerce? I'm looking forward to any insights.

Cheers!

Rik
Dmitry Dulepov
2009-04-02 16:50:47 UTC
Permalink
Hi!
Post by Rik Willems
But, the dd_googlesitemap extension is currently only suited (hardcoded)
for either normal (pages) or news (tt_news). I now 'hacked' it to enable
my own extra. How could we go on to make dd_googlesitemap in such a way
that it could be extended for the different available extensions like
commerce? I'm looking forward to any insights.
We can discuss it here and you can submit patches to the bug tracker.
--
Dmitry Dulepov
My TYPO3 blog: http://dmitry-dulepov.com/article/the-best-of-march-2009.html
Skype: liels_bugs
Rik Willems
2009-04-02 17:57:45 UTC
Permalink
Hi!

Thanks for your response.

Basically what needs to be done is changing the switch in the main
function in class.tx_ddgooglesitemap_eid.php to accomodate for
additional sitemap types. Now it can only switch the current two types.

The switch calls a function for each of the two types that do the same.
If this is changed to a generic function it would be easy to add
additional types.

Of course it would be best if seperate extensions would add the extra
sitemap types. I'm unsure (lack of experience in extensions) how to
integrate extra extensions in dd_googlsitemaps. Perhaps you have a nice
insight about this matter.

You want suggestions in bugs.typo3.org or forge?

Cheers!

Rik
Post by Dmitry Dulepov
Hi!
Post by Rik Willems
But, the dd_googlesitemap extension is currently only suited (hardcoded)
for either normal (pages) or news (tt_news). I now 'hacked' it to enable
my own extra. How could we go on to make dd_googlesitemap in such a way
that it could be extended for the different available extensions like
commerce? I'm looking forward to any insights.
We can discuss it here and you can submit patches to the bug tracker.
Dmitry Dulepov
2009-04-02 19:08:08 UTC
Permalink
Hi!
Post by Rik Willems
Of course it would be best if seperate extensions would add the extra
sitemap types. I'm unsure (lack of experience in extensions) how to
integrate extra extensions in dd_googlsitemaps. Perhaps you have a nice
insight about this matter.
Usual TYPO3 hooks I think...
Post by Rik Willems
You want suggestions in bugs.typo3.org or forge?
The bug tracker for this extension exists at only one place: on forge.
--
Dmitry Dulepov
My TYPO3 blog: http://dmitry-dulepov.com/article/the-best-of-march-2009.html
Skype: liels_bugs
Rik Willems
2009-04-03 08:13:08 UTC
Permalink
Hooks would be best. But, I don't really know how to write/implement
those. First thing I did with hooks was recently, extending commerce
through an existing hook.

I'll put something into Forge and hopefully we can work out something nice.

Rik
Post by Dmitry Dulepov
Hi!
Post by Rik Willems
Of course it would be best if seperate extensions would add the extra
sitemap types. I'm unsure (lack of experience in extensions) how to
integrate extra extensions in dd_googlsitemaps. Perhaps you have a nice
insight about this matter.
Usual TYPO3 hooks I think...
Post by Rik Willems
You want suggestions in bugs.typo3.org or forge?
The bug tracker for this extension exists at only one place: on forge.
Loading...