Reply New Topic
2012/4/18 23:17:52
#1
Offline
Home away from home

Pimp up your pagination

Yesterday I wrote a new posting in the Wiki (German Community) about the ImpressCMS Pagination and added a new style with CSS3. It will working with all browsers.

Check out the the code from here:
http://www.impresscms.de/modules/wiki/index.php?page=Seiten-Nummerierung

And have a look into the online demo:
http://demo.impresscms.de/modules/cms/start.php?1&start=2

It's fine or not?


2012/4/19 1:34:12
#2
Offline
Webmaster

Re: Pimp up your pagination

I like the fact that you describe the 'paginationstyle' option at the end. I think it would be interesting to eliminate the need to manually add the reference to the paginationstyle.php file. I'll add that as a todo.

_________________

Me on Ohloh


2012/4/19 4:44:33
#3
Offline
Home away from home

Re: Pimp up your pagination

I like to see this as the new standard pagination for impressCMS.

_________________
Webdesign: http://netzstrand.de

2012/4/19 16:01:12
#4
Offline
Home away from home

Re: Pimp up your pagination

Agree with David. Some of my themes have special pagination styles and get out working require modify core files.


2012/4/26 21:00:46
#5
Offline
Home away from home

Re: Pimp up your pagination

Easy enough to query the files in the paginationstyles/css/ folder - in fact, it will be in 2.0 very shortly.

update libraries/paginationstyles/paginationstyles.php and replace all the existing code with this

$style_list = icms_core_Filesystem::getFileList(ICMS_LIBRARIES_PATH . "/paginationstyles/css/", "", array("css"), TRUE); foreach ($style_list as $filename) { $filename = str_ireplace(".css", "", $filename); $styles[] = array( 'name' => ucfirst($filename), 'fcss' => $filename, ); }


Now, you just have to place a new css file in the folder and you'll get the new option. The name in the option list will be the name of the file without the extension.

_________________

Steve Twitter: @skenow Facebook: Steve Kenow


2012/4/26 23:26:16
#6
Offline
Webmaster

Re: Pimp up your pagination

another Barrier broken down in 2.0! Way to go!

_________________

Me on Ohloh


Reply New Topic extras
 Previous Topic   Next Topic
You can view topic.
You can start a new topic.
You can reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You can post without approval.