Git Product home page Git Product logo

site-blog-dashlet's Introduction

Site Blog Dashlet for Alfresco Share

This add-on provides a dashlet to display the last ten blog posts and submit new posts from the site dashboard.

Site Blog Dashlet

The Create Post action provided by the dashlet allows quick and easy creation of new blog posts without leaving the dashboard.

Create Post Dialogue

Installation

The dashlet is packaged as a JAR file OR an AMP file for easy installation into Alfresco Share.

To install the JAR, simply drop the site-blog-dashlet-<version>.jar file into the tomcat/shared/lib folder within your Alfresco installation, and restart the application server. You might need to create this folder if it does not already exist.

To install using the AMP, use the apply_amps script that should be provided with Alfresco.

Building from Source

This project uses Maven. To build, run mvn package which will produce an AMP in the target directory.

If you prefer to deploy to deploy the JAR file rather than an AMP, you can find this in the target/amp/lib directory.

Running

You can use Maven to run up an instance of Share with the add-on applied using the amp-to-war profile

mvn clean install -Pamp-to-war

Share will run on port 8081 so just point your browser to http://localhost:8081/share, log in and then follow the Usage instructions below.

You must already have an Alfresco repository running locally for Share to connect to, otherwise you will not be able to log in.

Usage

  1. Log in to Alfresco Share and navigate to a site dashboard.
  2. Click the Customize Dashboard button to edit the contents of the dashboard and drag the dashlet into one of the columns from the list of dashlets.

site-blog-dashlet's People

Contributors

jpotts avatar wabson avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

site-blog-dashlet's Issues

Images from blog posts are fetched even though they're not displayed

If you create a blog post with an image in it, then the dashlet will cause that image to be loaded when it renders even though it isn't shown. If your blog posts tend to have a few large images in them, then this really slows down the loading of the dashboard

Step 1: Create a blog post in the site with the following contents:

<p><img src="https://www.alfresco.com/sites/www.alfresco.com/files/product-section-quotation-desktop-background-2.jpg" alt="Alfresco Image" width="1440" height="335" /></p>
<p>This is a short blog post, which starts with an image</p>
<p>Blah blah blah, more text here</p>

Step 2: Enable the Site Blogs dashlet on your dashboard
Step 3: Enable the network tab of Firebug / Developer tools / etc
Step 4: Refresh the dashboard
Step 5: See that no images are shown in the dashlet, just the text (good, expected)
Step 6: Review network tab, and see that https://www.alfresco.com/sites/www.alfresco.com/files/product-section-quotation-desktop-background-2.jpg was fetched even though it isn't displayed (bad, unexpected, potentially slow)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.