Facebook group

Our facebook group facebook.com/groups/redaxscript is the right place for questions, remarks and suggestions.

Keep in mind to use the Github issue tracker to submit bugs.

Nigel Moore

Nigel Moore

Hello Henry, I'd like to introduce article/extra version control into Redaxscript such that an archive is created of every change to a page. The collected data could be used to roll-back to a previous version, or to see what was on a page at some time in the past for legal compliance purposes. So ideally on a 'save', the previous version of the page should be written to the archive before being replaced by the edited version. Can you suggest a suitable hook that I could use in a module to achieve this? ...or any thoughts on the best way to implement something like this? Many thanks, Nigel.
Henry Ruhs and Malcolm White like this.
Comments
Henry Ruhs

Henry Ruhs

This is a great idea and would be a great feature too... Hooks are utilized to output something on a special position of Redaxscript or even prevent rendering. They never touch the data handling and processing at all. However, to implement some kind of "content revision system" we need to write a core class that does the job and make this work with the deprecated admin codebase. You are free to submit an issue on Github, but there still has to be someone who has time to code it. I focus on refactoring the non-admin parts of Redaxscript first.
Nigel Moore

Nigel Moore

Thanks Henry. The other way I could do this quickly without touching core php includes is with javascript and ajax. However, I can't seem to find any ajax handling within Redaxscript - unless you can point me towards it? If no ajax yet, are there any plans/timescales to implement? Otherwise, I can just call my own ajax handler directly and modify htaccess to allow it.
Henry Ruhs

Henry Ruhs

There is no AJAX handling and plans unless we have a clean codebase and API - you cannot hack new features into Redaxscript's old admin without making it even worse. Better help me to finish upcoming milestones, so I can do awesome features like this in the middle of next year. We are on feature freeze for the admin for this time, it does not make sense to touch it.
Henry Ruhs

Henry Ruhs

Redaxscript now with 70 stars on Github... halleluja!!! https://github.com/redaxmedia/redaxscript
Comments
Balázs Szilágyi

Balázs Szilágyi

Hello! I found redaxscript about a week ago, and i love it. Currently i am trying to make openid login work (yes i wrote an email few days ago). I have the button, i set up everything, but i have a little problem: when i click the login button i placed (form action="/?login") it loads site.com/?login%2522 page. It should redirect the user to the given service openID login page, but it doesn't. How could i handle the get request? (I include my php code in index.php and place it every page by placing it via template. (I put the php code /includes))
Comments
Henry Ruhs

Henry Ruhs

Woah :D Great that you not afraid to make your hands dirty! That's fantastic. You should not touch the core of Redaxscript or put complex things like that into templates, because this might cause massive update issues. We provide modules with a so called hook system. Take a look into these tutorials: http://garya.org.uk/redaxscript/modules-tutorial-part-1 http://garya.org.uk/redaxscript/modules-tutorial-part-2 http://garya.org.uk/redaxscript/modules-tutorial-part-3 http://garya.org.uk/redaxscript/modules-tutorial-part-4 1. Write a module with a formular 2. Use the center break hook to redirect incoming POST 3. Learn from other modules how it works 4. Feel free to ask me here
Balázs Szilágyi

Balázs Szilágyi

For some reason i found it easier to place 2 php files in /include and write a few extra lines to the core, than creating a module^^. Tomorrow i'll try again. (i had to google what do you mean by formular :D) yeah a placed a form using $output = form_element(.... etc. And yes! I used hook(__FUNCTION__ . '_start'); (and end) For a few days i just read other modules code, it was quite clear how should i make this work. But i will definitely write it into a module, it will be easier at future updates, you are right. // I selected this cms because it is clear at the first sight (almost) how it's works, really lightweight, not using any framework (zend, laravel,...) so it's easier for me to understand how this cms is working. BTW i won't use it as a blog engine, i will use it for something completely different...^^
Balázs Szilágyi

Balázs Szilágyi

Oh I almost forget: thanks for the reply :)
Henry Ruhs

Henry Ruhs

Are you planing something like a portal or community driven thing?
Henry Ruhs

Henry Ruhs

Here comes an update about Redaxscript's refactoring process. I think release 2.2.0 now is finished and we made huge steps towards OOP, but see the new API for yourself: http://api.redaxscript.com/ Half of the modules in OOP: https://github.com/redaxmedia/redaxscript/tree/master/modules What about 100% code coverage: https://coveralls.io/r/redaxmedia/redaxscript
Nigel Moore

Nigel Moore

Does anyone know of an easy way to reference URL parameters in a redaxscript module without having to extract them from $_SERVER['REQUEST_URI']? Thanks.
Comments
Nigel Moore

Nigel Moore

Thanks Henry, much appreciated, but FULL_ROUTE doesn't seem to include the parameters i.e. ?param=dada&param2=dada2 Anyway, I've used $_SERVER['REQUEST_URI'] after all and working fine! So no worries, but it might be useful to others in a future version of Redaxscript to make URL parameters available as constants? ...perhaps URL_PARAM_{NAME}
Henry Ruhs

