Answers.Body: <p>If you're on Drupal, you can use the <a href="https://civicrm.org/blog/brandonferrell/drupal-views-in-civicrm-dashlets" rel="nofollow noreferrer">civicrm_views_dashlets</a> module for a no-coding solution.  Not only can use create a view that shows a single page (which is editable like any other page), but you can use Views to show more complex content.  </p>
  
  <p>For instance, when I worked on a CiviCRM-based SaaS a few years back, we created our own "news" dashlet by publishing an RSS feed from a central site, which was picked up by the Drupal Feeds module to populate the View.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-09T19:04:46.783Z
Answers.Text: Awesome, thanks. I had seen this module but was a little unsure since it was last updated a few years ago and not 'covered by drupal's security policy'.
Answers.UserDisplayName: RayWright
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-09T17:23:09.503Z
Answers.LastActivityDate: 2019-03-09T17:23:09.503Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>I created an extension for a custom dashlet with static text.</p>
  <p>It's called <strong>Dashlet Note</strong>, and can be downloaded here: <a href="https://github.com/AlainBenbassat/eu.businessandcode.dashletnote" rel="nofollow noreferrer">https://github.com/AlainBenbassat/eu.businessandcode.dashletnote</a></p>
  <p>You can use it to display announcements to users, shortcuts to certain pages, usefull phone numbers...</p>
  <p>There's an editor to create/edit the note.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-08T09:10:23.357Z
Answers.LastActivityDate: 2021-06-08T09:10:23.357Z
Answers.UserDisplayName: AlainB
Answers.Body: <p>When that other question mentions news dashlet I think it means the one called Blog, but yours sounds more similar to the Getting Started one - CRM/Dashlet/Page/GettingStarted.php.</p>
  
  <p>Civix doesn't have a specific feature for dashlets, but you start with civix generate:page and copy/paste from the GettingStarted dashlet, although all you really need to do is optionally assign some smarty variables in run() in the autogenerated php class and edit the autogenerated .tpl with your html.</p>
  
  <p>In the xml menu file that gets autogenerated it will have the url path you made up during the generate:page command. You need to insert an entry in civicrm_dashboard that links that url up to make it dashboard-worthy. See the function addGettingStartedDashlet() in CRM/Upgrade/Incremental/php/FourSeven.php, just note the columns have changed slightly if you're on a later version.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-08T16:02:54.260Z
Answers.LastActivityDate: 2019-03-09T05:30:22.343Z
Answers.LastEditDate: 2019-03-09T05:30:22.343Z
Answers.UserDisplayName: Demerit
Body: <p>Expanding on this question here: <a href="https://civicrm.stackexchange.com/questions/21823/dashlet-creation/21855#21855">dashlet creation</a></p>
  
  <p>If I wanted to create my own dashlet with somewhat static content I'm wondering how that is accomplished, I have a loose idea below but not sure if it is correct.</p>
  
  <p>How do I register the dashlet itself, since I won't be starting from a report - can I add a row to the database itself?</p>
  
  <p>That row in the database would then point to a URL similar to the others (i.e. civicrm/dashlet/blog?reset=1). If I point to my own /dashlet/goodinfo... do I need to create <em>both</em> a supporting tpl and php file (kept neatly in a custom/override folder) or will a tpl file suffice?</p>
  
  <p>I may be headed down an entirely incorrect path - open to suggestions!</p>
  
Tags: <dashboard><dashlet>
Title: How to create a non report based dashlet
ThreadText: # How to create a non report based dashlet
  
  (Asked by: username_0 on 2019-03-08)
  
  Expanding on this question here: [dashlet creation](https://civicrm.stackexchange.com/questions/21823/dashlet-creation/21855#21855)
  
  If I wanted to create my own dashlet with somewhat static content I'm wondering how that is accomplished, I have a loose idea below but not sure if it is correct.
  
  How do I register the dashlet itself, since I won't be starting from a report - can I add a row to the database itself?
  
  That row in the database would then point to a URL similar to the others (i.e. civicrm/dashlet/blog?reset=1). If I point to my own /dashlet/goodinfo... do I need to create *both* a supporting tpl and php file (kept neatly in a custom/override folder) or will a tpl file suffice?
  
  I may be headed down an entirely incorrect path - open to suggestions!
  
  **Tags:** dashboard, dashlet
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2019-03-09. Score: 2
  
  If you're on Drupal, you can use the [civicrm\_views\_dashlets](https://civicrm.org/blog/brandonferrell/drupal-views-in-civicrm-dashlets) module for a no-coding solution. Not only can use create a view that shows a single page (which is editable like any other page), but you can use Views to show more complex content.
  
  For instance, when I worked on a CiviCRM-based SaaS a few years back, we created our own "news" dashlet by publishing an RSS feed from a central site, which was picked up by the Drupal Feeds module to populate the View.
  
  > **Comments:**
  > **username_0**: Awesome, thanks. I had seen this module but was a little unsure since it was last updated a few years ago and not 'covered by drupal's security policy'.  
  
  ---
  
  ### Answer by username_2 on 2021-06-08. Score: 1
  
  I created an extension for a custom dashlet with static text.
  
  It's called **Dashlet Note**, and can be downloaded here: <https://github.com/AlainBenbassat/eu.businessandcode.dashletnote>
  
  You can use it to display announcements to users, shortcuts to certain pages, usefull phone numbers...
  
  There's an editor to create/edit the note.
  
  
  ---
  
  ### Answer by username_3 on 2019-03-08. Score: 1
  
  When that other question mentions news dashlet I think it means the one called Blog, but yours sounds more similar to the Getting Started one - CRM/Dashlet/Page/GettingStarted.php.
  
  Civix doesn't have a specific feature for dashlets, but you start with civix generate:page and copy/paste from the GettingStarted dashlet, although all you really need to do is optionally assign some smarty variables in run() in the autogenerated php class and edit the autogenerated .tpl with your html.
  
  In the xml menu file that gets autogenerated it will have the url path you made up during the generate:page command. You need to insert an entry in civicrm\_dashboard that links that url up to make it dashboard-worthy. See the function addGettingStartedDashlet() in CRM/Upgrade/Incremental/php/FourSeven.php, just note the columns have changed slightly if you're on a later version.
  
  
  ---
  
  