Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
need help: how to NOT-list a selected list of headlines?

 

 


LiquidQuest
User

Jul 28, 2006, 10:28 AM

Post #1 of 3 (1030 views)
Shortcut
need help: how to NOT-list a selected list of headlines? Can't Post

the headline of this thread might be a bit confusing, but I hope that my explaination below sheds some light at what i am targeting.

we can have a selected group of article headlines to show up on any of our articles by doing the following:

1) add an article field through the admin area and set its type to "checkbox".

2) insert the following code into the page template (the following example uses a direct PHP include tag for PHP type files, not SSI includes... and assumes that the checkbox field is art_field4)

Code
<!-- INCLUDE SELECTED ARTICLES--> 
<?php include('/cgi-bin/exec/search.cgi?fields=art_field4&keyword=1&perpage=5&template=search/selected_headlines.html'); ?>


is there a search query that retrieves a list of the latest five articles which do NOT include any recent article tagged as "selected" through art_field4? Smile
Marssin


LiquidQuest
User

Jul 29, 2006, 6:15 AM

Post #2 of 3 (1022 views)
Shortcut
Re: [LiquidQuest] need help: how to NOT-list a selected list of headlines? [In reply to] Can't Post

hello? Blush
Marssin


MikeB
Staff / Moderator


Jul 29, 2006, 10:35 AM

Post #3 of 3 (1017 views)
Shortcut
Re: [LiquidQuest] need help: how to NOT-list a selected list of headlines? [In reply to] Can't Post

Hi Marssin,

Thanks for the post! Smile

If you're using a checkbox to choose your "Selected" articles then a way of displaying all of the unselected articles isn't actually something you'll be able to do.

When you're using a checkbox, if the field isn't selected then there isn't actually a value that is assigned to that field and this just has to do with the way checkboxes in general work.

Probably the easiest thing would be to use a dropdown menu with the option to set an article as "Selected" or not rather than a checkbox. This should allow you to create the effect you're looking for by showing the selected articles and also the unselected articles.

I hope this helps and if you have any other questions or comments, just let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]