Facebook group

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

Not on Facebook? Join our IRC channel #redaxscript on irc.freenode.net for instant support.

Nigel Moore

Nigel Moore

I'd expect module styles to be rendered after a css reset, and probably after all template styles, but on the demo site, demo.redaxscript.com, I see the editor module styles are rendered before reset.css. Is this a bug?
Comments
Henry Ruhs

Henry Ruhs

Nope, this is not a bug. It's a feature that makes it possible to style modules over your template.
Nigel Moore

Nigel Moore

I'm trying to use navigation_list() to list the articles in a specific category by the alias of the category, but can't figure it out from the documentation. This works: navigation_list('articles',array('parent' => 3)); ...where '3' is the category id from the database. But: navigation_list('articles',array('parent' => 'category-alias')); fails to list anything. Any help appreciated. Thanks.
Comments
Gary Aylward

Gary Aylward

The parent has to be an ID. The documentation sucks! But we are re-factoring the navigation NOW and the new documentation is much better. :) Might even manage to add the ability to filter by category alias as an alternative to category ID...
Henry Ruhs

Henry Ruhs

We plan to improve our websites documentation for Release 2.3.0 - since it will introduce the new $template->tagStuff() and we update most of the template related functions it does not make sence to update it before that release. https://github.com/redaxmedia/redaxscript/issues/177 https://github.com/redaxmedia/redaxscript/issues/178 It would be helpful to get some ideas, great to get some concept, awesome if someone has the time to write it! :-) If you are asking why the documentation is so bad? Well, developers are lazy about documentation and sometimes you are missing the point of view that users have.
Nigel Moore

Nigel Moore

On the redaxscript demo system, having an issue with duplicate content... These URLs for the same article: .../zz-category/zz-article-1 and .../zz-article-1 have two different canonical links in the head. Shouldn't the canonical links be the same to avoid duplicate content issues?
Comments
Henry Ruhs

Henry Ruhs

You found a bug, because ".../zz-article-1" should throw an error...
Nigel Moore

Nigel Moore

I'm trying to put the entire Redaxscript source in a server subdirectory and use htaccess rewrites to set the subdirectory as root so its not seen in URLs. This is common practice. However, as Redaxscript get_root() sets ROOT based on the server directory path, then uses the same ROOT to set HTML BASE, I cannot see how I can possibly get this to work. I would have expected Redaxscript to use one path for server internal functions and another at the HTML level. By default these would be the same, but would provide flexibility if needed. Any thoughts on this? Thanks.
Comments
Henry Ruhs

Henry Ruhs

Thats the common practice for security reason, I totally agree. I guess you have an special hoster or even server? Most webspaces do not offer a public and application folder, so Redaxscript (like many other CMS) does not support this. Maby you can hack arround with .htaccess but I have no idea how...
Nigel Moore

Nigel Moore

Nothing special about my web host or server - its cpanel, probably the most common hosting environment around!
Henry Ruhs

Henry Ruhs

So you have an dedicated server? Shared hosting is the common hosting world wide and for that reason most CMS work the way they do...
Nigel Moore

Nigel Moore

Nope, cpanel on shared apache server - nothing special. Just wanted to keep all the redaxscripts files & folders in a /rs-2-1-0 sub-folder. Not a problem though - they'll just have to go in root. Just makes upgrades more painful with no quick roll-back.
Henry Ruhs

Henry Ruhs

A couple of heros pushed Redaxscript beyond the 50 stars on Github, thats kind of awesome - maby we can reach over 70 to the end of the year? http://github.redaxscript.com
Nigel Moore

Nigel Moore

Redaxscript annoying behaviour #1: I'm proofing an article, see a mistake, click edit, change it, save it, and Redaxscript takes me right back to the list of all articles, so to continue proof reading I have to scroll down through all articles, then click into the article again. Why can't it just stay on the article page after an edit save (or a cancel) so one immediately sees the article just changed? Is this possible? Anyone else find this behaviour annoying?
Comments
Jörg Steinhauer

Jörg Steinhauer

I also find it annoying
Henry Ruhs

Henry Ruhs

yeah it sucks as hell
Henry Ruhs

Henry Ruhs