Henry Ruhs

In 2.2.0 we have a Request class for things like that... and constants are not longer used, there is a Register class.
Nigel Moore

Nigel Moore

Sounds good... thanks Henry.
Nigel Moore

Nigel Moore

At the top of the lists of articles, extras, categories and comments, is a button called "SORT". I'd expect it to sort the lists into alphabetical order but it doesn't appear to do anything. Can anyone let me know what it's designed to do? Thanks!
Comments
Henry Ruhs

Henry Ruhs

It does another kind of sorting. Imagine 100 articles in 10 categories. Now you created another article that belongs to the first or second category. This sort features will optimize / reorder the ranking so that you get the article sorted inside the top category tree.
Nigel Moore

Nigel Moore

Thanks Henry, is it supposed to work for "uncategorised" articles too? ...I noticed that on http://demo.redaxscript.com/admin/view/articles there are multiple "uncategorised" blocks even after sorting. That list is also an indication of what a complete mess the article lists for a large site can end up in without any alphabetical presentation... Are there any plans to give admins a quick way of tidying up the mess? Also, moving a single article up say 10 places using the arrows, takes an almighty 1 minute to achieve - click arrow, find article in list, click arrow, etc. The interface is verging on unusable! Using phpMyAdmin can be quicker and defeats the object of having a CMS! Sorry to moan, but this is an area I find very difficult from an admin's perspective. Instead of the laboriously slow arrows, it might be much quicker to have the rank displayed as a number, and to change from 30 to 20, just enter 20 in the rank field and it automatically increments any ranks => 20 by 1. Is that a valid feature request? Anyone else having trouble with large article/extras lists, and found a good way to get them in some sort of order?
Henry Ruhs

Henry Ruhs

You are not the first person who is requesting this, so thats a valid request. Once again a question of man-power. The current development is quite slow because our core developers somehow are on holidays or something :-)
Nigel Moore

Nigel Moore

Thanks Henry, good to know I'm not the only one!
Henry Ruhs

Henry Ruhs

I gonna improve this once we refactor the admin - but thats low on prio atm.
Henry Ruhs

Henry Ruhs

What’s new in PHPStorm 8? Did you know? Redaxscript is part of their Open Source program, developers and contributors can request a free license for PHPStorm.
Nerbiz Dijkstra

Nerbiz Dijkstra

Hi Henry, A while ago we discussed how I could contribute to Redaxscript, and some other good talks :) however, I've been extremely busy lately and it looks like it's going to stay that way. So just to clear things up, that you know why.
Comments
Henry Ruhs

Henry Ruhs

No problem Nerbiz, maby you can contribute in another way if you like this project. Share it with other people: tweet on Twitter, star Redaxscript on Github, invite people to the Facebook group... there are many ways to give something back
Azeez Abass

Azeez Abass

I am working on a module to include a full width slider. Im not sure how to create a setting page for it. Any help? Thanks in advance
Comments
Azeez Abass

Azeez Abass

i think there should be a better tutorial for making modules, i dont understand what the startup.js does --------------edit---------- never mind i found it
Henry Ruhs

Henry Ruhs

you are right, documentation is not the best... would you like to contribute one? :-)
Azeez Abass

Azeez Abass

i am working on a slider module, would u like to look at it and help me, its guaranteed to have bug or 2. I send it as soon as im done
Henry Ruhs

Henry Ruhs

No problem. Simply post some Github repository or gist...
Henry Ruhs

Henry Ruhs

Codename - Redaxpress You may call me crazy but the goal of milestone 2.3.0 is to load a Wordpress theme into Redaxscript with the help of a module. The upcoming release 2.2.0 is finished (still needs testing), lets take a look what we plan for 2.3.0. Basicly it is about refactoring the codebase for templating (navigation, content, comment, search etc.) and writing our own template syntax. Roadmap for 2.3.0: https://github.com/redaxmedia/redaxscript/milestones/2.3.0
Comments
Henry Ruhs

Henry Ruhs

If you ever thought about a donation - now is the time :-)
Nerbiz Dijkstra

Nerbiz Dijkstra

I think you're crazy :P but seriously, this seems like a nice thing! And very much possible
Jörg Steinhauer

Jörg Steinhauer

like this idea!
Nigel Moore

Nigel Moore

I rarely find a client who's willing to have a generic template, so generally end up creating from scratch or modify an existing one, and Redaxscript is a great platform on which to do this :-) However, I suspect the popularity of Wordpress is based on the massive amount of templates and modules which can create boring and same-looking websites very quickly. For those users, this feature could be very useful and dramatically increase the uptake of Redaxscript sites. However, as Redaxscript is "aimed at geeks", would the community be able to handle the increased support enquiries from novice developers who might have got on fine with Wordpress? It could create an unwanted support burden? Just a thought!
Powered by Redaxscript 2.1.0  •  Design and realization by Jörg Steinhauer & Henry Ruhs