Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2009-06-03 18:10:17

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

Re: Special drop down menu, help!

sebatorresi wrote:

but i have “Commenting is closed for this article” i don´t want this message

In Admin > Preferences set ‘Automatically append comments to articles?’ to ‘No’.

When i click on “nosotros” i see both articles and i want to display a article for “nosotros” and not the anothers articles.

‘Nosotros’ is your section page, and if you don’t tell Txp otherwise it will display a list of articles in that section. But it’s also easy to change that. I assume you want to display a special article, not one of the articles in your menu? So write your article, and make it ‘sticky’, not ‘live’ like the others. Then change <txp:article /> to this:

<txp:if_individual_article>
	<txp:article />
<txp:else />
	<txp:article status="sticky" />
</txp:if_individual_article>

Offline

#17 2009-06-03 18:43:13

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

Re: Special drop down menu, help!

Great!!
My last question for the momment.

The website have a blog, have i to do a new installation of txp for the blog or can i use the current installation? because in the blog my client want to show the list of articles, the articles with the date, author, title, comments and text (like a normal blog).

In the home page want 3 things, there are 3 sections one is “events”, “latest news” and the another one is “Words”. The 3 show the date, title and a short text (may be a image). All come from the blog. I think that is possible with the categories and excerpt, no? In the home page i would put the article with the category and the excerpt that i want to show, no?

I have to put a limit (only show 2 for each one). I don´t know if the excerpt is like wordpress that you can´t put images (only if you use a plug in).

Thanks again!
Seba

Last edited by sebatorresi (2009-06-03 18:43:25)


Sonríe | Smile . <txp:lover />

Offline

#18 2009-06-03 19:18:57

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

Re: Special drop down menu, help!

sebatorresi wrote:

The website have a blog, have i to do a new installation of txp for the blog or can i use the current installation? because in the blog my client want to show the list of articles, the articles with the date, author, title, comments and text (like a normal blog).

Just make ‘blog’ another section, and create another page for it. And create a new article form for the blog articles and use <txp:article form="your-blog-form" />.

In the home page want 3 things, there are 3 sections one is “events”, “latest news” and the another one is “Words”. The 3 show the date, title and a short text (may be a image). All come from the blog. I think that is possible with the categories and excerpt, no? In the home page i would put the article with the category and the excerpt that i want to show, no?

Yes :) In Presentation > Sections set only section ‘blog’ to be displayed on the front page, and create another article form to show only what you want there.

I have to put a limit (only show 2 for each one). I don´t know if the excerpt is like wordpress that you can´t put images (only if you use a plug in).

You can put the article_image tag in your article form, or you can just link to the image in your excerpt.

I think you will manage now, don’t forget to bookmark the Tag Reference.

Thanks again!
Seba

Offline

#19 2009-06-03 21:44:18

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

Re: Special drop down menu, help!

Thanks Els!!

I have a problem, when i create articles for the blog i have the articles in the menu (second level of blog).

Bye!


Sonríe | Smile . <txp:lover />

Offline

#20 2009-06-03 22:20:56

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

Re: Special drop down menu, help!

You can remove ‘blog’ from the sections attribute in the section_list tag, and add it as a separate item after the closing </section_list>. (Hint)

Offline

#21 2009-06-04 22:45:00

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

Re: Special drop down menu, help!

Thanks!
For now i finish with the questions, thanks for all!

Seba


Sonríe | Smile . <txp:lover />

Offline

#22 2009-06-05 00:53:39

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

Re: Special drop down menu, help!

Well, well…
I upload txp to my hosting to start testing the site. The home page works but the others pages not.
I have this error

Not Found
The requested URL /nosotros/ was not found on this server.
Apache/2.0.54 Server at www.ministeriovcn.com Port 80

I have created the articles to show and the sub menu (Second level) is fine… but with this error.

Last edited by sebatorresi (2009-06-05 00:55:13)


Sonríe | Smile . <txp:lover />

Offline

#23 2009-06-05 16:45:28

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

Re: Special drop down menu, help!

Messy URLs work: http://www.ministeriovcn.com/?s=nosotros. Have a look at this FAQ.

Offline

#24 2009-06-08 19:14:28

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

Re: Special drop down menu, help!

Thanks!

I´m with the blog, and i´m having problems with somethings.
1- i don´t want to put all the content of the article in a post, i want a limit with each post with a read more. This is the code that i´m usign for post in the blog:
<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>

<p class="tags"><txp:category1 title="1" link="1" />, <txp:category2 title="1" link="1" /></p>

<txp:comments_invite wraptag="p" />

2- How can i do to put styles to the comments, is posible use avatar for the comments of the users and is posible put style to the form for the comments?

Thanks and sorry again for my stupid questions..

Seba

Last edited by sebatorresi (2009-06-08 19:17:07)


Sonríe | Smile . <txp:lover />

Offline

#25 2009-06-08 21:46:43

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

Re: Special drop down menu, help!

They are not stupid questions, but try this ;)

  1. http://textpattern.com/faq/?q=excerpt
  2. http://textpattern.org/plugins/?q=avatar

For help with styling, you can better post in the Presentation forum.

Last edited by els (2009-06-08 21:48:52)

Offline

#26 2009-06-08 21:48:50

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

Re: Special drop down menu, help!

Thanks!
i´ll check this tomorrow.

Last edited by sebatorresi (2009-06-08 21:53:11)


Sonríe | Smile . <txp:lover />

Offline

#27 2009-06-10 18:32:01

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

Re: Special drop down menu, help!

Let me see if i can explain me better.

- On the blog i want a limit of post by page (pagination).

- On the home page i´ll put the latest news & latest articles but how can i do to limit the latest 2 of each one? Example: i want to show only the latest news and the latest two articles.

Thanks!
Seb

Last edited by sebatorresi (2009-06-10 18:36:30)


Sonríe | Smile . <txp:lover />

Offline

#28 2009-06-10 22:09:42

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

Re: Special drop down menu, help!

I was looking for templates but they use a lot of forms and i´m lost with the blog.
I don´t understand how works this.
On the blog i´ll show the title – date – text (excerpt) – podest by – comments.
Into the post i want to show the same but with the comments and the form.
I was 6 hours today and i can´t do this! hahaha, tomorrow i´ll expend more time :)

Bye


Sonríe | Smile . <txp:lover />

Offline

#29 2009-06-11 17:41:03

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

Re: Special drop down menu, help!

If you change <txp:body /> to this

<txp:if_individual_article>
	<txp:body />
<txp:else />
	<txp:excerpt />
</txp:if_individual_article>

you will have excerpts on the blog home page and the full articles on the individual article pages.

To show comments and the comments form, you need a couple of comment tags, like <txp:comments /> and <txp:comments_form />. You can wrap them in if_individual_article tags too.

Limit the number of articles on a page: use the limit attribute in your article tag. For the pagination have a look at the navigation tags.

Oh, and don’t forget to check TextBook now and then…

Offline

#30 2009-06-11 18:15:40

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

Re: Special drop down menu, help!

Thanks a lot!!


Sonríe | Smile . <txp:lover />

Offline

Board footer

Powered by FluxBB