Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-08-01 10:50:03

caruso_g
Member
From: Catania
Registered: 2009-04-11
Posts: 88
Website

Landing and sidebar article on home page

Hi guys,
that’s always me…
I am trying to use a solution of a landing/sidebar sticky page on a website, but I am not able to get expected results.
On the home page, I get just the article with category sidebar where I should get the one with category landing
Following is the default home page I use for all pages:

<txp:output_form form="bs_head" />

<body id="<txp:if_section name="">front<txp:else /><txp:section /></txp:if_section>">

<txp:output_form form="bs_navbar" />

<txp:output_form form="bs_pageheader" />

<div id="contentContainer" class="container_12">
	<div id="content" class="grid_8">
        <div class="inside">
            <txp:if_individual_article>
                <txp:article form="bs_simple" />
            <txp:else />
                <txp:article_custom section='<txp:section />' category='landing' status="sticky" form="bs_simple" limit="1" />
                <txp:if_section name="i-corsi">
                    <txp:article form="bs_tabs" wraptag="ul" class="tabs" break="li"/>
                    <txp:article form="bs_tabs_content" wraptag="div" class="panes" break="div"/>
                </txp:if_section>
            </txp:if_individual_article>
            <h5>Debug</h5>
            <p>Section name: <txp:section /></p>
        </div><!-- inside -->
    </div><!-- #content -->
	<div id="sidebar" class="grid_4">
        <div class="inside">
            <txp:article_custom section='<txp:section />' category='sidebar' status="sticky" form="bs_simple" limit="1" />
            <p><a href="http://textpattern.com/">Txp</a></p>
        </div>
	</div><!-- #sidebar -->
</div><!-- #contentContainer -->

<!-- footer -->
<txp:output_form form="bs_footer" />

</body>
</html>

Of course, I created two articles per page, both sticky, one with category landing and one with category sidebar

No to mention that on the home page I get nothing

What am I doing wrong?
I am going crazy…

Offline

#2 2010-08-01 10:52:27

caruso_g
Member
From: Catania
Registered: 2009-04-11
Posts: 88
Website

Re: Landing and sidebar article on home page

I was forgetting, here you can find the live website, and I created a those two test articles for “home” and “chi siamo” pages only (“I Corsi” uses a different article setting).

Offline

#3 2010-08-04 15:30:47

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: Landing and sidebar article on home page

maybe trouble in status of article?


<txp:txp_me />

Offline

#4 2010-08-05 14:16:35

caruso_g
Member
From: Catania
Registered: 2009-04-11
Posts: 88
Website

Re: Landing and sidebar article on home page

Ok, I figured it out.

  • it’s always better to use single quotes to include TXP variables like <txp:section />
  • It is always better to double check categories names vs. categories titles in the code… doh!

Thank you all, not getting any answer I understood you gently were making me take a better look at the code… :)

Offline

Board footer

Powered by FluxBB