Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-06-02 21:58:18

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

Re: Special drop down menu, help!

hahaha!
Ok… now i understand what you mean.
So into the page that i create for the section i have to put a form, no? For example i want only show the title a photo and text, i have to create a form with those 3 things (title, photo and text). But when i put this
<txp:article_custom form="default" pgonly="0" section="nosotros" status="4" />
I see all the articles for “nosotros” and not only the article for the right area.
Example:
Nosotros > Historia, one article
Nosotros > Familia, one article
I see both articles into “historia” or “familia”

I´ll try tomorrow to finish this part because i have another question, lol.

Thanks a lot!

Seba


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

Offline

#14 2009-06-02 22:20:30

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

Re: Special drop down menu, help!

sebatorresi wrote:

<txp:article_custom form="default" pgonly="0" section="nosotros" status="4" />

Make that <txp:article /> :) The attributes form, pgonly and status all have their default value, so no need to add them, unless you want to give them another value. Attribute section is not needed for <txp:article /> because it is context sensitive: it will display only articles from the section and/or category you are viewing, on an individual article page it will display only one article. So when you click ‘Historia’ in the menu, it will only show article ‘Historia’.

Offline

#15 2009-06-03 17:41:53

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

Re: Special drop down menu, help!

Hello!

Well i´m making a progress hehehe.
I have my article when i click in “historia” or “familia”. In the article i show only the title and the text but i have “Commenting is closed for this article” i don´t want this message, this is my form

<h3 class=“general_titles”><txp:title /></h3>
<div class=“general_text”>
<txp:body />
</div>

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

Last edited by sebatorresi (2009-06-03 17:47:40)


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

Offline

#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

Board footer

Powered by FluxBB