We need a checkbox after the button like to stay after saving - or even better save using AJAX... but the admin is the very last part in the refactoring process - sorry the only way to speed things up is to contribute code :-)
Nigel Moore

Nigel Moore

I'd argue that the default behaviour should be to stay on the article after save/cancel. I see no reason to go to the article list. After an edit, who would not want to see the result of their edit? I'd really like this one fixed asap, in 2.2.0, as it's not something I can hack myself, so how much of a $donation would it require?
Henry Ruhs

Henry Ruhs

Something like that? It's just a Firebug concept
Henry Ruhs

Henry Ruhs

I tested Peek on redaxscript.com - a random internet user did some user testing on the website, what a great thing.
Nigel Moore

Nigel Moore

Does anyone have an explanation or tutorial about how to use Redaxscript hooks? Thanks.
Comments
Nigel Moore

Nigel Moore

Thanks Henry, I've studied Gary's tutorials and they're excellent, so I can create modules now and that's all fine. However, I have a project that requires the article to be manipulated prior to display, and in a more complex way than can be achieved by data insertion using <function>...</function>. So my module needs access to the article output prior to display. In MediaWiki I'd use a hook such as "ParserAfterTidy" which provides direct access to the $text variable containing the article's HTML. So anything changed in $text will be displayed. Is something possible in Redaxscript? It looks like the equivalent to MediaWiki's $text in Redaxscript is $output in "contents.php" but I can't see how to hook into it to manipulate it from within a module.
Henry Ruhs

Henry Ruhs

you cannot manipulate the output rendering with the old codebase, but maby we provide $content->getContent() in 2.3.0
Nigel Moore

Nigel Moore

Thanks Henry, $content->getContent() would be very useful, ideally referencing the parsed article ready for rendering. In the meantime I think I can hack what I need to do by adding a function call to contents.php line 121 after hook('article_end'). But could you just explain the purpose of the statement ".hook('article_end')" on line 120? ...as this is where I'd expect the call to an article_end function to include some data, perhaps $output. But I'm used to using MediaWiki where hooks include the data to be manipulated, and the term 'hook' may mean something completely different in Redaxscript? ...hope I'm making sense!
Henry Ruhs

Henry Ruhs

hooks in redaxscript include function calls and not data :-)
Henry Ruhs

Henry Ruhs

It looks promising to finish Redaxscript 2.2.0 during the next 2 months, depends on our co-developers / team contribution. Anyway looking forward to the very next release and planing related issues, it turned out that this template tags are my suggestion for Redaxscript 2.3.0, of course we provide the old once until 3.0.0... http://pastebin.com/T2aww7mH $template could also be called $view
Nigel Moore

Nigel Moore

I've noticed that if I assign multiple articles to a category, then create an 'extra' which I also assign to that category, the 'extra' only displays for the category page and not for each article in that category. So how do I display an 'extra' for all articles in a specific category? (trialling 2.1.0)
Comments
Henry Ruhs

Henry Ruhs

it does not work with the default extras() but there is a workarround using a partial inside your template: http://pastebin.com/aF6WmUDA
Nigel Moore

Nigel Moore

Thanks Henry, much appreciated. I had to set the publish state to 'unpublished' to get this to work, but I guess that makes sense as its now specifically called via the template rather than through the extras mechanism. I'm happy with that, and learnt a lot about RS in the process! ...however, I still think it would be logical, via the admin console, to be able to show an extra for all articles in a specific category. Or even include categories in the extras->customize->articles dropdown so multiple pages can share the same extra. For example, all news articles could have an extra to join a mailing list or link to an archive, all easily configured in admin rather than php. Anyone else have a view on this?
Henry Ruhs

Henry Ruhs

The big question is... what is the behaviour most people like to have. It's not a big task to change the codebase to meet your needs.
Nigel Moore

Nigel Moore

I'd certainly find that behaviour useful. Can I suggest adding a new extras->customize option called "Articles in category" with a dropdown with all the categories? ...but only if others would find this useful too - any takers out there?
Henry Ruhs

Henry Ruhs

we are on feature freeze because of codebase refactoring, we can only change the behaviour atm.
Powered by Redaxscript 2.1.0  •  Design and realization by Jörg Steinhauer & Henry Ruhs