php-b-grader
php-b-grader

Reputation: 3325

Including a footer in WebsiteBaker

I'm trying to plan the implementation of a WebsiteBaker and have a footer with latest news information which is just updated manually by staff.

I was going to use a "News" block and add it to every page but then I have to update all pages when a new update is made.

Then I thought I'd leave it in the template but I don't want staff accessing the index.php via FTP to update the news... The same goes when I thought of just using an include but the staff would still need to be using FTP to make changes....

Does anyone with some WebsiteBaker knowledge know how I can create a block of content in the backend and include it at the base of every page? Kind of like an attribute in Wordpress?

Upvotes: 0

Views: 325

Answers (4)

Ralf
Ralf

Reputation: 729

How about Section Picker: http://addons.websitebaker.org/pages/en/browse-add-ons.php?id=04A1753

The section picker (a.k.a. Global Blocks) allows you to re-use the content from sections used in other pages.

Any type of content can be re-used multiple times using this module. You could use it to build a library of content on a single hidden page and build your public pages by just combining sections from your library.

Ideal to setup a content system for multiple admins/editors.

Upvotes: 0

php-b-grader
php-b-grader

Reputation: 3325

Found a solution using global blocks - I can create a block of hidden code on a page and access it from every other page.

Upvotes: 0

zanedev
zanedev

Reputation: 568

Create a hidden news page with a blank template. Then curl the page into the footer.

Upvotes: 0

user843812
user843812

Reputation: 91

Separate footer as a php page and include your footer page on your other pages. Call news update functions on you footer page.

Upvotes: 0

Related Questions