Drupal 7 custom content field views rewrite

<html> <head> <meta name="description" content="CDN Bootstrap"> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" > <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="section main-section"> <div class="container"> <div class="row"> <div class="content"> <div class="col-md-12"> <div class="copy"> This is how I used a field from a content type, within a view to do a link rewrite for Drupal 7. I got the field machine name "field_news_link" and used that in both the Rewrite results Text area, and Link path. This lets me use, what in this case is a remote url, and output it as a link with the text "Read More...". By deault Drupal with display this field as text. </div> </div> </div> <div class="content"> <div class="col-md-12"> <img class="img-responsive" src="http://www.wpwebos.com/drupal_views.png"> </div> </div> </div> </div> </div> </body> </html>
img{ display:block; position:relative; margin: 0 auto; max-width:700px; } .copy{ padding: 20px 0 20px 0; font-size:18px; max-width:900px; display:block; position: relative !important; margin:0 auto !important; }
Expand for more options Login