Forums

Remove Page Break in Article Submit

Imogenus 29 Mar, 2012
I am trying to allow users to publish articles to a category, but all the information they enter ends up below a page break, which is ridiculous and makes article submit useless unless I manually go into the back-end article editor and remove the page break for every article. I found a few posts about this like this one: http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=65255&p=263922&hilit=remove+page+break#p263922 and also tried putting my input into the intro text field, but this only caused no output at all to the article. I have had to compile the form feilds to be published in a single article and this seems to prevent using Intro Text Field to be used.
I have used this code in the custom code action:
<?php
$order = array("\r\n", "\n", "\r");
$replace = '<br />';
$form->data['benefit_exp_1'] = str_replace($order, $replace, $form->data['benefit_exp_1']);

$form->data['fulltext'] = "



<h3>Current Reader:</h3>{$form->data['text_0']}
<h3>I Finished at English Page Number:</h3> {$form->data['text_1']}
<h3>I Finished at Gurmukhi Page Number:</h3>{$form->data['text_2']}
<h3>The Next Reading Should Start With the Heading:</h3>{$form->data['text_3']}
<h3>And The First Line Is:</h3><br />{$form->data['text_4']}

";
?>

Any help would be appreciated, thank you for your time.

Hargo
GreyHead 26 May, 2012
Hi imogenus,

Just checking some old posts and found this one.

I think that this depends on the way the article dislay is set up. Here's the code that the Content module uses to decide what to show:
		if ($item->params->get('show_intro', '1')=='1') {
			$item->text = $item->introtext.' '.$item->fulltext;
		}
		elseif ($item->fulltext) {
			$item->text = $item->fulltext;
		}
		else  {
			$item->text = $item->introtext;
		}

Bob
This topic is locked and no more replies can be posted.