0
Welcome Guest! Login
0 items Join Now

how to create template override for unordered list

  • how to create template override for unordered list

    Posted 14 years 5 months ago
    • Hi,

      I just want to make on override of the default unordered list in article.
      For example: If I create a new article and click on the button to insert unordered list
      I will get one that looks like this:
      <ul>
      <li>Bla1</li>
      <li>Bla2</li>
      <li>Bla3</li>
      </ul>

      I just want to add a span into the <li> tag so it looks like this:
      <ul>
      <li><span>Bla1</span></li>
      <li><span>Bla2</span></li>
      <li><span>Bla3</span></li>
      </ul>

      I penetrated google for hours but I can't find any solution.
      I appreciate any help. Thanks a lot
    • Ben Lee's Avatar
    • Ben Lee
    • Elite Rocketeer
    • Posts: 4193
    • Thanks: 42

    Re: how to create template override for unordered list

    Posted 14 years 5 months ago
  • Re: how to create template override for unordered list

    Posted 14 years 5 months ago
    • Thanks Ben,

      but unfortunately thats not what I need. I don't want to use images instead of default bullet/square/circle elements. If you talk about the list at the top of the site you mentioned the different colors with the bullet come from the fact that inside the unordered list are <a> tags that can be styled. In my case I need to have it like that you just click on "unordered list", than types the list texts it has to run right away. Therefore I would need a <span> tag.

      Is there really no way to override it?

      Or another option? It seems there is no override since it's just pasted by the editor. But I couldn't find any code that indicates an easy way of hacking an additional span into it when clicking the button in the editor.

      Thanks for any help.
  • Re: how to create template override for unordered list

    Posted 14 years 5 months ago
    • There seems to be no way to override it or change it in the editor automatically.
      Therefore I decided to use rereplacer from nonumber.nl
      Works great and can be used for infinite different things.
    • Ben Lee's Avatar
    • Ben Lee
    • Elite Rocketeer
    • Posts: 4193
    • Thanks: 42

    Re: how to create template override for unordered list

    Posted 14 years 5 months ago
  • Re: how to create template override for unordered list

    Posted 14 years 5 months ago
    • Thanks Ben,

      but in this case RokCandy would not help out since you need to add the macro into the list manually by pushing the RokCandy button and choose the macro. I need a totally automatic solution which is given with ReReplacer.
      That would be a great new feature of RokCandy too since it's hard to explain to a customer when he/she has to click on RokCandy instead of normal editor buttons.

      Best
      Martin

Time to create page: 0.070 seconds