Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I use views and pathauto to create specific view for my nodes with content type Products. This view has path like this "node/%" and I use contextual filter. All works fine, but when I want to display node from another content type it is impossible, because it is using my view for products and there are no same fields as in Products and I can see only blank content on my page.
MapBox layer provides some baselayers, but you can add additional Mapbox layers (or Tilesets) into Openlayers yourself. Thanks to DjebbZ for the original tutorial for D6.
Choose the tileset you want to use. In this example we will assume that you want to use the World Blue tileset, but the following applies for every tileset. Note the layer name: it is the last part of the url. For the World Blue tileset, it is world-blue.
In the right part of the page, note the information you'll need in OpenLayers : the Zoom info, specified as a range. For the World Blue tileset the zoom levels are 0-8. Some tilesets may hold a file extension but if none is specified, use png).
Create a Layer
Now go back to your Drupal installation.
Go to admin/structure/openlayers/layers/add for Drupal 7 to add a new layer.
In the list select MapBox.
Then fill the form with the requested information:
I'm kind of new on drupal so I could use a little help, I'm developing a website about books, I would like my users to be able to have a profile where they can have lists of books,(read, to read, etc.) I was trying to develop this with the views module but I was wondering i there were some other modules or ways I could do this. I would like my users to have personal pages with the books they have selected.
I need to create a block that displays information for a specific user.
For example: for a specific blogger I need to add his bio at the bottom of his blog post.
One approach is to create a block with PHP code that evaluate true.
What would that code look like?
The other approach I guess is to create a blog template file for block post but I think I still need to test for a user.