- Posts: 84
COMMUNITY FORUM
Using JW Tabs and Slides to conceal k2 divs
- Marty Peet
- Topic Author
- Offline
- Premium Member
Less
More
14 years 5 months ago #82212
by Marty Peet
Using JW Tabs and Slides to conceal k2 divs was created by Marty Peet
I have been attempting to use the JW Tabs and Slides plugin to 'hide' the Comments and Extra Info blocks within k2. I wanted an area title, e.g. View Additional Information, that when clicked would show the Comments and Extra Info block using the slide transition. Instructions for how I did it are attached, effect can be seen at
Slide Comments
Scroll down the page until you see the View Additional Information and View/Add Item Comments, click on either/both of those links and see how it works. To do the following you MUST have the JWTS Tabs and Slides in content items installed. It can be downloaded here:
www.joomlaworks.gr/content/view/15/42/
Hope it's useful to someone out there in k2 land
I've updated the attached text file with an extra comment to make it easier to use... you MUST change the paths to the js files to suit your site ESPECIALLY line 6 (import directive) in the attached file.
Slide Comments
Scroll down the page until you see the View Additional Information and View/Add Item Comments, click on either/both of those links and see how it works. To do the following you MUST have the JWTS Tabs and Slides in content items installed. It can be downloaded here:
www.joomlaworks.gr/content/view/15/42/
Hope it's useful to someone out there in k2 land
I've updated the attached text file with an extra comment to make it easier to use... you MUST change the paths to the js files to suit your site ESPECIALLY line 6 (import directive) in the attached file.
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 5 months ago #82213
by william white
Replied by william white on topic Using JW Tabs and Slides to conceal k2 divs
Nice!, i assume you wrapped the div in item.php with {slide=My first slide in Joomla!}
div code here
{/slide}
div code here
{/slide}
Please Log in or Create an account to join the conversation.
- Marty Peet
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 84
14 years 5 months ago #82214
by Marty Peet
Replied by Marty Peet on topic Using JW Tabs and Slides to conceal k2 divs
Hey William, nope, I tried that and k2, or something strips the code. If you download the attached text file you'll see what needs to be done.
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 5 months ago #82215
by william white
Replied by william white on topic Using JW Tabs and Slides to conceal k2 divs
thanks!@
Marty Peet said:Hey William, nope, I tried that and k2, or something strips the code. If you download the attached text file you'll see what needs to be done.
Marty Peet said:Hey William, nope, I tried that and k2, or something strips the code. If you download the attached text file you'll see what needs to be done.
Please Log in or Create an account to join the conversation.
- AdrianK
- Offline
- Senior Member
Less
More
- Posts: 46
14 years 5 months ago #82216
by AdrianK
Replied by AdrianK on topic Using JW Tabs and Slides to conceal k2 divs
Please Log in or Create an account to join the conversation.
- Marty Peet
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 84
14 years 5 months ago #82217
by Marty Peet
Replied by Marty Peet on topic Using JW Tabs and Slides to conceal k2 divs
Hey Titus, not sure what your comment means, but thanks for posting it anyway... I was merely trying to find a way to 'hide' the display of some of the k2 divs. The example shown uses the JW Tabs and Slides slide function, tabs would be just as simple and a simple CSS class or styling to the link could make it look however you wanted.
Please Log in or Create an account to join the conversation.
- AdrianK
- Offline
- Senior Member
Less
More
- Posts: 46
14 years 5 months ago #82218
by AdrianK
Replied by AdrianK on topic Using JW Tabs and Slides to conceal k2 divs
Hi Marty Peet,
I think I will code this function in the next 2 months using mootools.
I think I will code this function in the next 2 months using mootools.
Please Log in or Create an account to join the conversation.
- FeSys
- Offline
- Elite Member
Less
More
- Posts: 262
14 years 5 months ago #82219
by FeSys
Replied by FeSys on topic Using JW Tabs and Slides to conceal k2 divs
Many Thanks " Marty Peet".
Your idea is safe, clean, and simple..
I do like it. Keep good idea
Thanks for sharing this nice tips.
Your idea is safe, clean, and simple..
I do like it. Keep good idea
Thanks for sharing this nice tips.
Please Log in or Create an account to join the conversation.
- Marty Peet
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 84
14 years 5 months ago #82220
by Marty Peet
Replied by Marty Peet on topic Using JW Tabs and Slides to conceal k2 divs
Great idea Titus, seem to have less 'problems' with JQuery in Joomla than Mootools? just a thought
Please Log in or Create an account to join the conversation.
- AdrianK
- Offline
- Senior Member
Less
More
- Posts: 46
14 years 5 months ago #82221
by AdrianK
Replied by AdrianK on topic Using JW Tabs and Slides to conceal k2 divs
I can use both js frameworks, but mootools is native and should be used.
If you want to use JQuery anytime take a look on this plugin:
extensions.joomla.org/extensions/core-enhancements/scripts/7230?qh=YTo0OntpOjA7czo2OiJqcXVlcnkiO2k6MTtzOjY6InBsdWdpbiI7aToyO3M6NzoicGx1Z2lucyI7aTozO3M6MTM6ImpxdWVyeSBwbHVnaW4iO30%3D
If you want to use JQuery anytime take a look on this plugin:
extensions.joomla.org/extensions/core-enhancements/scripts/7230?qh=YTo0OntpOjA7czo2OiJqcXVlcnkiO2k6MTtzOjY6InBsdWdpbiI7aToyO3M6NzoicGx1Z2lucyI7aTozO3M6MTM6ImpxdWVyeSBwbHVnaW4iO30%3D
Please Log in or Create an account to join the conversation.