[Xerte-dev] Re: Additional links for a template
Ron Mitchell
ronm at mitchellmedia.co.uk
Wed Feb 13 10:30:08 GMT 2013
That's partly what I meant - the embed code should probably hide for a site template but also I've wondered if there should be a change for the Notts/XOT template for embedding Flash or HTML 5 version.
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 13 February 2013 10:20
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Additional links for a template
> There also remains a question about the embed code and whether that should also change but I guess that's lower priority right now
Does embed even make sense for the site template?
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 13 February 2013 10:09
To: 'For Xerte technical developers'
Subject: [Xerte-dev] Re: Additional links for a template
Replying to Pat's post but it's obviously relevant to later posts too...
Hi Pat
thanks for the updates and blank canvas template I'll also have a look at that later. But can I clarify if my understanding of all this is correct and having applied the code to an install what currently works and what doesn't...
1. new file \modules\xerte\play_links.php
This currently contains a switch to check for Nottingham template and if so displays the additional play_html5 link in properties
2. \website_code\php\properties\properties_library.php
This checks for play_links.php and if found displays any links based on the case statement
So at the moment with your changes in place:
3. the default /play.php link displays without reference to play_links.php shouldn't this also be controlled by play_links.php at least until there is a single play link discussed in other threads?
4. For an RSS project no link shows
5. For a site project no additional link shows
If I add play_site links to url_library.php and a switch statement in play_links.php I can get the play_site link to show is that how it's meant to work?
Ideally at the moment at least the default /play.php link should be hidden for this template
There also remains a question about the embed code and whether that should also change but I guess that's lower priority right now
Ron
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of xerte at pgogywebstuff.com
Sent: 12 February 2013 20:58
To: For technical developers
Subject: [Xerte-dev] Additional links for a template
Hello,
In the trunk SVN have added extra code to properties_library and the Xerte module.
Properties_library looks for a file in modules/{module name} called play_links
In this is a function which depending on the template type (nottingham) then displays extra code. So Nottingham can show the PHP5 and Bootstrap links, but RSS will not
THIS ASSUMES
Nottingham and RSS have the same developer - which seems fair enough?
Pgogy Webstuff http://www.pgogywebstuff.com
Makers of Web things of a fair to middling quality
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130213/786ab34e/attachment-0001.html>
More information about the Xerte-dev
mailing list