Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-17 21:39:16

mattrock
New Member
Registered: 2006-02-10
Posts: 4

A question of implemenatation

I am interested in running a “daily menu” feature. I think the best way for me to ask how to implement what I would like to do is to tell how I envision using it.
I would like to create a Section of articles of “menu items” where the articles are of a “Item” and “Description” format for each article posted to the Section. I would like to then have another Section dedicated to the actual “daily menu.” This is where I am not sure how to implement structure. The easiest way I can think to use textpattern to my end would be to create an article in this section that is tied to a date of display. I would then like to have a list of items in this “daily menu” article that is a list of “Items” from the previous section. The idea is to be able to list the items in a way that a form can be built so that each item in the list for that day can be listed according to the category and also link to the corresponding “Item and Description” article. The goal is to make each day’s entry as simple of a list-making process as possible.

Within this “daily menu” section, how do I make the article entry as easy as possible to create for the day and still be able to use the information for linking purposes? Also, how do I lock the the article to a date so that it can be used in a day, week, or month viewing scenario?

Thanks for the assistance and an amazing system of code.

Offline

#2 2006-03-17 22:07:34

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: A question of implemenatation

You could use txp:article_custom to target a specific time, article, section, whatever. And use limit and offset attribute to refine your targeting.

Offline

#3 2006-03-18 19:37:19

mattrock
New Member
Registered: 2006-02-10
Posts: 4

Re: A question of implemenatation

Is there a way to define an article list within an article?

Offline

#4 2006-03-18 20:35:00

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: A question of implemenatation

Nope, none that I’m aware of.

Offline

#5 2006-03-18 20:48:13

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

Re: A question of implemenatation

I’m not quite sure if I understand what you want to achieve exactly, but maybe this will help:

You can’t use <txp:article_custom /> in an article, but you can use it in an article form. You might also want to have a look at chh_article_custom, as it has more flexibility in defining time spans than the native TXP article tags.

Offline

Board footer

Powered by FluxBB