Hi Caleb!

Hi Caleb,

It looks like we might be doing a little work together on a project so I was checking out your site. My solution to this particular problem was creating a function in a custom module, and then calling that function to grab the file from the files/pages directory and output it. That way, it's only one line of code in the node body field, like:

<?php
custom_get_node
('about-us.php');
?>

The downside to this (and the advantage to your solution) is that you have to have a custom module available for the function call. I've been feeling like this is kind of a hack-ish solution for a while now, but it's serving it's purpose. Ideally, it would be nice to have a little toggle below the text area that will import the content of the file to the text area, and another to export it to a file, so non-technical users can just pull the content in when they need to use it, and we (as admins) can output it back when we want to use an editor.

I look forward to talking with you!

Later,
Chris

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <code> <src> <p> <b> <i> <a> <em> <br> <tt> <hr> <li> <ol> <ul> <pre> <img> <blockquote> <strike> <tt> <strong> <font> <h1> <h2> <h3> <h4> <h5> <h6> <del> <q> <sub> <dl> <dt> <dd> <a> <b> <u> <i> <sup> <div>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.