XF 1.3 Template Modifications: Replacing a block of code?

Floren

Well-known member
I was wondering how can I replace an entire block of code like:
Code:
    <div class="nodeInfo categoryNodeInfo categoryStrip">
   
        <div class="categoryText">
            <h3 class="nodeTitle"><a href="{xen:link categories, $category}">{$category.title}</a></h3>
            <xen:if is="{$category.description}"><blockquote class="nodeDescription baseHtml">{xen:raw $category.description}</blockquote></xen:if>
        </div>
       
    </div>
With my own code? Thanks.
 

Brogan

XenForo moderator
Staff member
Put the block of code in the find field, add your own code to the replace field.
 

Chris D

XenForo developer
Staff member
Also, regular expression:

Code:
/<div class="nodeInfo categoryNodeInfo categoryStrip">(.*?<\/div>{2})/is
That's untested as I just wrote it on my phone
 
Top