[added v1.5.6] Items count

More
13 years 2 months ago #19638 by igcorreia
Could anyone help me with this, and could you make it stardard?

In the DEFAULT template I want to add the TOTAL,
I am using flexi to make a registration form, but I want to now how many users are already signed in that form.

Could you create a field call Item Count, so we can place it were ever we want in the template? :D

or

Could you help me me adding this to the defalut template?

Thanks in advance.

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #19639 by ggppdk
Replied by ggppdk on topic [added v1.5.6] Items count
Hello, you can use in e.g. file category_items.php :
<?php echo count($this->items) ?>

Maybe a good place to put this would above line:
<table id="flexitable ...


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #19641 by igcorreia
This is how I solved:
Code:
<!-- BOF item count--> <?php $itemcounttotal = count($this->items); ?> <div class="container-1"> <b>Total de Itens nesta lista: </b> <?php echo $itemcounttotal ; ?> </div> <!-- BOF item count-->

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #19642 by igcorreia
hehe yours is even simple :D update time! thanks.

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #19656 by ggppdk
Replied by ggppdk on topic [added v1.5.6] Items count
To be honest i was thinking some time ago, that a total (item count) is needed to be displayed in category view (together with an option to enable/disable it).

I will put this in the category layout of our 3 templates (default,blog,faq)

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #19659 by micker
Replied by micker on topic [added v1.5.6] Items count
Great

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.769 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline