Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dmtrs/ereadmore

Yii framework simple extension to shorten an html code.
https://github.com/dmtrs/ereadmore

Last synced: about 1 hour ago
JSON representation

Yii framework simple extension to shorten an html code.

Awesome Lists containing this project

README

        

EReadMore
---------
A simple extension to shorten an html code.
- version 1.0
- author Dimitrios Mengidis

###Requirements
- [DOMDocument](http://www.php.net/manual/en/intro.dom.php)

###Description
This a common functionality found in blogs, where you see a part
of an article and there is link usually named read more where
get redirected to the full article.

###Use
####Simple case
In the view add:

beginWidget('application.extensions.EReadMore.EReadMore', array(
'linkUrl'=>$data->url
));?>


EReadMore


A simple extension to shorten an html code.


Requirements




endWidget(); ?>

####Advanced use
Check the EReadMore code options to see what you can set.

###Resources
- [Github repo](http://www.github.com/dmtrs/EReadMore)
- [Extension site](http://www.yiiframework.com/extension/ereadmore/)