Hi all,
I have just started using EE2, and currently using it to rebuild our company website.
I have a channel with a field called {page_content} and I want to be able to split that field, with a more tag if you will.
In php i would simply do:
<?php
$splitContent = split('<!--MORE-->', $content);
echo $splitContent[0];
// Break for whatever reason
echo $splitContent[1];
?>I can see how to split multiple entries across pages, but can’t see a way to split fields. I tried to use php in the template
{exp:channel:entries channel='static_pages'}
<div class="row">
<div class="span4">
<?php $splitcontent = explode("<hr>", {page_content}; ?>
<?php echo $splitcontent[0]; ?>
</div>
<div class="span3">
<?php echo $splitcontent[1]; ?>
</div>
</div>
{/exp:channel:entries}but no joy.
Any guidance will be appreciated.