Hi Dan,
one way is to add a Bool(ShowHtmlPanel for example) with corresponding
checkbox to the Page class that decides whether it is shown, and add a
conditional in the Template, and as others have suggested, get the
content from the SiteConfig if you want it content manageable
On 20/06/2011 11:04 a.m., Dan Khan wrote:
Thanks guys for the SiteConfig tip off.
On a related note: what if I've got a set of HTML panels that I want
to appear on a few different pages, but entered once in the CMS? Is
there an easy way to pull in extra bits of HTML on specific pages
without having to setup a custom page type for each page and duplicate
the HTML each time?
Thanks,
-Dan
On 20 June 2011 10:46, Paul Bennett<[email protected]> wrote:
Hi Dan,
+1 for siteconfig . In the past this functionality has been created by using
hidden pages / sections and then using controller methods to pull through
page data into template, but siteconfig is now that most logical place to
achieve what you're trying to do.
Regards,
Paul Bennett
MoveForward - Web Development for Design Companies
http://www.moveforward.co.nz
06 308 9722
027 255 8495
On Mon, Jun 20, 2011 at 10:38 AM, Dan Khan<[email protected]> wrote:
Hi,
I'm just undertaking my first SilverStripe job, and have a quick
question for experienced SSers to point me to the right place in docs.
Can I add CMS content to a template-level instead of just page/page-type
level?
Say for example I've got a piece of text that is on every page of the
template, but I want client to be able to update this in CMS.
Any pointers appreciated, thanks. I'm working way through docs today,
but wanted a quick heads-up for when I finally get to this piece.
Cheers,
-Dan
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
--
Kind Regards
Stu Meads
Web Application Developer
Dynamic Developments
Phone: 021 217 6864
Skype: stu.meads
Twitter: http://twitter.com/dyndev
http://www.dyndev.co.nz
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]