From: Don S. <do...@se...> - 2004-06-29 19:21:09
|
Yes in my experience I've had to only conditionally define the label as well. Don. On Tue, Jun 29, 2004 at 02:13:18PM -0500, Greg Meiste wrote: > Hello all. >=20 > I have a quick question about templating. I have a item class with a few > vars that are not required. In that item class, I have a view function.= =20 > That view function sets up the tags then calls the process template > function. >=20 > Right now with those optional vars is that the label is showing but then > there is no data to show with it. I set up my view.tpl to be like this: >=20 > <!-- BEGIN DATUM2 --> > {DATUM2_LABEL}:<br /> > {DATUM2}<br /><br /> > <!-- END DATUM2 --> >=20 > with Datum2 being an optional field. Even set up like that, the label > still shows. I was hoping that with it set up like that, the code chunk > wouldn't show even though the DATUM2_LABEL is present. Am I going to have > to check every label before adding it to the tags? [i.e. > if(isset(datum2))....] >=20 > I'm hoping there is a more "graceful" way that having an if statement for > all the variables (there is a lot of them). >=20 > I hope all that made sense. Any thoughts anyone? >=20 > Thanks in advance. >=20 > Greg >=20 >=20 > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Phpwebsite-developers mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwebsite-developers --=20 "So, on behalf of a well-oiled unit of people who came together to serve something greater than themselves, congratulations." George W. Bush May 31, 2001 White House ceremony honoring the University of Nebraska women's volleyball team, the 2001 NCAA Champions. |