Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2019-12-04 19:05:21

padrelar
New Member
From: Houston, TX
Registered: 2011-11-23
Posts: 9
Website

Formatting inside article tags

At http://dev3.newscriptorium.com/library/ I am trying to reformat the heading and use code that keeps the single entry data from being broken across the columns, but nothing I put inside the article tag in the codes seems to be recognized.

<txp:article section="articles" category="39-articles" sort="title asc"/>
   <div class="together">  
       <h4>
       <txp:title />
        </h4>
       <p>
       <txp:body />
       </p>
  </div>
<txp:article />

Edit by gaekwad: made code look pretty ‘n stuff.

Last edited by gaekwad (2019-12-04 19:07:58)

Offline

#2 2019-12-04 19:54:56

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Formatting inside article tags

You put nothing inside the article tag indeed :-) It should be

<txp:article section="articles" category="39-articles" sort="title asc">
   <div class="together">  
       <h4>
       <txp:title />
        </h4>
       <p>
       <txp:body />
       </p>
  </div>
</txp:article>

Offline

#3 2019-12-04 20:04:20

padrelar
New Member
From: Houston, TX
Registered: 2011-11-23
Posts: 9
Website

Re: Formatting inside article tags

gaekwad: Thanks for the pretty.

etc: That code still does not allow the formatting to work.

Offline

#4 2019-12-04 20:31:13

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Formatting inside article tags

Where exactly have you put this block? Try to replace <txp:article /> with <txp:article_custom />.

Offline

#5 2019-12-04 20:43:46

padrelar
New Member
From: Houston, TX
Registered: 2011-11-23
Posts: 9
Website

Re: Formatting inside article tags

I was dealing with the wrong tag set, that helps.
Thanks,

Offline

Board footer

Powered by FluxBB