Title is missing when announcement is clicked in block

bdornbush - October 12, 2009 - 23:39
Project:Announcements
Version:6.x-1.3
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

This is strange. On one web site, I have the "Announcements: Active" block on the front page. When I hover over an announcement title, it shows the link as /node/nn. When I click on the title, I view the announcement.

But on another site, I have a similar block. When I hover over the title, it shows the link as /announcements/nn. When I click on the title, I see a page title of "Announcements," no announcement title, and the abstract and body of the title.

I tried uninstalling and re-installing the module, but the problem persists.

Any idea what is causing this difference?

#1

NancyDru - October 17, 2009 - 15:38

My first thought would be permissions differences. There may be a difference in URL alias settings. And another possibility is the way the different themes handle the node title (see the discussions in #505962: Option to NOT link to NODE).

#2

bdornbush - October 17, 2009 - 23:45

It appears to be a difference in URL alias settings. I use Pathauto module to provide aliases for nodes. For announcements, it is set to "news/[title-raw]" but the block "Announcements: active" provides the link as "/announcements/nn" where "nn" is the node number. What should the Pathauto alias setting be so that the block will play nicely with the URL alias? And why would the block use the "announcements" part?

#3

NancyDru - October 18, 2009 - 16:57

And why would the block use the "announcements" part?

I suspect this is a legacy thing. AFAICT, there is no need for it to do that.

#4

NancyDru - October 18, 2009 - 17:00
Status:active» fixed

Okay, it points to node/nnn now.

#5

bdornbush - October 20, 2009 - 19:16

I tried to download the latest -dev, and got an error message when I tried to unpack it:

gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Error exit delayed from previous errors

Modules shows that the -dev version was installed, but the link is still "announcements/nn" so I suspect there is something wrong with the -dev file. How do we get it regenerated?

#6

NancyDru - October 21, 2009 - 01:48

I took a couple of unused styles out of the CSS and committed it. I can open the new -dev.

#7

bdornbush - October 22, 2009 - 05:44

Thanks. It worked great. I appreciate the great support you provide for this module.

#8

System Message - November 5, 2009 - 05:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.