Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
3 replies Latest Post - ‏2013-09-26T18:40:45Z by JunGuo
roymcd
roymcd
5 Posts
ACCEPTED ANSWER

Pinned topic "useful_links" Widget not working

‏2013-09-18T11:23:02Z |

Hello, I am trying to get the Usefull Links Widgets working. The help gives an example of the Useful Links widget that does not work. When I paste in . . .




---
 
based_on
: useful_links
 
display_name
: Sample Useful Links
 
supports
:
 
  - home

  
# Number of links to show
 
entity_count
: 
3

  
# Number of links to display when show more is clicked
 
show_more_entity_count
: 
10

  
# Allows users to add links when true. Default is true.
 
allow_user_links
: 
true

  
# List of links to display
 
links
:
      
# The title of the link
 
  - 
title
: Link Title
      
# Ruby code for URL of link
 
    url
: "'http
://www.ibm.com'"

 

It will then default to . . .

---
based_on: useful_links
display_name: Sample Useful Links
supports:
  - home
  - searches
entity_count: 3
show_more_entity_count: 10
allow_user_links: true
links:
  - title: Link Title
    url: "'http://www.ibm.com'"

 

and save correctly. When when checking the home or searches pages i get the error that says

"An error occurred while loading. Please try again or contact the system administrator."

and the logs say

" W SRVE0190E: File not found: /admin/widgets/links.html"

 

Roy

 

 

Updated on 2013-09-19T10:36:20Z at 2013-09-19T10:36:20Z by roymcd
  • JunGuo
    JunGuo
    8 Posts
    ACCEPTED ANSWER

    Re: "useful_links" Widget not working

    ‏2013-09-18T17:17:12Z  in response to roymcd

    Hello roymcd,

    You need to create corresponding entity, collection store and collection to have it work.

    Here is the code for entity and collection

    <entity-definition default-searchable="false" identifier="@hash" name="federated-entity" store-name="federated-entity-store">
        <alias chain="" name="natural_associations" recommendable="false"/>
    </entity-definition>

    <collection-store collection-name="appbuildertestuserlink" monitor-activities="false" name="federated-entity-store"/>

    And you also need to add <serves name="federated-entity-store"/> in the velocity-instance.

    Please note the name of the entity *must be* federated-entity

    In the Engine, you need to create a collection with following setting:

    Crawling->

       Maximum idle time  -1

    Indexing->

       Fast Index  cxo.entity-title

       Indexed Fast Index true 

       Generate dictionaries ture

     

  • roymcd
    roymcd
    5 Posts
    ACCEPTED ANSWER

    Re: "useful_links" Widget not working

    ‏2013-09-19T10:38:58Z  in response to roymcd

    Thanks Jun for the update. Is there some documention out there that lists out all the extra config needed for all the Widgets. This is the first time I have seen something like this and the "help" section within the appbuilder does not talk about any of this?
     


    Roy

     

    • JunGuo
      JunGuo
      8 Posts
      ACCEPTED ANSWER

      Re: "useful_links" Widget not working

      ‏2013-09-26T18:40:45Z  in response to roymcd

      Sorry Roy, we don't have such document which explain all the extra config needed for all Widgets.