Is there a set of tags, or some way to tell CMSB "do not mess with anything between these open/close tags"?
So, on a productDetails.php page we have:
<?php if ($productsRecord['item_code']): ?>
<?php echo htmlencode($productsRecord['item_code']) ?>
<?php endif ?>
- where item_code, obviously, references the field in CMSB products section where she copy-pastes the code into.
The challenge that occurs is CMSB is processing that "item_code" block so that the browser shows the codeblock as full text and, thus, the browser doesn't process the code and make the magic happen.
Is there a set of php tags that tells CMSB to "just post as is" and not convert anything? So, don't change things like
This client is going to need to utilize 3rd-party code from several sources - so this is kind of a must and needs to be easy-peasy.
You should be able to just remove the htmlencode and then get the results you are after:
<?php if ($productsRecord['item_code']): ?> <div> <?php echo $productsRecord['item_code']; ?> </div> <?php endif ?>
Let us know if this works or you.
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.