# default rules ## Ustawienia różnych subdomen z adresami ## wymaga pliku sfRequestHostRoute w /lib ## ustawienie url_for ##Called from sub1.example.com Result ##url_for('@homepage_sub1') / ##url_for('@homepage_sub1', true) http://sub1.example.com/ ##url_for('@homepage_sub2') http://sub2.example.com/ ##url_for('@homepage_sub2', true) http://sub2.example.com/ ##Called from sub2.example.com Result ##url_for('@homepage_sub1') http://sub1.example.com/ ##url_for('@homepage_sub1', true) http://sub1.example.com/ ##url_for('@homepage_sub2') / ##url_for('@homepage_sub2', true) http://sub2.example.com/ #homepage_sub1: # url: / # param: { module: spacer, action: index } # class: sfRequestHostRoute # requirements: # sf_host: #homepage_sub2: # url: / # param: { module: portal, action: index } # class: sfRequestHostRoute # requirements: # sf_host: homepage: url: / # param: { module: portal, action: index } param: { module: portal, action: strona, pid: 421 } ### Portal portal_opis: url: /strona-:pid-:t.html param: { module: portal, action: strona } requirements: { pid: \d+ } portal_pager: url: /strona-:pid-:t-strona-:page.html param: { module: portal, action: strona } requirements: { pid: \d+ } kontakt: url: /kontakt-:adresat.html param: { module: kontakt, action: index } kontakt_captcha: url: /kontakt/captcha.html param: { module: kontakt, action: captcha } ### Aktualnosci news_opis: url: /aktualnosc-:kat_id-:id-:junk.html param: { module: aktualnosci, action: news } requirements: { id: \d+ } requirements: { kat_id: \d+ } news: url: /aktualnosc-:id-:junk.html param: { module: aktualnosci, action: news } requirements: { id: \d+ } news_archiwum_kategoria_page: url: /aktualnosci_archiwum-:kat_id-:junk-strona-:page.html param: { module: aktualnosci, action: archiwum } requirements: { kat_id: \d+ } news_kat_page: url: /aktualnosci-:kat_id-:junk-strona-:page.html param: { module: aktualnosci, action: index, junk: 'kategoria' } requirements: { kat_id: \d+ } news_kat: url: /aktualnosci-:kat_id-:junk.html param: { module: aktualnosci, action: index, junk: 'kategoria' } requirements: { kat_id: \d+ } news_archiwum_kategoria: url: /aktualnosci_archiwum-:kat_id-:junk.html param: { module: aktualnosci, action: archiwum } requirements: { kat_id: \d+ } news_index: url: /aktualnosci.html param: { module: aktualnosci, action: index } news_archiwum: url: /aktualnosci_archiwum.html param: { module: aktualnosci, action: archiwum } news_newsbox: url: /aktualnosci/news_box.html param: { module: aktualnosci, action: getNewsBox } news_newsbox_kategoria: url: /aktualnosci/news_box/:kat_id.html param: { module: aktualnosci, action: getNewsBox } requirements: { kat_id: \d+ } news_rss: url: /aktualnosci.xml param: { module: rss, action: news } # requirements: { pid: \d+ } news_kat_rss: url: /aktualnosci-:kid.xml param: { module: rss, action: news } # requirements: { kid: \d+ } promowane_json: url: /aktualnosci_promowane.html param: { module: aktualnosci, action: newsJSON } ### Kalendarz Imprez kali_lista: url: /wydarzenia.html param: { module: kalendarz_imprez, action: index } kali_lista_pager: url: /wydarzenia/strona/:page.html param: { module: kalendarz_imprez, action: index } requirements: { page: \d+ } kali_lista_raport_pdf: url: /wydarzenia/raport_pdf.html param: { module: kalendarz_imprez, action: index, pdf_report: true } kali_opis: url: /wydarzenie-:id-:junk.html param: { module: kalendarz_imprez, action: impreza } requirements: { id: \d+ } kali_podglad: url: /wydarzenie-podglad-:id-:junk.html param: { module: kalendarz_imprez, action: podglad } requirements: { id: \d+ } kali_y: url: /wydarzenia-:year.html param: { module: kalendarz_imprez, action: index } requirements: { year: \d+ } kali_ym: url: /wydarzenia-:year-:month.html param: { module: kalendarz_imprez, action: index } requirements: { year: \d+, month: \d+ } kali_ymd: url: /wydarzenia-:year-:month-:day.html param: { module: kalendarz_imprez, action: index } requirements: { year: \d+, month: \d+, day: \d+ } kali_rss: url: /wydarzenia.xml param: { module: rss, action: imprezy } ### Kalendarz Historyczny kalh_index: url: /kalendarium_historyczne.html param: { module: kalendarium, action: index } kalh_opis: url: /kalendarium-:id-:junk.html param: { module: kalendarium, action: wydarzenie } requirements: { id: \d+ } ### Galerie galp_list: url: /galeria_zdjec.html param: { module: galeria, action: list } galp_opis: url: /galeria-:id-:junk.html param: { module: galeria, action: index } requirements: { id: \d+ } galp_kategoria: url: /galeria-kategoria-:id-:junk.html param: { module: galeria, action: kategoria } requirements: { id: \d+ } galp_temat: url: /galeria-temat-:id-:junk.html param: { module: galeria, action: temat } requirements: { id: \d+ } galp_popularne: url: /portal_popularne_galerie.html param: { module: galeria, action: list, sort: rank } galp_najnowsze: url: /portal_najnowsze_galerie.html param: { module: galeria, action: list, sort: date } ### MION (Dla niepełnosprawnych) mion: url: /mion.html param: { module: mion, action: index } mion_index: url: /mion-:page.html param: { module: mion, action: index } mion_id: url: /mion/dokument-:id.html param: { module: mion, action: pokaz } requirements: { id: \d+ } mion_junk: url: /mion/dokument-:id-:junk.html param: { module: mion, action: pokaz } requirements: { id: \d+ } ### e-Publikacje epub: url: /epublikacje.html param: { module: epublikacje, action: index } epub_index: url: /epublikacje-:page.html param: { module: epublikacje, action: index } epub_kat_pages: url: /epublikacje-kat-:kat_id-:page.html param: { module: epublikacje, action: kategoria } requirements: { kat_id: \d+ } epub_grupa: url: /epublikacje-kat-:kat_id.html param: { module: epublikacje, action: kategoria } requirements: { kat_id: \d+ } epub_id: url: /epublikacja-:id.html param: { module: epublikacje, action: show } requirements: { id: \d+ } epub_junk: url: /epublikacja-:id-:junk.html param: { module: epublikacje, action: show } requirements: { id: \d+ } ### Multimedia multimedia: url: /multimedia.html param: { module: multimedia, action: index } multimedia_opis: url: /multimedia-:id-:junk.html param: { module: multimedia, action: show } requirements: { id: \d+ } multimedia_kategoria: url: /multimedia-kategoria-:id-:junk.html param: { module: multimedia, action: kategoria } requirements: { id: \d+ } multimedia_temat: url: /multimedia-temat-:id-:junk.html param: { module: multimedia, action: temat } requirements: { id: \d+ } ### Mapa strony mapa_strony: url: /mapa_strony.html param: { module: mapaStrony, action: index } #wyswietlenie pojedynczego dokumentu dokument: url: /dokument/:dok/:slug.html param: { module: dokumenty, action: dokument } requirements: { dok: \d+ } default_index: url: /:module param: { action: index } default: url: /:module/:action/*