Jump to content

Template System help


kmk

Recommended Posts

Posted

Hello guys, I purchased and try to implement the use of Template System app in my forums sections, but it seems so difficult to receive a right support, so bad, but I think that is part of ips community, and I don't have other way than posting here and hope to get some replies. 

1. Is possible styling the field name? 

2. Is possible make fields editable without edit the topic? 

 

 

Posted
14 hours ago, kmk said:

Hello guys, I purchased and try to implement the use of Template System app in my forums sections, but it seems so difficult to receive a right support, so bad, but I think that is part of ips community, and I don't have other way than posting here and hope to get some replies. 

Sorry. I've had a crazy few weeks and I'm totally behind on every single thing. It's a big big mess. I'm just catching up on a whole long list of Marketplace issues now.

14 hours ago, kmk said:

1. Is possible styling the field name? 

Yes. You can edit the view template and have it work any way you please. 

  1. In the ACP, go to Community -> Template System -> Sets
  2. Find the set you want and choose "Manage Views"
  3. Uncheck "Use Default View Template"
  4. Click in the codebox to edit

image.thumb.png.d095db7ab13b9f3aceafa2dc24d3dcfc.png

You can see in the above screenshot that you have full control over the view. You can change the code to do different things for different fields as well. Example:

<div class="ipsSpacer_top">
    {{foreach $data as $fieldKey => $fieldValue}}
    {{if $fieldValue['value'] || !$fieldValue['hide']}}
    {{if $fieldKey == 'fieldABC'}}
    <!-- CUSTOM HTML GOES HERE -->
    {{else}}
    <div class="cTemplateField">
        <span class="cTemplateField_label">{{$label = 'template_' . $fieldKey . '_label';}}</span>
        <span class="cTemplateField_value">{$item->$label}: {$fieldValue['value']|raw}</span>
    </div>
    {{endif}}
    {{endif}}
    {{endforeach}}
</div>

 

14 hours ago, kmk said:

2. Is possible make fields editable without edit the topic? 

No.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...