Home | Products | Consulting | Hosting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Article Manager 2:
feature article on homepage

 

 


4blacksheep
User

Mar 14, 2008, 2:50 PM

Post #1 of 17 (1366 views)
Shortcut
feature article on homepage Can't Post

Hello,

I am trying to set up a way for users to chose which article would be featured on a separate section of the homepage.

This is what I did:
1. I created a checkbox custom filed named: homeFeatured
2. Created a new publish rule and sorted it by homeFeatured first and date second.
3. included this publish rule in my template:
<!--#include virtual="$published.homeFeatured.webpath$" -->

It shows an article alright, but not one that has been selected.
Why?

Thanks for your help,
Roni


hsteensland
User

Mar 15, 2008, 3:18 AM

Post #2 of 17 (1362 views)
Shortcut
Re: [4blacksheep] feature article on homepage [In reply to] Can't Post

Hi

Did you select "Reverse order" when sorting by homeFeatured?


Harald


4blacksheep
User

Mar 16, 2008, 9:51 AM

Post #3 of 17 (1345 views)
Shortcut
Re: [hsteensland] feature article on homepage [In reply to] Can't Post

Thanks for the advice. I did try that.

The problem is not so much the order but the fact that an article that wasn't selected as homeFeatured appears there.


hsteensland
User

Mar 17, 2008, 3:31 AM

Post #4 of 17 (1340 views)
Shortcut
Re: [4blacksheep] feature article on homepage [In reply to] Can't Post

Ah, I remember having had the same problem.

When a checkbox field is created later on in the process, the values for that field for articles having already been created is blank in the database. Articles created after will either get the value "0" or "1" when saved (depending on unchecked or checked). If you re-save all articles created before creating the new field, then their field value will no longer be blank.

The problem with the sorting arises because AM seems to list articles with blank values first no matter whether "Reverse order" is selected or not (though it seems to be limited to checkboxes).

What I did was was to use a listbox instead of a checkbox, where the "list" contains only one choice corresponding to a selected checkbox (it is given the value 1 in the field editor). This seems to avoid the problems with sorting based on checkbox fields.

(If you test this I recommend you create a new field and not convert the old one to a listbox)


Harald


4blacksheep
User

Mar 17, 2008, 10:06 AM

Post #5 of 17 (1336 views)
Shortcut
Re: [hsteensland] feature article on homepage [In reply to] Can't Post

Thank you. that explains a lot of things.

I did what you suggested, list vs. checkbox and created new articles.
It works now but (there is always a but) for only articles in "home" category even though the publish rule includes all categories..

any ideas?

Roni


Jake
Staff / Moderator


Mar 17, 2008, 3:18 PM

Post #6 of 17 (1333 views)
Shortcut
Re: [4blacksheep] feature article on homepage [In reply to] Can't Post

Hi Roni,

You might want to make sure that your secondary "Record Sorting" option of "Date" is set to show the most recent articles first (I believe this is reverse order). If this isn't set, then the first article selected as "Featured" will stay where it is indefinitely.

I hope that helps!
-----------------------------------------------------------
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.



4blacksheep
User

Mar 19, 2008, 2:01 PM

Post #7 of 17 (1287 views)
Shortcut
Re: [Jake] feature article on homepage [In reply to] Can't Post

The "Date" sorting was set as Reverse order.

The problem remains to be that this all works fine for only the category I am in even though the publish rule is set for All categories.

Roni


Jake
Staff / Moderator


Mar 20, 2008, 3:31 PM

Post #8 of 17 (1219 views)
Shortcut
Re: [4blacksheep] feature article on homepage [In reply to] Can't Post

Hi Roni,

I'm a little confused by your last post - is this problem not yet resolved?

I look forward to your reply. Smile
-----------------------------------------------------------
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.



4blacksheep
User

Mar 20, 2008, 4:12 PM

Post #9 of 17 (1218 views)
Shortcut
Re: [Jake] feature article on homepage [In reply to] Can't Post

no it has not been resolved.

I want to be able to chose one article from all the categories and feature it on the homepage.
right now it works for the category itself only. so if I am in "home" category it works for the articles in the home category. if I select a different article from a different category with a later date it wont show up on the homepage.

Hope this makes things clearer.

Roni


Jake
Staff / Moderator


Mar 21, 2008, 1:42 PM

