Download & Extend

Wilderness + Views - 'more' link not displayed in Blocks

Project:Wilderness
Version:6.x-1.0-beta1
Component:User interface
Category:support request
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

Everyone in our nonprofit group admires and likes using your Theme. I do need help with a few glitches. I previously reported the problem with the WYSIWYG Text Editor and uploading images. Now, I've found a complication in Views when using the "More" link.

I created the Block using Views; added the More link; set it to go to a Page View. The "More" link is not being displayed.

I did clear the Cache using Views >Tools >Clear Cache and Performance >Clear Cached Data.

---Ashford

Site: http://heartwoodtmn.org

Block Title: This Month
More link: Yes
Distinct: No
Access: Unrestricted
Caching: None
Link display: Scheduled Activities

Comments

#1

Priority:normal» critical

I tried it on every Block. It finally worked when I reduced the maximum number of nodes to display to a low number.

#2

Hi,

Try this, in the template.php file change the theme_button function as follows.

From:

  // Skip admin pages due to some issues with ajax looking for <input> not <button>.
  if (arg(0) == 'admin') {
    return '<input type="submit" '. (empty($element['#name']) ? '' : 'name="'. $element['#name'] .'" ') .'id="'. $element['#id'] .'" value="'. check_plain($element['#value']) .'" '. drupal_attributes($element['#attributes']) ." />\n";
  }

  return '<button type="submit" ' . (empty($element['#name']) ? '' : 'name="' . $element['#name']
         . '" ')  . 'id="' . $element['#id'] . '" value="' . check_plain($element['#value']) . '" ' . drupal_attributes($element['#attributes']) . '>'
         . '<span class="btn">'
         . '<span class="l"></span>'
         . '<span class="r"></span>'
         . '<span class="t">' . check_plain($element['#value']) . '</span>'
         . '</span></button>';

Change to:

    return '<input type="submit" '. (empty($element['#name']) ? '' : 'name="'. $element['#name'] .'" ') .'id="'. $element['#id'] .'" value="'. check_plain($element['#value']) .'" '. drupal_attributes($element['#attributes']) ." />\n";

This should remove the theming for all buttons on the website. Which is the cause of the problem.

#3

Thanks, Justin, for sharing your expertise. I'll be glad when I catch up to you guys. I can see the logic of the PHP code after it's written; but I cannot write it myself.

You saved me from having to switch to another Theme. All our volunteers in our group and the web site visitors really like Wilderness.

#4

Status:active» closed (fixed)

Happy to help. And thanks for using our theme.

Happy Drupal'ing!

#5

Status:closed (fixed)» active

I'm having the same problem with the module IMCE (File Browser).

No buttons appear: Uploads, Delete, Thumbnails, Resize... (My account -> File Browser).

Any ideas?

Thanks

Rafael

AttachmentSize
printscreen.jpg 27.31 KB

#6

Better solution at least for me:

In template.php (Wilderness Theme) at approx line 59 change:

if (arg(0) == 'admin')

to

if (arg(0) == 'admin' || arg(0) == 'imce')

nobody click here