Hello Gibus,
On the priorities/priorities-survey_name page the title of the survey is displayed twice. Is this by design or shouldn't we remove this extra line $output = '<h2>' . $survey['title'] . '</h2>' in line 905?
Regards,

Comments

gibus’s picture

Status: Active » Closed (works as designed)

It is by design. If you have the title twice it is because your theme display it in the first place. But we cannot assume that every theme will do so. Actually we behave just like a node page in most themes which displays the title in <h2> tags.

ec’s picture

Hi,
I'm using mix and match a Fusion based theme. And I currently run with some issues when using "priorities" module.
Thanks,

ec’s picture

Status: Closed (works as designed) » Active
StatusFileSize
new12.11 KB

Gibus,
Sorry, but I just give it a try with a stock Garland and found the same issue (please, look at the screenshot attached)! Any idea about this?
Regards,

gibus’s picture

OK Eric, what you can do is define your own theme function (in template.php of your theme) : yourthemename_priorities_surveys by copying the original theme_priorities_surveys from the priorities module and delete the <h2> display in your theme function.

ec’s picture

StatusFileSize
new5.91 KB
new10.86 KB

Gibus, sorry to be that "heavy" on this issue, though I may miss one thing here. The title is displayed twice on every stock theme sent with a stock drupal. See as samples the screenshots attached for "pushbutton" and "bluemarine". Hence are you saying that this is a normal behaviour? Obviously I can comment the line in the priorities module, though this sound a bit strange and new users may not understand this behaviour. Any thought?

gibus’s picture

Do not modify the module. This is a themable function, therefore you can copy it in your theme and modify what you want in this copy.

ec’s picture

Yes I know I shouldn't modify the module. Though what I don't understand yet (but may be it's myself) is why the default behaviour of this module with standard drupal themes (garland, pushbutton etc.) is to duplicate a title??? And hence why should I (and all new users will have to do the same) have to modify a standard drupal theme to have something play nicely with it? I still can't understand your statement in #1, what are those

most themes

which do not behave like standard drupal themes?

gibus’s picture

Status: Active » Fixed

I'm really confused Eric, I've mixed two instances in priorities module source code where <h2> tag is used and so far I was talking about the wrong location (near line 1261). Therefore I've fixed and commited the good location you were talking about.

Thx very much for helping to improve this module, you deserve a new release including both minor fixes you've helped to implement: http://drupal.org/node/1198852

ec’s picture

Status: Fixed » Closed (fixed)

Well, this demonstrates that it is not always easy to collaborate when were are all behind a keyboard only ;-). Anyway, thank you for committing. And I'm happy that I was not wrong to be so insistent! By the way, I'm trying out this interesting module to see if it cando the job for my use case. I still have some minor issues to report, though I want to be sure before posting ;-) I may also have some features to suggest... Regards,