Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dmtrs/ereadmore
- Owner: dmtrs
- Created: 2011-04-02T09:20:05.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-04-02T09:27:23.000Z (almost 14 years ago)
- Last Synced: 2024-11-09T07:53:58.089Z (about 2 months ago)
- Language: PHP
- Homepage: http://www.yiiframework.com/extension/ereadmore/
- Size: 89.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkd
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
));?>
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/)