Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to put java script and PHP for custom page

How to put java script and PHP for custom page plugin & how to add more pages using custom page plugin ?

Tagged:

Best Answer

Answers

  • peregrineperegrine MVP
    edited January 2014

    are you specifically interested in that plugin or would

    http://vanillaforums.org/addon/basicpages-application

    do the job. It is very easy to use.

    you could add js with a mod to applications/basicpages/controllers/class.basicpagescontroller.php

    but shadowdare may have a better solution that doesn't require a mod to the plugin.

    but in answer to your question. your php is in CustomPages/pages/default.php

    and you could add js in there with script tags.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • How to add facebook comment box in to this plugin

  • edited January 2014

    You can generate code for Facebook Comments that you can copy and paste onto your page from the Facebook website: https://developers.facebook.com/docs/plugins/comments/

    You can add JavaScript code to a page in the Basic Pages application by checking the "disable automatic body formatting and allow raw HTML" check box. If you want to add JavaScript to the header of the page and add PHP with Basic Pages, you can hook into the one of the events on the page view via a plugin and output your code from there.

    Add Pages to Vanilla with the Basic Pages app

  • @Shadoedare please explain it.. how to add java script..?

Sign In or Register to comment.