Changeset 10229 for main/ngren.theme


Ignore:
Timestamp:
26 May 2013, 14:57:05 (11 years ago)
Author:
fafalter
Message:

New frontpage view. To avoid strage behaviour of the "Edit" Button. Now the frontpage view needs to be applied to the frontpage.

Location:
main/ngren.theme/branches/filip-fixes/ngren/theme
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • main/ngren.theme/branches/filip-fixes/ngren/theme/browser/configure.zcml

    r10190 r10229  
    44    xmlns:plone="http://namespaces.plone.org/plone"
    55    i18n_domain="ngren.theme">
    6 
     6   
     7  <include package="plone.app.contentmenu" />
     8 
    79  <interface
    810      interface=".interfaces.IThemeSpecific"
     
    5557   <browser:viewlet
    5658        name="plone.slides_viewlet"
     59        for="Products.CMFCore.interfaces.ISiteRoot"
    5760        manager="plone.app.layout.viewlets.interfaces.IAboveContentTitle"
    5861        class=".slide.SlideViewlet"
     
    6265   <browser:viewlet
    6366        name="plone.featured_viewlet"
     67        for="Products.CMFCore.interfaces.ISiteRoot"
    6468        manager="plone.app.layout.viewlets.interfaces.IAboveContentTitle"
    6569        class=".featured.FeaturedViewlet"
     
    6973   <browser:viewlet
    7074        name="plone.banner_viewlet"
     75        for="Products.CMFCore.interfaces.ISiteRoot"
    7176        manager="plone.app.layout.viewlets.interfaces.IAboveContentTitle"
    7277        class=".banner.BannerViewlet"
     
    96101        permission="zope2.View"
    97102        />
     103       
     104 <browser:page
     105    for="Products.CMFCore.interfaces.ISiteRoot"
     106    name="frontpageview"
     107    title="Frontpage View"
     108    menu="plone_displayviews"
     109    class=".frontpageview.FrontpageView"
     110    permission="zope2.View"
     111    layer=".interfaces.IThemeSpecific"
     112    />       
     113       
    98114</configure>
  • main/ngren.theme/branches/filip-fixes/ngren/theme/browser/stylesheets/main.css

    r10190 r10229  
    8080
    8181
     82#viewlet-below-content{
     83        display:block;
     84        clear:both;
     85}
     86
    8287
    8388/** responsive Banners **/
  • main/ngren.theme/branches/filip-fixes/ngren/theme/ngren_theme/rules.xml

    r10191 r10229  
    66    xmlns:xi="http://www.w3.org/2001/XInclude">
    77
    8         <theme href="home.html" css:if-content="body.section-front-page" />
     8        <theme href="home.html" css:if-content="body.template-frontpageview" />
    99        <theme href="example.html"/>
    1010        <notheme if="$ajax_load" />
     
    4444        <replace css:theme-children="#menu-collapse .nav" css:content-children="#portal-globalnav"/>
    4545        <!-- Frontpage Content -->
    46         <replace css:theme=".full-col" css:content=".full-col" css:if-content="body.section-front-page"/>
     46        <replace css:theme=".full-col" css:content=".full-col" css:if-content="body.template-frontpageview"/>
    4747        <replace css:theme=".rslides" css:content=".rslides"/>
    48         <replace css:theme=".left-col" css:content=".left-col" css:if-content="body.section-front-page"/>
     48        <replace css:theme=".left-col" css:content=".left-col" css:if-content="body.template-frontpageview"/>
    4949       
    5050       
    51         <replace css:theme-children=".right-col" css:content-children="#portal-column-two" css:if-not-content="body.section-front-page"/>
    52         <replace css:theme-children=".right-col" css:content-children="#newsportlet" css:if-content="body.section-front-page"/>
     51        <replace css:theme-children=".right-col" css:content-children="#portal-column-two" css:if-not-content="body.template-frontpageview"/>
     52        <replace css:theme-children=".right-col" css:content-children="#newsportlet" css:if-content="body.template-frontpageview"/>
    5353       
    5454       
  • main/ngren.theme/branches/filip-fixes/ngren/theme/profiles/default/types.xml

    r10190 r10229  
    55 <object name="Featured" meta_type="Dexterity FTI" />
    66 <object name="Banner" meta_type="Dexterity FTI" />
     7 <object name="Plone_Site" meta_type="Factory-based Type Information with dynamic views"/>
    78</object>
Note: See TracChangeset for help on using the changeset viewer.