Friday, March 2, 2012

Drupal7.x: Views - Create Icon link views

It quite complicated to understand view features in Drupal 7.x.
I have been trying to create views for icon with menu links two times but failed.
Today, I tried again and finally successful to create one. Hooreyyy!

How to create views?
  1. Structure  >  Views
  2. Add New View  >  Title: Links > Add Blocks  >  Save
  3. Format: HTML list
  4. Show: Fields
  5. In FIELDS settings:
    add:
    Content: URL  >  Exclude From Display
    Content: صورة >  SHOWREWRITE RESULTS >  Output this field as a link  > Link path : [field_url]
    *Check the available token format from  SHOWREPLACEMENT PATTERNS [field_url] == Content: URL
    - [field_image] == Content: صورة

    Content: Title > 
    SHOW
    REWRITE RESULTS >  Output this field as a link  > Link path : [field_url]
    *Check the available token format from  SHOWREPLACEMENT PATTERNS [field_url] == Content: URL
  6. Apply (All displays) after each settings
  7. Save the views

How to display view in block?
  1. Structure  >  Blocks
  2. Find  View: Links  >  Set Block Region: Sidebar first
  3. Save.
  4. Configure  View: Links 
  5. Set Block Title:  Student Portal Services
  6. Pages > All pages except those listed
    front
    main
    welcome
  7. Languages: Translatable, Not restricted
  8. Save block
  9. Translate  >  Choose Arabic  >  translate
  10. Set Arabic Title:  الخدمات لبوابة الطالب
  11. Save translation
  12. Save block
  13. See the changes in other page than page.
    The block for Student Portal Services will appear, accordingly to your current chosen language.

0 comments:

Post a Comment