change frequency for pages generated by simple_module

edited August 2015 in Modules
Hi!
Please tell me how to configure setting $default_frequency for pages generated with the simple modules, eg
$config['modules']['news'] = array( 'preview_path' => 'news/{slug}', ...
This creates an entry for the sitemap.xml which uses variable $default_frequency or $page['frequency'], if I want that all the links at news/{slug} had 'frequency' such as 'weekly', how to do it correctly?
Thank you in advance!

Comments

  • edited 2:53AM
    If you are using the static view file at views/sitemap_xml.php, you can change the value in the view file. If you created the sitemap.xml file in the CMS which uses the sitemap.xml layout, you can edit the views/_layouts/sitemap_xml.php file.
  • edited 2:53AM
    Excuse me, I'm probably wrong asked, paraphrasing:

    How can I set 'frequency' - 'weekly' for pages created with a simple module?
    If I change value of $default_frequency in view file, it changes the frequency for all pages, I need pages only with slug 'news/{slug}' had frequency 'weekly'.
    Maybe I need to specify a frequency value somewhere in the MY_fuel_modules?
  • edited 2:53AM
    That's currently not a supported property of a module. In the foreach looping logic of the layouts you can check the URI values and change it appropriately.
Sign In or Register to comment.