Summary: I want a custom byline on my posts. Solution: Modify template.php I did this for Poligo by modifying the node.tpl.php file. However, I thought I would poke around for another way to do it on The English Farm. I found this way of doing it with template.php. I tried adding this to template.php: <?php […]
Archive | Projects
Adding tokens to Views block title in Drupal 7
Uncategorized
Summary: I wanted to use a token in the title on blocks generated by Views. Solution: Adding a hidden field to the view to access the token, hiding the block title and then adding the title via a global text field. I wanted to add a token (username of the userpage being viewed to be […]
Showing blocks on a user’s page only
Development diary Development diary Drupal Drupal Drupal TEF TEF TEF WebSummary: Cannot show block on userpage just by setting visibility to ‘user’. Solution: PHP snippet on block visibility. I had the problem outlined here on Stack Exchange. In particular, setting the block to display on /user only did not work. I found the solution here, which shows the block on the user’s page, but not […]