 | |  |
 |

dimeco
User
May 11, 2008, 9:08 PM
Post #1 of 4
(214 views)
Shortcut
|
|
Alt to related topics...
|
Can't Post
|
|
I saw the "related articles" (by keyword) information in the tutorial. Rather than have "all" the topics load on each page, or the "newest headlines" from all on each page, I was thinking I'd prefer to load only ones that are related - i.e., "accounting" would be related to Finance, but it is not a subcategory of finance. Or, Fitness is related to Health and also Diet, but non are technically linked. I thought about using the syndicator, but that might be too much. (Plus it doesn't actually "print" on the page, so then it is useless for SEO). Is there a way to determine set *categories* so that only those related categories always work together, and always appear in the 'headlines' for those topics? (i.e., sidebar: Fitness Headlines - - - - Other Headlines You may be interested in: Diet Headlines - - - Health Headlines - - - Am I making sense? I promise, no more posting tonight lol - I'm closing up for the night Amber
|
|
|  |
 |

Jake
Staff
/ Moderator

May 12, 2008, 1:00 AM
Post #2 of 4
(201 views)
Shortcut
|
|
Re: [dimeco] Alt to related topics...
[In reply to]
|
Can't Post
|
|
Hi Amber, I think I know what you're after but I'm not quite certain - were you wondering if it's possible for the "related articles" function to pull in articles that have a different, but related, keyword entered? Or were you wondering if you could only display headlines from a selected group of related categories on your various category index pages? The first option isn't possible, but there is a way to implement the second one. I look forward to your reply! ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

dimeco
User
May 12, 2008, 6:53 AM
Post #3 of 4
(133 views)
Shortcut
|
|
Re: [Jake] Alt to related topics...
[In reply to]
|
Can't Post
|
|
Hi Jake, "Or were you wondering if you could only display headlines from a selected group of related categories on your various category index pages? " YES! This is exactly what I'd like, rather than listing "all" category's headlines. (Just selected related ones). Amber
|
|
|  |
 |

MikeB
Staff
/ Moderator

May 12, 2008, 11:11 AM
Post #4 of 4
(120 views)
Shortcut
|
|
Re: [dimeco] Alt to related topics...
[In reply to]
|
Can't Post
|
|
Hi Amber, Thanks for the additional details! I've had a look over this for you, and it seems that the best way to do something like this would be to set this up on a category by category basis. This way, you could actually set up a couple of new fields that would allow you to choose other categories from the site. I'll outline for you how you can create one new field and output this on the template to show headlines from that related category: 1. First you can create a new field in Admin->Database Editor under the "Category" table. You should be able to create this as a plain text field to allow some flexibility but if you think your categories are pretty static and won't be changing you could actually set up a dropdown menu that lists all of your categories. You can just use something like "relatedField1" for the Field Name. While in this example we're just using one field, you could really create as many fields as you need and just repeat this, and the following, steps. 2. So, the "Fitness" category would now have a new blank field for a related category. In this case you can just enter "health" into field 1. What you'll enter into this field will need to be the exact "Filename" variable you have set for the Health category. This way, we can use this value right in the include on your template to point to the appropriate folder. Now, on your /articlePages/articlePage.html template, wherever you'd like to have the headlines show up, you'll use some code like this: <!-- templateIf : $category.relatedField1$ ne '' --> <!--#include virtual="/artman/publish/$category.relatedField1$/headlines.shtml"--> <!-- /templateIf --> This code will ensure that "relatedField1" has a value and will then output the appropriate headlines.shtml file, from whichever folder name you've input. You may need to tweak the include depending on the name of your headlines.shtml file but this example code should point you in the right direction. I hope this helps Amber! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 | |  |
|