Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-09-13 00:59:43

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

dynamically generated content not working with jquery ui [resolved]

this one is really strange. i am trying out jquery ui tabs. if i type out the content area manually, it works. but when i generate the content using article_custom, it doesn’t flip the tabs:

<div id="tabs">
<ul>
     <txp:article_custom section="articles" limit="3">
     <li><a href="#tabs-<txp:article_id />">
     <txp:title /></a></li> 
     </txp:article_custom>
</ul>    
<!-- here is the content -->
    <txp:article_custom section="articles" limit="3">
    <div id="#tabs-<txp:article_id />"> <!-- here was the culprit -->
    <p>test <txp:article_id /> </p>
    </div>
    </txp:article_custom> 
</div>

regarding the flipping: the three content divs show up on the page (limit=“3”). if it’s working properly, only one should show up

jquery ui tabs

edit: the culprit was the pound sign in the div id

Last edited by mrtunes (2010-09-13 01:15:04)

Offline

Board footer

Powered by FluxBB