Skip to content

Instantly share code, notes, and snippets.

View rodrigoAbril's full-sized avatar
💻
I may be slow to respond.

José Rodrigo Abril Lara rodrigoAbril

💻
I may be slow to respond.
View GitHub Profile
@elindoorn
elindoorn / reserved-web-content-variables.txt
Last active October 13, 2023 14:26
Reserved web content variables
reserved-article-asset-tag-names
reserved-article-author-comments
reserved-article-author-email-address
reserved-article-author-id
reserved-article-author-job-title
reserved-article-author-location
reserved-article-author-name
reserved-article-author-organization
reserved-article-create-date
reserved-article-description
@farmerbradllc
farmerbradllc / blog.md
Last active March 12, 2019 15:14
Using Resources Importer to build Demo Site

##Using Resources Importer to build Demo Site

Resources Importer is a tool that Liferay build to contain the raw content files and to be able to consistanly create site content along with a theme. If you have downloaded a 6.2 version of liferay and selected to include sample data, then you've seen the results of the resources importer. The Welcome Theme is included with the bundle: https://github.com/liferay/liferay-plugins/tree/6.2.x/themes/welcome-theme

The Resources Importer is a web plugin for liferay that will take content structured a particular way and create ether a site template or site based on that content.

Useful for Development

Let's say you are working on a Proof of Concept project for a client and there are several team memebers working to build out the site and make sure the Theme and UI work and look great. When developming locally

@belsrc
belsrc / gist:672b75d1f89a9a5c192c
Last active April 15, 2023 15:13
Simple Vue.js filters that I usually need
/**
* Changes value to past tense.
* Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc.
* http://jsfiddle.net/bryan_k/0xczme2r/
*
* @param {String} value The value string.
*/
Vue.filter('past-tense', function(value) {
// Slightly follows http://www.oxforddictionaries.com/us/words/verb-tenses-adding-ed-and-ing
var vowels = ['a', 'e', 'i', 'o', 'u'];