This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Editable header with sfSimpleCMS

Ask help about existing plugins, or find advice about the way to build up your own.

Editable header with sfSimpleCMS

by frazer » Sat Jun 09, 2012 2:33 am

Hi,

we currently are using sfSimpleCMS,

we have layout.php manage our heading/top menu

then it includes content:

simplePageTemplate.php
or homeTemplate.php


I'd like to have admins be able to edit individual header data on each page,
such as title and meta-data.

Is there a way for layout.php to access page specific data?

Thanks for any help
frazer
Junior Member
 
Posts: 13
Joined: Mon Aug 17, 2009 2:57 pm

Re: Editable header with sfSimpleCMS

by frazer » Fri Jun 15, 2012 9:52 am

any suggestions?
frazer
Junior Member
 
Posts: 13
Joined: Mon Aug 17, 2009 2:57 pm

Re: Editable header with sfSimpleCMS

by frazer » Wed Jun 27, 2012 2:35 pm

oh...

it was straight forward
Code: Select all
   if (sf_simple_cms_has_slot($page, 'webpageTitle')){
       echo "<title>";
       sf_simple_cms_slot($page, 'webpageTitle');
       echo "</title>
          ";
   }
frazer
Junior Member
 
Posts: 13
Joined: Mon Aug 17, 2009 2:57 pm