Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make link object configurable via typoscript #4

Closed
dmitryd opened this issue Apr 11, 2013 · 4 comments

Comments

@dmitryd
Copy link
Owner

commented Apr 11, 2013

When creating news sitemaps it might be cool to have month and year parameters encoded into the resulting realurl. to be able to achieve that a configurable typolink setting via typoscript instead of a hard coded array would be nice.

Something like that:

tx_ddgooglesitemap.newsLink = TEXT
tx_ddgooglesitemap.newsLink {
   typolink.forceAbsoluteUrl = 1
   typolink.returnLast = url
   typolink.parameter.field = singlePid
   typolink.additionalParams.cObject = COA
   typolink.additionalParams.cObject {
      10 = TEXT
      10.wrap = &tx_ttnews[tt_news]=|
      10.field = uid
      20 = TEXT
      20.wrap = &tx_ttnews[month]=|
      20.field = datetime
      20.strftime = %m
      30 = TEXT
      30.wrap = &tx_ttnews[year]=|
      30.field = datetime
      30.strftime = %y
   }
}

Imported from Forge: http://forge.typo3.org/issues/47059

@ghost ghost assigned dmitryd Apr 11, 2013

@dmitryd

This comment has been minimized.

Copy link
Owner Author

commented Feb 14, 2014

Note: use typolink.parameter.current = 1!

@dmitryd dmitryd closed this in 417cded Feb 14, 2014

@helmut-winkelbach

This comment has been minimized.

Copy link

commented Feb 9, 2015

Hi Dimitry,
what do i wrong with the implementation for tx_news (latest versions of all) as the news aren't shown up in the sitemap?
http://www.bahai.by/index.php?eID=dd_googlesitemap

How should i change the script above?

Thanks for your support
Helmut

@dmitryd

This comment has been minimized.

Copy link
Owner Author

commented Feb 9, 2015

dd_googlesitemap works with tt_news, not tx_news.

@helmut-winkelbach

This comment has been minimized.

Copy link

commented Feb 9, 2015

dd_googlesitemap_dmf did it!

You need the version on githup which is for TYPO3 CMS 6.2
https://github.com/dohomi/dd_googlesitemap_dmf

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.