1 | from Products.CMFCore.permissions import ManagePortal |
---|
2 | |
---|
3 | from quintagroup.seoptimizer.config import * |
---|
4 | |
---|
5 | FIELDS = ['seo_title', 'seo_description', 'seo_keywords'] |
---|
6 | |
---|
7 | PROPS = {'stop_words':STOP_WORDS, 'fields':FIELDS} |
---|
8 | |
---|
9 | CUSTOM_METATAGS = [{'meta_name' : 'metatag1', |
---|
10 | 'meta_content' : 'metatag1value'}, |
---|
11 | {'meta_name' : 'metatag2', |
---|
12 | 'meta_content' : 'metatag2value'}, |
---|
13 | {'meta_name' : 'metatag3', |
---|
14 | 'meta_content' : ''} |
---|
15 | ] |
---|
16 | DEFAULT_METATAGS_ORDER = ['DC.contributors', 'DC.creator', 'DC.date.created', |
---|
17 | 'DC.date.modified','DC.description', 'DC.distribution', |
---|
18 | 'DC.format', 'DC.language', 'DC.publisher', 'DC.rights', |
---|
19 | 'DC.subject', 'DC.type', 'description', 'distribution', |
---|
20 | 'keywords', 'robots'] |
---|
21 | DEFAULT_METATAGS_ORDER.sort() |
---|
22 | VIEW_METATAGS = ['DC.creator', 'DC.format', 'DC.date.modified', 'DC.date.created', 'DC.type', |
---|
23 | 'DC.distribution', 'description', 'keywords', 'robots', 'distribution'] |
---|
24 | GLOBAL_CUSTOM_METATAGS = {'default_custom_metatags':'metatag1|global_metatag1value\nmetatag4|global_metatag4value'} |
---|
25 | |
---|
26 | CONFIGLETS = ({'id':'qSEOptimizer', |
---|
27 | 'name':'Search Engine Optimizer', |
---|
28 | 'action':'string:${portal_url}/seo-controlpanel', |
---|
29 | 'condition':'', |
---|
30 | 'category':'Products', |
---|
31 | 'visible':1, |
---|
32 | 'appId':'qSEOptimizer', |
---|
33 | 'permission':ManagePortal},) |
---|
34 | |
---|
35 | qSEO_CONTENT = ['File','Document','News Item'] |
---|
36 | qSEO_FOLDER = [] |
---|
37 | qSEO_TYPES = qSEO_CONTENT + qSEO_FOLDER |
---|
38 | |
---|
39 | SEO_CONTENT = ['File', 'Document', 'News Item'] |
---|
40 | CONTENTTYPES_WITH_SEOACTION = ['File', 'Document', 'News Item', 'Folder', 'Event'] |
---|
41 | CONTENTTYPES_WITH_SEOACTION.sort() |
---|