Keyword

Using JW Tabs and Slides to conceal k2 divs

  • Marty Peet
  • Marty Peet's Avatar Topic Author
  • Offline
  • Premium Member
More
14 years 5 months ago #82222 by Marty Peet
Replied by Marty Peet on topic Using JW Tabs and Slides to conceal k2 divs
Hey Titus, thanks for the heads up on the JQuery no conflict extension, brilliant!!!

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

More
14 years 4 months ago #82223 by pocasolta
Replied by pocasolta on topic Using JW Tabs and Slides to conceal k2 divs
hello Marty,
great post! thanks for sharing with us!
I've been looking for a way of doing the same but with tabs instead of slides (using the same TS plugin)... I just want the extended categories, image gallery and video sections sorted in tabs instead of "hidden" in slides...
do you think it's easy to change the code for tabs?
thanks in advance!

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

  • Marty Peet
  • Marty Peet's Avatar Topic Author
  • Offline
  • Premium Member
More
14 years 4 months ago #82224 by Marty Peet
Replied by Marty Peet on topic Using JW Tabs and Slides to conceal k2 divs
Hey Pocasolta, shouldn't be too difficult, I have noticed with implementing it the way I have that you CAN'T use the {tab=whatever} links within any articles that use the changed item.php. To do the tab thing I'd create a page with tab content in it (not one using the item.php), view the source and make the changes as needed. Good luck!!!

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

More
14 years 4 months ago #82225 by william white
Replied by william white on topic Using JW Tabs and Slides to conceal k2 divs
Does this code in your script make it dependent on this site?
$document->addScript("template.sin-iqual.com/plugins/content/plugin_jw_ts/tabs_slides_comp.js");
$document->addScript("template.sin-iqual.com/plugins/content/plugin_jw_ts/tabs_slides_def_loader.js");

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

  • Marty Peet
  • Marty Peet's Avatar Topic Author
  • Offline
  • Premium Member
More
14 years 4 months ago #82226 by Marty Peet
Replied by Marty Peet on topic Using JW Tabs and Slides to conceal k2 divs
Yep, sorry about that I thought that I'd commented in the text file to change those lines to suit your site, obviously pointing to the location of the tabs_slides_comp and def_loader scipts

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

  • Marty Peet
  • Marty Peet's Avatar Topic Author
  • Offline
  • Premium Member
More
14 years 4 months ago #82227 by Marty Peet
Replied by Marty Peet on topic Using JW Tabs and Slides to conceal k2 divs
Hey William, updated/added a new tabsandslides.txt file with an extra comment to make it easier to use ;-]

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

More
14 years 4 months ago #82228 by william white
Replied by william white on topic Using JW Tabs and Slides to conceal k2 divs
Got it! Brain Crud for me.
also, the {before} and {after} code must be inside the to work
thanks
Nice addition!

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

  • Marty Peet
  • Marty Peet's Avatar Topic Author
  • Offline
  • Premium Member
More
14 years 4 months ago #82229 by Marty Peet
Replied by Marty Peet on topic Using JW Tabs and Slides to conceal k2 divs
Don't know what you guys will thinks of this, it's interesting though? been playing some more with this functionality. I've done the following:

1) created a k2 overrides template
2) wrapped the entire category_item.php file in the before/after code for the slide component
3) created a menu link to the category view and....

have a look at the layout here. Click on the Experts menu option and then the list of names below the image. The layout is controlled by the k2 item in a category layout options, accessible via the k2 administrative interface. As you increase the number of columns for the primary items you get more columns of names/links/sliders. Not sure what use it'll be put to in the future, however, it does open up other options of displaying content. Perhaps someone could code it to display the entire span e.g. if 3 columns are selected in the layout settings, then all those items are displayed when one of the links is clicked....

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

  • Marty Peet
  • Marty Peet's Avatar Topic Author
  • Offline
  • Premium Member
More
14 years 4 months ago #82230 by Marty Peet
Replied by Marty Peet on topic Using JW Tabs and Slides to conceal k2 divs
Forgot the link ;-[

template.sin-iqual.com/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=5&Itemid=4

Marty Peet said:Don't know what you guys will thinks of this, it's interesting though? been playing some more with this functionality. I've done the following:

1) created a k2 overrides template
2) wrapped the entire category_item.php file in the before/after code for the slide component
3) created a menu link to the category view and....

have a look at the layout here. Click on the Experts menu option and then the list of names below the image. The layout is controlled by the k2 item in a category layout options, accessible via the k2 administrative interface. As you increase the number of columns for the primary items you get more columns of names/links/sliders. Not sure what use it'll be put to in the future, however, it does open up other options of displaying content. Perhaps someone could code it to display the entire span e.g. if 3 columns are selected in the layout settings, then all those items are displayed when one of the links is clicked....

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

  • Marty Peet
  • Marty Peet's Avatar Topic Author
  • Offline
  • Premium Member
More
14 years 4 months ago #82231 by Marty Peet
Replied by Marty Peet on topic Using JW Tabs and Slides to conceal k2 divs
Hey Pocasolta, was wondering how you got on with implementing tabs? I've had a bit of a play, look at this page:

template.sin-iqual.com/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=5&Itemid=4

Please forgive the layout/look, working on function not form at the moment ;-] This is what I've done:

1) In Joomla/k2 created an Experts category
2) Created 6 subcategories of Experts, Accounting, Finance, Marketing, Management, Strategy and Business Information Technology
3) In the Experts category page created 2 MANUALLY entered tab contents, Overview and Working with our Experts
4) Create a template for the Experts category and sub-categories
5) Edited the category.php file so that it displays ALL sub-categories in tabs
6) Edited the item.php file so that all content for displays in slides
6) Created a menu link to the top level Experts category

Some of that functionality should be useful. If you have a top level category that contains a few sub-categories the changes to the category.php file will create the tabs on the fly and name them the same name as the sub-category. Haven't tried to see what will happen if you have more categories than the div/width will handle. Hope this is of some help to you

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


Powered by Kunena Forum