Announcement

Collapse
No announcement yet.

Using [SUB_CATEGORY_NAME] twice in category_x.html Template - is it possible?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using [SUB_CATEGORY_NAME] twice in category_x.html Template - is it possible?

    I would like if I didn't have to create a separate category_x.html template for each of my categories. Is there anyway I can use the [SUB_CATEGORY_NAME] codeblock twice?

    Basically, I'm using it to manifest the sub-categories on the right hand side. But I'd also like that to happen on the links, on the left hand side.

    It won't work without the <!-- START: SUB_CATEGORIES_FORMAT-->, as we all know. And I don't want everything to repeat, obviously.

    Anyone find a way around this? Thank you in advance.

    HTML Code:
        <div class="container">
            <div class="row">
    		
                <div class="col-md-3 catlist">
                    <p class="lead">[categoryname]</p>
                    <div class="list-group">
    				<!-- I WANT THIS TO REPEAT AS WELL-->
                        <a href="view_category.asp?cat=[cat]" class="list-group-item">[SUB_CATEGORY_NAME]</a>
    				<!-- AND END HERE-->
                    </div>
                </div>
    			
    		<div class="col-md-9">
    			<!--START: CATEGORY_HEADER-->
    			<div class="category-header" id="categoryHeader">[CONTENT]</div>
    			<!--END: CATEGORY_HEADER-->
    			
    			<!--START: SUB_CATEGORIES_FORMAT-->
    				<div class="well">
    					<div class="row">
    						<div class="col-md-4">
    						 <!--START: SUB_CATEGORY_IMAGE-->
    						<div class="img"><a href="view_category.asp?cat=[CATID]"><img src="[SUB_CATEGORY_IMAGE]" style="width:100%;" alt="[SUB_CATEGORY_NAME]" /></a></div>
    						<!--END: SUB_CATEGORY_IMAGE--> 
    						</div>
    						<div class="col-md-8">
    						<!--START: SUB_CATEGORY_NAME-->
    						<div class="name"><a href="view_category.asp?cat=[CATID]">[SUB_CATEGORY_NAME]</a></div>
    						<!--START: SUB_CATEGORY_NAME-->
    						<p>[SUB_CATEGORY_DESCRIPTION]</p>
    						</div>
    					</div>
    				</div>
    			<!--END: SUB_CATEGORIES_FORMAT-->
    			
    		</div><!-- /.col-md-9-->
          </div><!-- /.row -->
        </div><!-- /.container -->
    Here's my live example: Banner Stands | Retractable, Telescopic, Adjustable Display Stands
    Designer, musician
    3DCart sites
    www.fireflyaz.com
    www.activeprintmedia.com

    Want something designed? [email protected]
Working...
X