For some reason new links are not appearing on my site's front page even with the 'Promoted to front page' box clicked. Any ideas? I am using the normal www.example.com/node front page, I cleared all caches, etc....

Eric

Comments

aitala’s picture

Ok, I found it - all the weblinks nodes had sticky set to -100 in the 'nodes' table. Any idea why? Even on newly created weblink nodes.

nancydru’s picture

Status: Active » Postponed (maintainer needs more info)

We use "sticky-encoded" weighting now (similar to the Weight module), so -100 means non-weighted, non-sticky. I have never had any problem with this not showing up on the home page, although I rarely want new links there.

aitala’s picture

Well, I went into the DB with phpMyAdmin and reset all the weblinks nodes to sticky=0 and they appeared on the main front page. I would agree that, in general, folks might not want links to show up on the front page, but if they do, manually updating the DB is not the way to go... Hehe..

But in general, none of my nodes has a 'sticky' other than zero. So its seems odd to me that -100 is the 'default'...

Edit: In looking at weblinks.weight.inc, I am really not sure this is a good idea.. Since weight only goes from -10 to 10, I don't get adding or subtracting 100. Now if you multiplied the weight by 10, then did the add/subtraction...

Thanks,

Dr E

nancydru’s picture

If you look at the Weight module, with which we wish to be compatible, the weight range is -90 to 90.

Perhaps everything is working for me because I also have the Weight module installed. I will try to set up a test case on a site that does not have Weight.

nancydru’s picture

I set up a site that has nothing but Web Links installed and the promoted links properly show on the home page. I just added this check to the test file too.

aitala’s picture

Did you add any non-weblinks nodes? Most of mine are non-weblinks, so if they get pushed to the bottom, no one will see them. For example, see - http://www.f1m.com/main/node?page=80 and look at the node publishing dates.

Any chance of making the addition/subtraction a selectable (on/off) option for the weblinks node type?

Eric

nancydru’s picture

Yes, there are other nodes there. I did just now test with "sticky" and see that there is a sorting problem there. I will have to try to see why. This technique is working everywhere else that I have seen.

As for a weighting option, you would need to open a new feature request. Weighting has been in this module forever, although we did change the method not too long ago.

aitala’s picture

Hm... I actually do not have any sticky nodes, but I am running the Admin Messages module which can make nodes sticky, I think. I will remove that and see what happens...

Eric

nancydru’s picture

Most of my sites have a "Welcome" story node that is sticky and promoted.

macloch’s picture

I have this issue also after upgrading weblinks - all weblinks are displayed "after" all other content types on front and other pages.

nancydru’s picture

Title: Links not appearing on front page » Links not ordered properly on front page
TRS_Chris’s picture

I am also having this problem after updating. All web links appear at the end of all other front page content (in my case, appearing on page 4) regardless of when they were posted and whether or not I promote them to the front page.

nancydru’s picture

Yes, I understand. Plus, unfortunately, this also means that if you make them sticky, they show before everything else. If you use the Weight module, you would not see this as everyone would play by the same rules.

I am trying to find a good way to fix this without having to put our own weighting back in. IMHO, the best thing is to remove all weighting from this module, as that is more standard Drupal.

kenny hektik’s picture

I too was having this same issue, but after reading NancyDru's post (#4), I installed the weight module and applied it to all of my nodes and now everything is working as it should be. So thanks NancyDru for mentioning that.

nancydru’s picture

Yes, if all node types use Weight, it would be fixed. However, if they do not, it could still occur. Without a hack to node.module, I'm having trouble trying to figure out how to fix it. (In D7, with query tagging, it might be possible to intercept it with a query rewrite.)

hvalentim’s picture

Any progress on this?
Still experience the same: links do not show up on front page, although promoted.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Active

See #14 and #15 above. Also, if you are still on 6.x-2.0, then update to the newest version and see if this problem still exists.

jvinci’s picture

FYI: I had the same problem while using version 6.x-2.3. I installed and configured the Weight Module and now my front page posts are properly ordered.

Thanks,

JV

nancydru’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.