[Xerte-dev] Re: Modules and htaccess

Julian Tenney Julian.Tenney at nottingham.ac.uk
Fri Apr 12 16:13:58 BST 2013


Happy with flash / javascript.

'Learning Module' for the site template? Political reasons here, but I need to avoid 'web site' or anything that sounds like it's an alternative to the CMS. Am happy to take other suggestions, maybe commit it for now? The actual name can remain 'site' if needs be.

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 12 April 2013 16:05
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Modules and htaccess

Some questions, before I commit,

1. Julian, do you already have a different name for 'site' or shall I commit site for the moment?
2. Do we have consensus over the engine name? html5? javascript? xenith?

Now I have 'html5'  in the GUI, but 'javascript' in the code, because I think that is better w.r.t. flash.

The major reason I ask is that if we want to create the play_html5_560 play_flash_560 (not sure that's a good idea, I prefer that people have to put in a bit more effort to choose an engine different than the author wanted, so play_560?engine=html5)

Still even if we leave it at the engine=.... what will we call the engines?

I prefer flash/javascript

Tom


Op 12-4-2013 16:48, Julian Tenney schreef:
Oh, OK, sorry I was thinking you wanted to add XML as an option to the runtime dropdown. I don't think that's the right place for it, but I might have misunderstood,

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat @ Pgogy
Sent: 12 April 2013 14:19
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Modules and htaccess

Well the tab is there for everyone, the only difference is the URL changes from

Xml_560 to
Play_xml_560

Pgogy Webstuff - http://www.pgogywebstuff.com
Makers of web things of a fair to middling quality

On 12 Apr 2013, at 13:49, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>> wrote:
Getting xml out. I think that's what you mean, anyway? I think that's something for developers to get at, rather than end users to get confused about,

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat @ Pgogy
Sent: 12 April 2013 12:58
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Modules and htaccess

The first or second bit

Pgogy Webstuff - http://www.pgogywebstuff.com
Makers of web things of a fair to middling quality

On 12 Apr 2013, at 11:37, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>> wrote:
This sounds like a rabbit hole for now,

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat @ Pgogy
Sent: 12 April 2013 11:03
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Modules and htaccess

The play URL is now a sort of API

So rather than

play.php?template_id=1&method=flash

You could have

play.php?template_id=1&method=XML

Which just returns the XML

So you cold retire the XML page from the root folder (over time)

Now where this could get interesting is you could make an XML remote method to change the file locations and host a single engine at site x, and dynamically bring in content that way. A sort of xpert shop window

Pgogy Webstuff - http://www.pgogywebstuff.com
Makers of web things of a fair to middling quality

On 12 Apr 2013, at 10:08, Julian Tenney <Julian.Tenney at nottingham.ac.uk<mailto:Julian.Tenney at nottingham.ac.uk>> wrote:
Is that something end users would need to see, or is this tech stuff for an API call?

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat @ Pgogy
Sent: 12 April 2013 08:22
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Modules and htaccess

At the moment XML is a link option for XOT files, but all it does is return the XML.

As we now have different methods for displaying content for a module, XML could be one of those?

Pgogy Webstuff - http://www.pgogywebstuff.com
Makers of web things of a fair to middling quality

On 12 Apr 2013, at 07:32, Tom Reijnders <reijnders at tor.nl<mailto:reijnders at tor.nl>> wrote:
Ehmmm... could you be a bit more specific? Last time I checked I still wasn't a mind reader.... :-)
Op 12-4-2013 0:28, Pat @ Pgogy schreef:
Tom,

Thoughts on making XML into a play option?

Pgogy Webstuff - http://www.pgogywebstuff.com
Makers of web things of a fair to middling quality

On 11 Apr 2013, at 21:52, Tom Reijnders <reijnders at tor.nl<mailto:reijnders at tor.nl>> wrote:
Yes definitely. Added function upgrade_4()

Tom
Op 11-4-2013 15:42, Ron Mitchell schreef:
Was the correct upgrade definitely in the patch?
If it was my applying of the patch didn't work because that's not in the patched or exported code yet it is in basic.sql

From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 11 April 2013 14:33
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Modules and htaccess

Strange.

Upgrade should give you an extra column on templatedetails called extra_flags.






Ron Mitchell <ronm at mitchellmedia.co.uk<mailto:ronm at mitchellmedia.co.uk>> schreef:
Cheers got it!


I'm not sure if anyone else has tried this yet but not quite working for me...


1. Applied patch to local copy of svn code
2. Exported patched version
3. Dropped over a localhost test install


I can see new options in the properties panel e.g. what is the default engine to use for this project with Javascript (a.k.a. HTML5) ticked
But I can't untick that or tick the flash option
When following the flash and html5 links I get an empty wondow
and when trying to create a new LO I get an empty window with failed to create new template


I ran upgrade.php but there doesn't seem to be anything new in there?


HTH
Ron


From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 11 April 2013 13:10
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Modules and htaccess


I've just sent it on...


From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 11 April 2013 12:29
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Modules and htaccess


Didn't want to send It to the list . Julian has it.
Ron Mitchell <ronm at mitchellmedia.co.uk<mailto:ronm at mitchellmedia.co.uk>> schreef:
Happy to test and feedback but where do I get the patch? 752 looks like Fay's update.


Ron


From: xerte-dev-bounces at lists.nottingham.ac.uk<mailto:xerte-dev-bounces at lists.nottingham.ac.uk> [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 11 April 2013 11:08
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Modules and htaccess


I am off-line the rest of the day. I'll send the patch to Julian.
Op 11-4-2013 11:51, Tom Reijnders schreef:
As an addition:

Now you can just use play.php&template_id=4 (or play_4). It will show :
1. if the template_frame=xerte  in the engine set by the user
2. if the template_frame is site using modules/site/play.php

Also, you can use play.php&template_id=4&engine=flash or play.php&template_id=4&engine=javascript to force a specific engine.

Some is true for preview.

You can also use engine=other (this is used by the wizard when Ctlr+Play is pressed)

I have to do the same for peer.php, but first would like some feedback ;-)

Tom


Op 11-4-2013 11:38, Tom Reijnders schreef:
Almost finished.

I didn't change anything yet to modularize the properties page

- Changed play.php (root) and modules/xerte/play.php and preview
- Made play_html5.php (root) redirect to new play
- Make use of the same template files as export does for the play and preview
- Make wizard toggle the engine on Ctrl-click
- Move site to its own module dir
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev




_______________________________________________

Xerte-dev mailing list

Xerte-dev at lists.nottingham.ac.uk<mailto:Xerte-dev at lists.nottingham.ac.uk>

http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev



--

--



Tom Reijnders

TOR Informatica

Chopinlaan 27

5242HM Rosmalen

Tel: 073 5226191

Fax: 073 5226196


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130412/a2efcb08/attachment-0001.html>


More information about the Xerte-dev mailing list