Ticket #1617 (new defect)

Opened 3 months ago

Unify config parsing for certain libs and factor out to separate place

Reported by: lakiboy Assigned to: demian
Priority: normal Milestone: 0.9.1 - polishing
Component: SGL - Config Severity: open
Keywords: Cc:

Description

Example config string

strategies = "
    SGL_Sitemap_ArrayNavigation: changefreq:monthly, rootNode:2;
    SGL_Sitemap_StaticLinks:     changefreq:monthly, skipMultiLingual:1, path:/modules/sitemap/staticLinks.ini;
    SGL_Sitemap_FeedReader:      changefreq:monthly, skipMultiLingual:1, path:/modules/sitemap/feeds.ini,       forceCache:0
"

Example result

array (
  'SGL_Sitemap_ArrayNavigation' => 
  array (
    'changefreq' => 'monthly',
    'rootNode' => '2',
  ),
  'SGL_Sitemap_StaticLinks' => 
  array (
    'changefreq' => 'monthly',
    'skipMultiLingual' => '1',
    'path' => '/modules/sitemap/staticLinks.ini',
  ),
  'SGL_Sitemap_FeedReader' => 
  array (
    'changefreq' => 'monthly',
    'skipMultiLingual' => '1',
    'path' => '/modules/sitemap/feeds.ini',
  ),
)

This system is already used for Sitemap module, can be applied to Siteexporter and many others.