Post #10 of 17 (1210 views)
Shortcut
Re: [4blacksheep] feature article on homepage [In reply to] Can't Post

Hi Roni,

Is this include publishing rule currently set to create "multiple files" or "one file"? If it's set as multiple, that would be the cause of this - using the "one file" setting should make this work correctly.

If this is still not working how you expect it to, send us a second-level support request here so we can take a look at how you've got everything setup firsthand:

https://www.interactivetools.com/support/

Don't hesitate to contact us. Smile
-----------------------------------------------------------
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.



4blacksheep
User

Mar 21, 2008, 2:13 PM

Post #11 of 17 (1209 views)
Shortcut
Re: [Jake] feature article on homepage [In reply to] Can't Post

hallelujah!
That did it. I knew it was a easy fix but couldn't figure it out.

Thanks.
Roni


svsanchez
User

Mar 29, 2008, 7:31 PM

Post #12 of 17 (1019 views)
Shortcut
Re: [Jake] feature article on homepage [In reply to] Can't Post

Hello, I am trying to do the same thing but I would like to display a picture also. I have created the publish rule as explained on this thread and think it's working ok, but I also added 2 new fields to my artman2:

- Front Picture and

- Lead Picture

The "Front Picture" is the one I want to display when I choose one of my articles to appear in my front page. It will be a bigger picture that will go below the article title and above the lead paragraph.

The Lead Picture is a little thumbnail that I will be using for all my articles, which will appear to the right of the lead paragraph. But this should NOT appear on the front page, as the front page article will have the "Front Picture" so it would look bad to have both pictures there, especially if they will very often be the same picture. I guess I have to add a "if ... then" statement to my articleLists templates to tell it if I have uploaded the "Lead Picture" to show it to the right of the lead paragraph.

How do I do these 2 things?

Thx a lot!


Donna
Staff / Moderator


Apr 1, 2008, 3:10 PM

Post #13 of 17 (949 views)
Shortcut
Re: [svsanchez] feature article on homepage [In reply to] Can't Post

Hi there!

Well, if you've got two images uploaded via different fields, the easiest way would simply be to call a different field depending on which template you're on. So, if you've got "Front Picture" as one field, you'll want to put that one on the front page template, and "Lead Picture" will go on the other template. No if statement required. :)

Does that make sense?

Donna


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.


svsanchez
User

Apr 1, 2008, 10:32 PM

Post #14 of 17 (941 views)
Shortcut
Re: [Donna] feature article on homepage [In reply to] Can't Post

Hi Donna, thx for answering. The problem is I need to use BOTH kinds in my home page. Please see www.deguate.com you will see the central part of the page (white background) is divided in two columns, in the first column just at the top I want to include the TOP STORY with the big picture that would be uploaded in the "Front Picture" field. Then in the right column just under the 300x250 banner are the latest stories that we upload and keep uploading all day long (from 9h00 to 17h00) and there is where I want to use the "Lead Picture" field.


Jake
Staff / Moderator


Apr 3, 2008, 9:51 AM

Post #15 of 17 (906 views)
Shortcut
Re: [svsanchez] feature article on homepage [In reply to] Can't Post

Hi svsanchez,

You could use some templateIf's to control which image is displayed, based off of the "Featured" checkbox. These would look like this:


Code
<!-- templateIf: $article.featured$ eq "Yes" --> 
***code to show the large image here***
<!-- /templateIf -->
<!-- templateIf: $article.featured$ ne "Yes" -->
***code to show small image here***
<!-- /templateIf -->


So whenever an article is set to "Featured", it will use the larger image format.

Let us know if you need anything else!
-----------------------------------------------------------
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.



svsanchez
User

Apr 4, 2008, 10:43 AM

Post #16 of 17 (826 views)
Shortcut
Re: [Jake] feature article on homepage [In reply to] Can't Post

Hello Jake, thx for your reply, could you please send me the code to show an image as no matter what I try I get a red "x". This is what I have right now: <img src="$file.FotoPortada$" border=1>


Jake
Staff / Moderator


Apr 7, 2008, 2:35 PM

Post #17 of 17 (714 views)
Shortcut
Re: [svsanchez] feature article on homepage [In reply to] Can't Post

Hi svsanchez,

On what type of page are you trying to use that code? Had you written up the template cell code for that field, or are you trying to use just that line?

I look forward to your reply. Smile
-----------------------------------------------------------
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.


 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Hosting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4