I’ve created a snippet which generates AJAX tabs from documents.
Please take a look.
This snippet is used here:
http://coloris.com.ua/7speaking/index.php?id=51
Unfortunately site isn’t in English.
New version of tabControl is available!
Regards,
Vladimir Shugaev
hey Shugaev,
thanks for sharing - i’ll try it later!
-
MODX Staff
- 12,272 Posts
Add to that the ability to modify the URL so each tab can be bookmarked and you’ve got a must-have add on for those wanting jQuery enhanced pages. Great work!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
@sharkbait
Looks like you may just need to change the & to & in the tpl chunks or snippet if you’re using the default.
Add to that the ability to modify the URL so each tab can be bookmarked and you’ve got a must-have add on for those wanting jQuery enhanced pages. Great work!
Thanks, a great idea!
Regards,
Vladimir Shugaev
Hi
Looks like a handy snippet but I’m having trouble understanding the readme file and how to get it working.
Firstly, I’ve uploaded everything to "YOUR_MODX_ROOT/assets/snippets/tabControl/" and made a new snippet called "tabControl". Am I supposed to copy code into this snippet from one of the included php files?
Secondly, the readme gives the example below, a call to the snippet and some html - i dont understand how these two things go together, how the example relates to the snippet call, whether they all go on the same page? or is [+tabs+] calling [[tabControl? &parents=`parents` &tpl=`tpl`]]?? - - - can anyone please clarify?
-add [[tabControl? &parents=`parents` &tpl=`tpl`]] to your page...
-EXAMPLE:
<ul class="tabs">
[+tabs+]
</ul>
<div class="tabContent">
[+content+]
</div>
thanks for your help