This is really a very nice addon you've created. Well done Bartonsweb!!!
Just like cl I also found out using this plugin didn't work with the <cms:get_custom _field /> but I found a little workaround by using a bit of php that fits my needs based on the info on this http://www.hackingwithphp.com/4/7/2/replacing-parts-of-a-string
I'm using it to replace a css background-image through javascript which looks like this in Couch code:
I'm not a programmer so if a php guru could spice it up a bit feel free.
Just like cl I also found out using this plugin didn't work with the <cms:get_custom _field /> but I found a little workaround by using a bit of php that fits my needs based on the info on this http://www.hackingwithphp.com/4/7/2/replacing-parts-of-a-string
- Code: Select all
<?php
$string = "An infinite number of monkeys";
$newstring = str_replace("Monkeys", "giraffes", $string);
print $newstring;
?>
I'm using it to replace a css background-image through javascript which looks like this in Couch code:
- Code: Select all
$('header').css('background-image', 'url("<cms:php>
$string = "<cms:get_custom_field 'header_image' masterpage='header.php' />";
$newstring = str_replace(":", "<cms:show k_site_link />couch/uploads/image", $string);
print $newstring;</cms:php>")');
I'm not a programmer so if a php guru could spice it up a bit feel free.
