Editable header with sfSimpleCMS

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

Moderators: dwhittle, Ian

Editable header with sfSimpleCMS

Postby 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

Postby 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

Postby 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


Return to General plug-ins

Who is online

Users browsing this forum: No registered users and 2 guests