3 users online. Create an account or sign in to join them.Users

Search

I have an Ajax page that has a page type of admin. I am correctly (as far as I know) sending the author's token to the page, and I'm checking for that token in the XSLT using a simple xsl:if check.

Basically, the Ajax call isn't working unless I'm logged in myself.

Does anyone know how to use an admin page type, passing the parameter in the URL?

How are you sending the token? ?auth-token? I'm not sure if this ever worked for frontend pages.

The Login Event from the default workspace supports the login via the auth-token.

Nick, I've been sending it as ?token which is on problem by the sounds of it.

Jonas, I'll take a look, although I don't want them to stay logged in, just use the token as an authentication.

Nick, is this the sort of thing the Rest API was developed for? Can it output JSON, or XSL styled XML/HTML?

Nick, is this the sort of thing the Rest API was developed for? Can it output JSON, or XSL styled XML/HTML?

Kind of. Not developed for public websites, so don't install it on a public-facing Symphony build as it opens you up to write operations on all sections. It can output JSON, XML or YAML... so you could potentially attach a REST API request as a Dynamic XML data source to a page, and transform the XML. But sounds like overkill to me.

I'm jut going to switch off the 'admin' page type. More trouble than it's worth.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details