Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » How do I…?
  3. » Help!

#1 2009-05-19 14:59:36

miksu
Member
Registered: 2009-05-02
Posts: 17

Help!

I wan use certain form. But I don´t know how.
Article tag not workin. :(

Offline

#2 2009-05-19 15:13:37

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Help!

Posting 101.

  • Use a descriptive Subject, not just Help!
  • Be more thorough in your description
  • Show your code
  • describe the desired result
  • describe how the result you’re getting varies from that

Last edited by mrdale (2009-05-19 15:13:56)

Offline

#3 2009-05-19 15:47:09

miksu
Member
Registered: 2009-05-02
Posts: 17

Re: Help!

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>
<head> <meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />

<title>miksula v.2</title>

<link rel=“home” href=”<txp:site_url />” />

<txp:feed_link flavor=“atom” format=“link” label=“Atom” /> <txp:feed_link flavor=“rss” format=“link” label=“RSS” />

<txp:css format=“link” />

<txp:rsd />
</head>
<body id=”<txp:if_section name=”“>front<txp:else /><txp:section /></txp:if_section>”>

<!— accessibility —>
<div id=“accessibility”>

</div>

<div id=“container”>

<!— head —> <div id=“head”>

<p id=“site-slogan”><txp:site_slogan /></p> </div>

<!— left —> <div id=“sidebar-1”>
<span style=“padding:0px;font-weight:bold;”>Navigaatio</span><br />
<br />
<a href=“index.php”>>Etusivu</a><br />
<a href=“index.php”>>Etusivu</a><br />
<a href=“index.php”>>Etusivu</a><br />
<a href=“index.php”>>Etusivu</a><br />

</div>

<!— right —>

<!— center —> <div id=“content”>
<txp:if_category> <h2><txp:category title=“1” /></h2>

<div class=“hfeed”>

</div>
<txp:else /> <txp:if_search> <h2><txp:text item=“search_results” />: <txp:page_url type=“q” /></h2>

<div class=“divider”><img src=”<txp:site_url />images/1.gif” width=“400” height=“1” alt=”—-” title=”“ /></div> </txp:if_search>

<div class=“hfeed”> <txp:article form=“single” listform=“default” /> </div>
</txp:if_category>

<txp:if_individual_article>

</txp:if_individual_article>

</div>

<!— footer —> <div id=“foot”>© miksula 2009 </div>

</div>

</body>
</html>
Code of my template. That code <txp:article form=“single” listform=“default” /> not workin. It look same as default form. :(

Offline

#4 2009-05-19 16:30:27

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help!

<txp:article form="single" listform="default" /> will use form ‘single’ when you’re viewing an individual article page, and form ‘default’ when you’re viewing an article list page.

  • Are you sure you are looking at the right page? What is the URL of the page that seems to use form ‘default’, but should be using ‘single’?
  • Is there really different code in both forms? Can you post the content of both forms?

Offline

#5 2009-05-20 16:29:39

miksu
Member
Registered: 2009-05-02
Posts: 17

Re: Help!

Single form look this
<h3 class=“entry-title”><txp:permlink><txp:title /></txp:permlink></h3> <p class=“published”><txp:posted /></p>

<div class=“entry-content”>
<txp:body />
</div>
I want that article no have comments.

Offline

#6 2009-05-20 17:26:40

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help!

miksu wrote:

I want that article no have comments.

If you don’t want comments, set ‘Accept comments’ in Basic preferences to ‘no’ (Textbook).

And I’m sorry, but I find it very hard to help you when you don’t answer my questions… ;) If you’re not comfortable using English, I’m sure there is a forum in your own language.

Offline

#7 2009-05-21 07:43:25

miksu
Member
Registered: 2009-05-02
Posts: 17

Re: Help!

You don´t understant. I want create internet page where are in front page blog. In navigation are links to pages must look normal page not blog pages. When I take comments off. There article apreal text comments are closed.

Offline

#8 2009-05-21 12:15:12

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help!

Ah, I see. In that case, you must set (in Advanced preferences) ‘Automatically append comments to articles’ to ‘no’, and create a different article form for your blog section that contains the comments tags to show the comments and the comment form. Here is a FAQ that explains how it works.

Offline

#9 2009-05-22 12:46:55

miksu
Member
Registered: 2009-05-02
Posts: 17

Re: Help!

I don´t understant. O___o My blog form look this:
<txp:if_individual_article>
<h1 class=“entry-title”><txp:permlink><txp:title /></txp:permlink></h1>
<txp:else />
<h3 class=“entry-title”><txp:permlink><txp:title /></txp:permlink></h3>
</txp:if_individual_article>

<p class=“published”><txp:posted /></p>

<div class=“entry-content”>
<txp:body />
</div>

<address class=“vcard author”> <span class=“fn”></span></address>

<p class=“tags”><txp:category1 title=“1” link=“1” /> <txp:category2 title=“1” link=“1” /></p>

<txp:comments_invite wraptag=“p” />

<div class=“divider”><img src=”<txp:site_url />images/1.gif” width=“400” height=“1” alt=”—-” title=”“ /></div>

And my page form are same but not have this <txp:comments_invite wraptag=“p” />.
Which tags I place here and where.

Offline

  1. Index
  2. » How do I…?
  3. » Help!

Board footer

Powered by FluxBB