How should I include my Facebook Gallery Custom Code?

Permalink
Hi,

I am wanting to integrate a facebook api gallery into C5. (I am running 5.7 and all the add ons currently within the marketplace only support up to 5.6)

I have the code ready and already working on a non C5 site but I don't know the best way to integrate it into this C5 site I am building.

Should I make it into a package? a block? or a single page?

I only want it to show once within the site and I don't want it to be editable by the client?

The folder consists of about 12 different php pages that are all includes and all talk to one another.

helenmarie
 
ob7dev replied on at Permalink Reply
ob7dev
Try adding the code straight to a themes *.php files depending on where you need it.
Just make sure you disable the plugin if the page is in edit mode, otherwise loading the facebook scripts could break the editing interface.

mesuva has an add-on that does this for you:
http://www.concrete5.org/marketplace/addons/script-output...

But would still be editable by anyone with rights to edit the site.