Tag: drupal

RYC is back!!!

After a 5-year sabbatical, we finally relaunched reclaimyourcity.net with a brand new website! The relaunch is the result of the last couple of months of setting up and extending Drupal, refining the old content and photo database, and creating lots of exciting photo specials and articles about street art. Hopefully, the site will get its full momentum again soon!    

Posted in code Tagged with: , , , , , , ,

Drupal: Tweaking block visibility for content types and URLs

For the relaunch of reclaimyourcity.net, I recently developed a custom pager module that provides a block with links to the previous and next picture according to the particular gallery. The visibility settings for the block are restricted to the content type of the street art pictures. However, the pager also tries to show up on the node add/edit pages which is not very useful there. Based on the posts in this thread about block visibility at drupal.org, adding the following PHP validation prevents the block from showing on the node create/edit pages. <?php $show = TRUE; $url = request_uri(); $hide_on_pages

Posted in code Tagged with: , , , , , ,