Hello All!
Greetings KK Sir!
I have an editable region defined as:
The status that I want to set are being set perfectly in any manner the operation is being performed.
The scenario is that:
1. There is a list of apartments with some details and its status
2. I want to display the count according to the status
I have tried the following two approaches.
Approach #1 (Works fine and displays the count)
What is the issue in the code of the second approach? Could I be helped to correct it!
Thanks in advance!
Regards,
GenXCoders
Greetings KK Sir!
I have an editable region defined as:
- Code: Select all
<cms:editable name="status" label="Status" type="dropdown" opt_values="Select =- | assigned | in-progress | complete | on-hold | production" opt_selected="-" searchable="0" required="1" order="5" />
The status that I want to set are being set perfectly in any manner the operation is being performed.
The scenario is that:
1. There is a list of apartments with some details and its status
2. I want to display the count according to the status
I have tried the following two approaches.
Approach #1 (Works fine and displays the count)
- Code: Select all
<cms:set complete_count="0" "global" />
<cms:pages masterpage="data.php" show_future_entries='1' >
<cms:if status=="complete">
<cms:incr complete_count '1' />
<cms:set complete_count="<cms:show complete_count />" "global" />
</cms:if>
</cms:pages>
<cms:show complete_count />
- Code: Select all
Approach #2 (No result, count is always '0')
- Code: Select all
<cms:pages masterpage="data.php" show_future_entries="1" custom_field="status='complete'" count_only="1" />
What is the issue in the code of the second approach? Could I be helped to correct it!
Thanks in advance!
Regards,
GenXCoders