Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-04 05:26:38

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Posting new content

I’ve read a lot of tutorials and intro’s for TXP here over the last couple days, and honestly I am only a little more comfortable using it now then before when I tried to just jump right in.

One thing that just boggles me right now is this: Take my current portfolio site for example (http://www.deronsizemore.com/)

It has no CMS or anything installed…just static currently. I’ve got my left side content area, then I’ve got on the right side a section called “Latest” and then I’ve got “Current Work”.

If I’m going to implement TXP with this site (which hope to here someday), what do I need to do to be able to post content in different sections like this?

From what i understand you use the [txp: article/] tag right? So I use an article tag in between each div? Is there some special way I need to separate them? Like use [txp: article_currentwork/] or something to that effect? How with TXP know with section to post content in if I only use [txp: article /]?

Sorry if this makes no sense…hopefully someone will understand what i mean. TXP for right now just makes no sense to me. Seems like it could be simpler if everything was labeled differently. Like a section would be like www.deronsizemore.com/about and about would be the section. Well I would think of this as a page, not a section. A section would be like “Current Work” is on my index page. I guess I’m just thinking bas-ackwards right now.

Sorry for the “[ ]” brackets. when I use a “< >” it doesn’t show up.

Last edited by deronsizemore (2005-11-04 05:29:52)

Offline

#2 2005-11-04 10:34:14

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: Posting new content

You could define a section for every page (i.e. about) and use on that page the <code><txp:article /></code> tag to output the articles of the corresponding section.

If you want to display a second section on the same page, you can use for the output of articles from that second section <a href=“http://textpattern.net/wiki/index.php?title=Txp:article_custom_/”><code><txp:article_custom section=“currentwork” /></code></a> and define with the section attribute, which articles should be displayed.

For your frontpage you can define the static text on the left and output the latest articles (on the right of your homepage) using the <code><txp:article /></code> tag with the limit attribute. In presentation/sections you can define what sections will be displayed on the frontpage.

Offline

#3 2005-11-04 16:38:49

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Re: Posting new content

> tranquillo wrote:

> You could define a section for every page (i.e. about) and use on that page the <code><txp:article /></code> tag to output the articles of the corresponding section.

If you want to display a second section on the same page, you can use for the output of articles from that second section <a href=“http://textpattern.net/wiki/index.php?title=Txp:article_custom_/”><code><txp:article_custom section=“currentwork” /></code></a> and define with the section attribute, which articles should be displayed.

For your frontpage you can define the static text on the left and output the latest articles (on the right of your homepage) using the <code><txp:article /></code> tag with the limit attribute. In presentation/sections you can define what sections will be displayed on the frontpage.
<br />
<br />
<br />

Okay, I’m still not sure if I completely understand. In the TXP 101 tutorial it states that sections are like the sections of the newspaper like National, Local, Sports, and Comics, etc… So in my case with my site, if I understand correctly my sections would be Home, About, Portfolio, Services, Contact, right? You told me how to display a second section on the same page with <code><txp:article_custom section=“currentwork” /></code>. It wouldn’t technically be a section section though would it? Cause I’ve already got my sections as in Home, About, etc…

You also said I can define the static text on the left and output the latest articles on the right of the homepage using <code><txp: article /></code> with the limit attribute, but I cannot find anything telling how to use the limit attribute?

Last edited by deronsizemore (2005-11-04 16:40:12)

Offline

#4 2005-11-04 17:49:06

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Posting new content

Have a read of TextBook (link at the top), in the meantime txp:articletxp:article_custom.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#5 2005-11-04 18:37:31

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Re: Posting new content

Thanks, but honestly I’ve read your “in the meantime” links like 15 times and I’m just not getting it. It makes absolutely no sense to me. Is there anything out there that explains this in simple terms. I feel like all the help links just explain it in a way not made for beginners. Alot of help stuff I’ve look at compares the tags and stuff to Movable Type, which I also have no experience with, so comparing them helps me zero. Thanks for the links, but me reading the same stuff over and over again isn’t going to help.

I mean would I do something like this to get my three different content sections on my homepage?
<code>
<div id=“main”>
<txp: article_custom section=“main”>
</div>
</code>
<code>
<div id=“latest”>
<txp: article_custom section=“latest”>
</div>
</code>
<code>
<div id=“currentwork”>
<txp: article_custom section=“currentwork”>
</div>
</code>

Offline

#6 2005-11-04 20:21:36

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

Re: Posting new content

Try these pages, they’re better for beginners:

Tutorial on the TextPattern Presentation Model

Textpattern 101

Edit: some parts may be outdated, but you’ll get the general idea.

Last edited by doggiez (2005-11-04 20:25:40)

Offline

#7 2005-11-04 20:23:13

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Posting new content

That should do it and you can use the attribute limit=“5” inside each tag to limit the number of articles appearing from each of the sections. Also you don’t need to have separate “divs” for each tag. They can all sit inside the same “div”. If you want to style the different section articles in different ways then create a new “article” type FORM template for each section. This would be similar to the default FORM template but you can add or remove different bits of information and use CSS to style them. Then call the FORM using the form=“FormName” attribute. Remember that the tag is “self-closing” so it should end with “/>” so you end up with something like <code><txp:article_custom section=“main” form=“main_articles” limit=“5” /></code>.

Last edited by thebombsite (2005-11-04 20:24:04)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#8 2005-11-04 21:06:06

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Re: Posting new content

doggiez: I’ll do some more reading. Hopefully those will shed some light. Thanks

thebombsite: I think I understand what you’re saying, but they wouldn’t need to be in separate div’s even though two of the divs are floated right in the stylesheet?

Offline

#9 2005-11-04 23:45:56

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Posting new content

Oh, if you are floating for position then yes, you need the divs, but the part about different forms can still apply as well.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#10 2005-11-05 00:15:20

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Posting new content

D, it’s not very clear what you’re trying to achieve.

The FAQ covers “static” pages, which probably does most of what you want. I think the suggestions using article_custom are overcomplicating things, unless I’m overlooking something.


Alex

Offline

#11 2005-11-05 01:28:48

deronsizemore
Member
From: Kentucky
Registered: 2005-11-02
Posts: 324

Re: Posting new content

Zem,

Well ultimately I’m going to be making a few sites (no blogs) and I want to use TextPattern as the backend, simply because I’ve heard so many good things. Currently I’m just trying to acheive an exact duplicate of my current site (deronsizemore.com) only more easily manageable through TXP. The FAQ link you provided might be the trick I need to get the ball rolling for me. I actually read the FAQ, but must have overlooked this one.

I realize what I’m asking is very basic, and it’s just a primer for me to get ready for future sites which will not be so basic. I think my main issue so far is that I’m still thinking about it the wrong way. I used Content Management Made Simple CMS a while back and it was a breeze. You more or less just do something like the following:
<br />
<code>
<div id=“main”>
{content}
</div>
</code>
<br />
Then you just go into your admin panel and click on the “main” section, type in the WYSIWYG editor and viola, your content shows up where the <code>{content}</code>. TXP is just a little different, which doesn’t nessesarily make it harder, I’m just not thinking in the right terms I think. I don’t give up easily, so I’ll keep playing until I get it. I’ve made up my mind that I’m using TXP so I don’t care if it takes me a year! :)

Last edited by deronsizemore (2005-11-05 01:29:24)

Offline

#12 2005-11-05 02:47:26

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Posting new content

<txp:article /> is Texpattern’s equivalent to {content}.


Alex

Offline

Board footer

Powered by FluxBB