Styling Select Attributes

Permalink
I'd like to add a listing markup to every option the user checks within a select page attribute.

Currently, the outcome is:
option1 option2 option3 option4...

What I want is:
<ul>
<li>option1</li>
<li>option2</li>
<li>option3</li>
<li>option4</li>
<li>...</li>
</ul>

Any help is greatly appreciated
Thanks!

Tallfrog
 
Tallfrog replied on at Permalink Reply
Tallfrog
On line 572 of
concrete > models > attribute > types > select > controller.php
I changed to the following:

public function __toString() {
      $str = '<li>';
      $i = 0;
      foreach($this->options as $opt) {
         $str .= $opt->getSelectAttributeOptionValue();
         $i++;
         if ($i < count($this->options)) {
            $str .= "</li><li>";
         }
      }
      return $str.'</li>';
   }


I'm aware this is not ideal, but until a better method is found this will work out...