I am looking for a way to put a "bullet" next to an item if it exist. For instance i have an area for 6 specs for products, but i want a bullet to show up next to the specs when they are listed. I don't want six bullets and only 3 of them have words next to them. Is there a way to make a code to show a bullet only if there is text there?
Have you looked at using an if conditional statement on whether you have stuff for the specific bullet item and then applying a CSS style based on whether information exists or not?
__________________
Please login or register to view this content. Registration is FREE - Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
I dont fully understnd the question your asking but may have read something recently that can help
From the little I understnad Switch statements with CSS could do this (the CSS should let you set a left border to the text with text indent or bullet point) http://www.tizag.com/phpT/switch.php
If you output the text in a list then the bullet points should be there automatically
Maybe I'm over simplifying the problem here, but why, exactly, are you not simply creating an unordered list, and each item will organiclly have a bullet next to it, regardless if there is 6, 60, or 6,000?
Cory - I think the problem is that he wants some list items to have a bullet next to it and others to not have a bullet, or something like that. I'm not sure if he is actually creating a list or not, quite frankly.
__________________
Please login or register to view this content. Registration is FREE - Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
« Reply to PHP code for "if something exist then show this"