Exemplo n.º 1
0
        private void PopulateSeoData(IDictionary<string, string> parameters)
        {
            var seoHelper = new SeoHelper(_view, parameters);

            //SEO Title
            var pageTitle = seoHelper.BuildListViewTitleFromFormula(_viewSettings, _view.SearchSettings);
            var seoData = seoHelper.PopulateListViewSeoData(_viewSettings, pageTitle);

            _view.ResponseParameters.Add(CommonParameters.SeoData, seoData);
        }
Exemplo n.º 2
0
        private void PopulateSeoData(ModuleInstanceView parent, OrgUnitPublishedDto location, IDictionary<string, string> parameters)
        {
            var seoHelper = new SeoHelper(parent, parameters);

            //SEO Data
            var seoData = seoHelper.PopulateDetailViewSeoData(_viewSettings, location);
            parent.ResponseParameters.Add(CommonParameters.SeoData, seoData);

            //SEO Schema
            var seoSchema = seoHelper.BuildSeoSchemaField(location);

            if (!string.IsNullOrEmpty(seoSchema))
                parent.ResponseParameters.Add(CommonParameters.SeoSchema, seoSchema);
        }