Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-20 23:19:25

Leithen
Member
From: Scotland
Registered: 2006-02-05
Posts: 24

Agency site - How to list Retailers?

I’m probably having one of my less-than-clever moments, but I can’t get my head around how to structure a site I’m working on – any help would be fantastic.

It’s a gifts agency, that deals with a smaller number of suppliers and a larger number of retailers. Ideally I’d like to have each supplier and retailer have it’s own page, or article. Within the article would be the usual content depending on whether Supplier or Retailer – products or location etc. Different Sections for each should work fine.

But here’s my problem – On each respective page, whether Supplier or Retailer, I want to be able to produce a list of article links to either;

  • Retailers stocking Supplier’s products

or

  • Suppliers stocked by Retailer

I’m trying to figure out how I could use custom fields, keywords etc to achieve this, but I can’t get my head past the problem of how to supply the tag producing the list with the correct value to use to select the articles.

Worst case scenario, I could hard code with article id’s, but for a growing business, that is less than ideal. For the site to work best, selection of retailers or suppliers within the article panel in some way that reduces the chance of error and allows for changes is what I was hoping for.

Many thanks.

Offline

#2 2010-01-21 00:32:22

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Agency site - How to list Retailers?

Hi,
if I understand you correctly you want something like a dropdown list of article titles in the “write” tab, so that you can associate each article with another article? If this is the case the upcoming version of glz_custom_fields will let you populate custom field values with a PHP script. For more info look here

Offline

#3 2010-01-21 05:01:24

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: Agency site - How to list Retailers?

Hello Christian,

You could think about installing the plug-in rss_unlimited_categories. Certainly have a section each for suppliers and retailers. When you write an article for either, e.g. for Billy Broon’s Sweetie Shop also create a category solely for it in the same name i.e Billy Broon’s Sweetie Shop. Then assign all the categories of the suppliers who supply sweeties to Billy to his article. In the article form use rss_unlimited_categories_article_list or one of the other plugin tags to produce a linked list of suppliers. Obviously, you would also have to add the Wullie Broon’s Sweetie Shop category to each of the relevant supplier articles.

Hope this helps.

Joe

Last edited by joebaich (2010-01-21 05:05:15)

Offline

#4 2010-01-21 11:38:15

Leithen
Member
From: Scotland
Registered: 2006-02-05
Posts: 24

Re: Agency site - How to list Retailers?

Redbot, Joe, many thanks for your replies. I’ll have a shot at both.

The glz_custom_fields solution sounds the most intriguing, but also possible the hardest as my knowledge of php is scant, to say the least. Ideally I’d be able to set it up to have a filter by section and then a list of articles that would allow multiple selection. It would undoubtedly be the easiest for the owners of the site to use.

Offline

#5 2010-01-21 12:09:00

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Agency site - How to list Retailers?

I’m sure if you ask Gerhard (or in the forum thread) – once the pugin will be released – you’ll obtain the necessary php code in no time ;)
Anyway, while you can surely have a multiselect articles list, I don’t know if it will be possible to have a filter by section.

Offline

Board footer

Powered by FluxBB