Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2008-01-07 06:37:33

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Almost finished..

Re the dropdowns – now I realise why I chose the P7 code – its actually really easy to use. The JS is very little too. CSS Play menus are easier if one is using manual links – with section lists or category lists it gets difficult.

Offsets from the page. Code:

<div id="leftlarge">
<txp:if_individual_article>
<txp:article limit="1" form="blog_article_single" />
<txp:else/>
<h2 class="slashes blue">Hva Skjer?///</h2>
<txp:article limit="1" form="blog_article_single" />
<txp:article limit="3" form="blog_article_list" offset="1" />
</txp:if_individual_article>
</div>

<div id="rightsmall">
<ul class="smd_slimbox">
<txp:smd_slimbox category="hva_skjer" limit="36" />
</ul>

<txp:if_individual_article>
<txp:else/>
<txp:article limit="20" form="hva_skjer_side_newslist" offset="4" />
</txp:if_individual_article>

Last edited by jstubbs (2008-01-07 06:38:06)

Offline

#38 2008-01-07 18:29:43

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Almost finished..

I don’t think my previous post was clear – I am using the code above in the page – not a form. The site’s page ma be viewed here

Offline

#39 2008-01-08 02:31:20

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Almost finished..

jstubbs wrote:

I don’t think my previous post was clear – I am using the code above in the page – not a form. The site’s page ma be viewed here

The offset problem is caused because you use <txp:article />. And as we know <txp:article /> is content sensitive, meaning that in individual article, it will show only one, and specific article, and overrides all offset and limit attributes.

You have to try using <txp:article_custom /> and only leave there <txp:article /> to view individual / section paged articles.

Cheers!

Last edited by Gocom (2008-01-08 02:32:43)

Offline

Board footer

Powered by FluxBB