Item total(category view)

More
11 years 4 months ago #45137 by brandonking
In category view, if we show item total with below code:
Code:
<span class="fc_item_total_data"> <span class="item_total_label">Total:</span> <span class="item_total_value">12 items</span> <span class="item_total_label">Display:</span> <span class="item_total_value">1 - 10 items</span> </span>

Well, no problem at all on wide screen.
But if you check with mobile, structure will be broken.
Code:
<div class="fc_item_total_data"> <div style="display: inline-block;"> <span class="item_total_label">合計:</span> <span class="item_total_value">12 アイテム</span> </div> <div style="display: inline-block;"> <span class="item_list_label">表示:</span> <span class="item_list_value">1 - 10 アイテム</span> </div> </div>

and change class name for 2nd block as above.

Also, please change page counter tag to div as well.
Code:
<div class="fc_pages_counter"> <small> 1 / 2 ページ</small> </div>

Regards,

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

More
11 years 4 months ago #45142 by ggppdk
Replied by ggppdk on topic Item total(category view)
Hello

what about adding some CSS when mobile is detected ?

In FLEXIContent you can have a different template if mobile is detected, but even if you do not use this feature you can still do this in you template
Code:
$mobileDetector = flexicontent_html::getMobileDetector(); $isMobile = $mobileDetector->isMobile(); $isTablet = $mobileDetector->isTablet(); if ($isMobile) { $doc = JApplication::getDocument(); $doc->addStyleSheet(); $css_path = JURI::root(true).'/components/com_flexicontent/templates/default1/css/'; $doc->addStyleSheet($css_path.'/mobile.css'); }

stackoverflow.com/questions/1483 ... line-block


-- 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
11 years 4 months ago #45147 by brandonking
Well, I guess I have already a huge css file..and getting bigger and heavier... :D
I guess FC don't need to use much CSS..
For example, Button, Label, Input....
I need to change all of them anyway to fit into Template.

I think you better focus on HTML and its id and class...so we can do whatever we want by using css.
What do you think?

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.289 seconds
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
Save