Fork me on GitHub

Core/PHP block  Bottom

  • I can use this without a problem in a core/PHP block:

    include "http://mysite.com/myphp.php";


    But not this:

    include "myphp.php";


    I have not been able to find any path variation on that which works. Does anybody know of a way I can include my .php file in a Core/PHP block without explicitly referencing my site?


    Also, in an aside, the fact that most of the documentation links on this site don't work is very frustrating :x . I'd like to find info on building my own actual block, but I seem to be reduced to just looking at existing blocks and trying to learn from them... Does anyone know where I can find documentation about block creation and/or the PostNuke API in general? I found Spanish docs, but that doesn't help my English-driven brain.

    Thanks for any help.
  • Paths should work if you specify them as relative to index.php

    We're looking at fixing the docs links, but you can find some of the documentation available at my site: www.itbegins.co.uk in the meantime

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • I've not seen any docs discussing block creation... The best thing to do is open one up and _see_ how it works. Many blocks are very little code...it's totally do-able! :)

This list is based on users active over the last 60 minutes.