Apps
Knowledge
People
Register
Login


-
- Content .- Fans  .- Knowledge Base  . 

TAL Page Templates for ownCloud

   0.2.3  

ownCloud Tool

Score 58%
TAL Page Templates for ownCloud
zoom


Blog:  Link
Version Control:  Link
Issue Tracker:  Link
Minimum required   ownCloud 5
Maximum required   ownCloud 6
Downloads:  4227
Submitted:  Oct 10 2012
Updated:  Feb 25 2014

Description:

Works for both ownCloud 5 and 6.

NOTE: HTML5 and decent JS support has kind of obsoleted the need for server side template languages like TAL. If anyone wants to take over this project please contact me for the arrangements.

Develop using the Template Attribute Language instead of having clumsy tags in your markup

This is an alternative to OC_Template and OC_L10N - the templating and internationalization classes used in ownCloud.

Read more at http://tanghus.net/tag/tal/

NOTES:
- This version of TAL requires adjusting your templates. See more at http://tanghus.net/2013/03/new-journal-and-tal-page-templates-for-owncloud-releases/
- TAL from apps.owncloud.com is for ownCloud 5.x only for now.




Changelog:

### 0.2.3

* Update to work both on ownCloud 5 and 6.

### 0.2.2

* Moved version to info.xml to please the installer.

0.2.1

* Wrong namespace broke admin page.

0.2

* Use OC_TemplateLayout to render the layout. All apps using TALTemplate
will have to update their templates and remove any markup besides what
they want rendered. See the manual for more info.

* The classes now uses the OCA\TAL namespace.




LicenseAGPL
All Versions
Send to a friend
Subscribe
Other  Apps  from tanghus
Report inappropriate content



-
.

 version not compatible error

 
 by atomicpapa on: Apr 11 2013
 
Score 50%

When I attempt to enable the app, I get an error that the app is not compatible with my version of OC. I have downloaded the zip and decompressed it into the 3rd party folder of my server (var/www/owncloud/3rdparty/tal) and I am running OC 5.0.3. Any ideas?


Reply to this

-

 Re: version not compatible error

 
 by tanghus on: Apr 11 2013
 
Score 50%

Quote:
When I attempt to enable the app, I get an error that the app is not compatible with my version of OC.


There was a bug in the version comparison method in ownCloud, which was fixed a few days ago. If you wait until 5.0.4 is released (very soon) it may have been fixed.
Quote:
I have downloaded the zip and decompressed it into the 3rd party folder of my server (var/www/owncloud/3rdparty/tal) and I am running OC 5.0.3. Any ideas?

There's no need to download it, and if you do it shouldn't go in the 3rdparty folder. That folder is for external libraries used by ownCloud.
Delete it from there, go to settings/apps and enable it from there. It will be downloaded automatically into the proper folder.


/Tanghus
Reply to this

-
.

 Re: Re: version not compatible error

 
 by atomicpapa on: Apr 11 2013
 
Score 50%

Thanks for the quick reply, Tanghus!

So, 5.0.4 dropped this morning and I updated. I deleted the tal folder, went to settings, and tried to install as you said. I am now getting a different error:

"App can't be installed because the version in info.xml/version is not the same as the version reported from the app store".

ideas?


Reply to this

-

 Re: version not compatible error

 
 by tanghus on: Apr 11 2013
 
Score 50%

I can't reproduce that using stable5 from git. Can you check the folder ownCloud downloaded. It should be in your apps folder. The file tal/appinfo/version should contain 0.2.1


/Tanghus
Reply to this

-

 Re: Re: version not compatible error

 
 by atomicpapa on: Apr 11 2013
 
Score 50%

Apparently because of the error, it did not download the app. Another app that I installed shows up in that folder, but tal is not there.

(var/www/owncloud/apps)


Reply to this

-

 Re: version not compatible error

 
 by tanghus on: Apr 11 2013
 
Score 50%

I managed to reproduce it. Apparently the version check has changed more than I though. I will upload a new version when I get home tonight. Or you can check it out from git.


/Tanghus
Reply to this

-

 Re: Re: version not compatible error

 
 by atomicpapa on: Apr 11 2013
 
