After several years using the same system, things are getting to complex and I need an easy way of handling things.
I currently have little sections in a template like this:
I'm currently doing a simple str_replace to replace the bracketed sections.Code:--------------- DOWNLOAD DETAILS --------------- These are available for download via: {DOWNLOADS} --------------- OTHER INFORMATION (if applicable) --------------- {REFCOMM}
But what I want to do now, is to stop those little sections appearing if there is nothing to replace. Sort of like:
But I have no idea on how to do this that is easy for joe public to actually use.PHP Code:if({DOWNLOADS}!='') print'--------------- DOWNLOAD DETAILS ---------------' etc...
erm help!
the only thing I can think of is to have a textarea for each section, but that does seem cumbersome.


LinkBack URL
About LinkBacks
Reply With Quote