[Xerte-dev] Re: Additional links for a template
Ron Mitchell
ronm at mitchellmedia.co.uk
Wed Feb 13 22:12:59 GMT 2013
I can understand the idea of this from a developer point of view but from an end user point of view I think where relevant it's still good to display different links in the properties window ready to click or copy and paste along with the kind of instructions we have now.
From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Pat @ Pgogy
Sent: 13 February 2013 16:49
To: For Xerte technical developers
Subject: [Xerte-dev] Re: Additional links for a template
I think logically we have one play URL for each module
Then the play code is passed a second variable
So in non htaccess play.php?template_id=1&type=html5
So this way any module developer can increase play options without URL library changing?
This seems clean to me?
Pgogy Webstuff - http://www.pgogywebstuff.com
Makers of web things of a fair to middling quality
On 13 Feb 2013, at 10:08, "Ron Mitchell" <ronm at mitchellmedia.co.uk> wrote:
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
_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130213/83d884b0/attachment.html>
More information about the Xerte-dev
mailing list