Ah, good.
Do you want to post how you did it for future searchers please?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Ah, good.
Do you want to post how you did it for future searchers please?
Well... i couldn't for the life of me get the code working by inserting the html directly into the editor... it just kept stripping the values no matter what i tried. I actually didn't get as far as to test this method in FF. I went with the original content() script because it was the only way i could get it to work both IE and FF. I used the below code:
function Content() {
$content = $this->Content;
$content = str_replace('$PayPal1', $this->PayPal1(), $content);
$content = str_replace('$PayPal3', $this->PayPal2(), $content);
$content = str_replace('$PayPal4', $this->PayPal4(), $content);
$content = str_replace('$PayPal5', $this->PayPal5(), $content);
$content = str_replace('$PayPal6', $this->PayPal6(), $content);
return $content;
}
function PayPalRecreation() {
return '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="??????">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynow_SM.gif" border="0" name="submit" alt="">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>';
}
So all that is in the content editor is $PayPal1 etc. It seems to be working all ok. :)