Score 50%

i downloaded tal-master.zip from git and unzipped it into the /apps folder. Then changed the name to /apps/tal. How do I now enable it? I get the same version error when I click the enable button.



-

 Re: version not compatible error

 
 by tanghus on: Apr 11 2013
 
Score 50%

I've just uploaded a new version, so delete the one you've downloaded, refresh the page and try to enable it again. For some odd reason it still shows version 0.2.1 in settings/apps, but it seems to install the right version.


/Tanghus

-

 Re: Re: version not compatible error

 
 by atomicpapa on: Apr 11 2013
 
Score 50%

WOOO HOOO!!! Thanks!!!



-
.

 OC6 crash

 
 by heavymanto on: Jan 17 2014
 
Score 50%

template file not found: template:settings formfactor:
#0 /volume1/web/owncloud/lib/private/template.php(168): OC\Template\TemplateFileLocator->find('settings')
#1 /volume1/web/owncloud/lib/private/template.php(60): OC_Template->findTemplate('', 'tal', 'settings', '')
#2 /volume1/web/owncloud/apps/tal/lib/taltemplate.php(32): OC_Template->__construct('tal', 'settings', '')
#3 /volume1/web/owncloud/apps/tal/settings.php(13): OCA\TAL\Template->__construct('tal', 'settings')
#4 /volume1/web/owncloud/lib/private/app.php(621): include('/volume1/web/ow...')
#5 /volume1/web/owncloud/settings/admin.php(17): OC_App::getForms('admin')
#6 /volume1/web/owncloud/lib/private/route.php(121) : runtime-created function(1): require_once('/volume1/web/ow...')
#7 [internal function]: __lambda_func(Array)
#8 /volume1/web/owncloud/lib/private/router.php(127): call_user_func('?lambda_645', Array)
#9 /volume1/web/owncloud/lib/base.php(696): OC_Router->match('/settings/admin')
#10 /volume1/web/owncloud/index.php(30): OC::handleRequest()
#11 {main}


Reply to this

-

 Re: OC6 crash

 
 by tanghus on: Feb 25 2014
 
Score 50%

I've just updated it to work both on ownCloud 5 and 6.


/Tanghus
Reply to this

-
.

 OC7 not compatible

 
 by netrin on: Aug 4 2014
 
Score 50%

Does not appear to be compatible with Owncloud 7. Will this be updated for OC7, and thus to allow the Journal app to function, which uses TAL as its dependency? Thanks!


Reply to this

-
.

 Error PHP redeclare non static

 
 by adoello on: Sep 15 2014
 
Score 50%

I intalled this app for run the app "Journal"
I see this error when I enter administration tab:
/var/www/owncloud/data/owncloud.log:

{"app":"PHP","message":"Cannot redeclare non static OCP\\Template::$app as static OCA\\TAL\\Template::$app at \/var\/www\/owncloud\/apps\/tal\/lib\/taltemplate.php#348","level":3,"time":"2014-09-15T18:29:53+00$

And the page Administrator give me error 500
The solution troubles when I rename folder /var/www/owncloud/apps/tal
(desactivate app)

Anyone have a solution?
Thanks


Reply to this

-
.

 Error PHP redeclare non static

 
 by adoello on: Sep 15 2014
 
Score 50%

I intalled this app for run the app "Journal"
I see this error when I enter administration tab:
/var/www/owncloud/data/owncloud.log:

{"app":"PHP","message":"Cannot redeclare non static OCP\\Template::$app as static OCA\\TAL\\Template::$app at \/var\/www\/owncloud\/apps\/tal\/lib\/taltemplate.php#348","level":3,"time":"2014-09-15T18:29:53+00$

And the page Administrator give me error 500
The solution troubles when I rename folder /var/www/owncloud/apps/tal
(desactivate app)

Anyone have a solution?
Thanks


Reply to this

Add commentBack




-
 
 Who we are
Contact
Register
Explore
Apps
Knowledge
People
Participate
Add App
Public API
About apps.ownCloud.com
Legal Notice
Report Abuse
 

Copyright 2011-2017 apps.ownCloud.com Team  
All rights reserved. apps.ownCloud.com is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.