Add ID or class name for DIV tag in category_items.php

More
11 years 3 months ago #33160 by brandonking
Hello,

I want to make each item row clickable by adding jquery but div tag doesn't have id or class name.
Sample Jquery to make item row clickable.
Code:
<script> jQuery.noConflict(); (function($) { $(document).ready(function(){ $('.itemrow').click(function(){ location.href=$(this).find('h2 a').attr('href'); }); }); })(jQuery); </script>

Please consider adding ID or CLASS name for DIV tag at leadingblock and introblock in category_items.php for each template.
Right now, DIV tag has style only.
Change from
Code:
<div style="overflow: hidden;">
to
Code:
<div class="itemrow" style="overflow: hidden;">

Current Leading Block:
Code:
<ul class="leadingblock"> <?php for ($i=0; $i<$leadnum; $i++) : ?> <li> <div style="overflow: hidden;">
and Current Intro Block:
Code:
<ul class="introblock <?php echo $classnum; ?>"> <?php for ($i=($this->limitstart == 0 ? $leadnum : 0 ); $i<$count; $i++) : ?> <li class="<?php echo (($this->limitstart == 0) ? ($i+$leadnum)%2 : $i%2) ? 'even' : 'odd'; ?>"> <div style="overflow: hidden;">

For mobile users, sometimes it is very difficult to tab the title(too small to touch) to view description page. This will allow users to navigate on mobile easily.

Best wishes,
Brandon

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

More
11 years 3 months ago #33164 by ggppdk
AN online example of your suggestion?


-- 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 3 months ago #33167 by brandonking
Try this link.
You can click anywhere of item row, not only title. northoita.sakura.ne.jp/index.php?option=...%E3%83%B3&Itemid=189

Regards,
Brandon

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

More
11 years 3 months ago #33196 by brandonking
Hello GGPPDK,

I just want to remind you.
Did you check the URL?
Regards,

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

More
11 years 3 months ago #33202 by ggppdk
What about removing, the <div> element and leaving only the <li>

e.g.
<li class="...class names...">
<div class="...class names...">
... item data
</div>
</li>

and making it like
<li class="...class names...">
... item data
</li>


-- 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 3 months ago #33205 by brandonking
That would also be nice as well. It is good to include "Link item row" param in the Global config.

Regards

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.303 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