Changeset 1261 in products


Ignore:
Timestamp:
Sep 8, 2009 10:42:27 AM (11 years ago)
Author:
liebster
Message:

Fixed bugs in metatags viewlet

Location:
quintagroup.seoptimizer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/trunk/docs/HISTORY.txt

    r1183 r1261  
    22========= 
    33 
     42.0.9 (unreleased) 
     5------------------ 
     6 
     7- Fixed bugs in metatags viewlet 
     8  [liebster] 
    49 
    5102.0.8 (2009-07-28) 
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/viewlets.py

    r1052 r1261  
    121121            metaTags[key] = value 
    122122 
    123         # add custom meta tags (added from qseo tab by user) for given context 
    124         property_prefix = 'qSEO_custom_' 
    125         for property, value in context.propertyItems(): 
    126             idx = property.find(property_prefix) 
    127             if idx == 0 and len(property) > len(property_prefix): 
    128                 metaTags[property[len(property_prefix):]] = value 
     123        # add custom meta tags (added from qseo tab by user) for given context and default from configlet 
     124        custom_meta_tags = seo_context.seo_customMetaTags() 
     125        for tag in custom_meta_tags: 
     126            metaTags[tag['meta_name']] = tag['meta_content'] 
    129127 
    130128        # Set the additional matching keywords, if any 
Note: See TracChangeset for help on using the changeset viewer.