What's the best theme to take apart to see what all the new theme engine can do, and get a good idea of how to build a theme for VERSION 1.3
I don't wanna waste anytime on 1.2.3 now that I learned 1.3 breaks the backwards compatibility...
Thanks in advance!
--
With the advent of modern technology, sites like Twitter, and the Facebook Virus...
I think we should all breathe a collective sigh of relief that I got here in time...
- randomblink
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Best Theme To Template... GO!
-
- Rank: Developer
- Registered: Feb 24, 2003
- Last visit: Nov 12, 2009
- Posts: 254
-
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
1.3 won't break the compatibility in this topic.
Further rework of the theme engine will be available on the next minor release
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Softmore
- Registered: May 10, 2010
- Last visit: May 18, 2010
- Posts: 165
I haven't yet discovered all the new coolness about 1.3's theme engine. But I have already built one and, for the most part, all I really did was change the old delimitersto the new delimitersCode
<!--[ ]-->Code
{ }
In cases where there's a "PN" at the front of a tag name, simply removing "PN" from it seems to work. For example, pnmodgetname would now be modgetname.
For inserting text in the templates, just use the gt tag. For instance, a menu item might beCode
{gt text="Home"}
I guess what I'm saying is that the transition is pretty easy, even if you you want to start with 1.2.3.
--
-
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Indeed, the delimiters and the plugins changed on 1.3... I have all the planned features for the Theme Engine on my brain
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: May 31, 2010
- Posts: 303
I based all my changes to the Mark West theme collection off the SeaBreaze Theme. Following SeaBreaze's structure I have component-ised the page templates, so that multiple pages (when used or created) can share a single copy of the head, header or footer information as an include, instead of having to maintain that info across several pages. As the other comments stated it is pretty easy. If you can build a single web page, you will find it easy to convert it into a basic site theme. The rest is getting to know your "in-use" module styles and the core style sheet to blend those into your own design in your theme's style folder.
@Wendell Hi, nice to see you again.
@Metao You are a tease
--
Paul
____________________________________________________
"...Humor, ITs just a state of mind"
TakeIT2.CoM :: Open Destination
...my site is a perfect example of why doctors do not operate on them self :) -
- Rank: Softmore
- Registered: May 10, 2010
- Last visit: May 18, 2010
- Posts: 165
I guess we never really answered the OP's question... but I don't think there are any themes for 1.3 actually released, are there?
I have one that I've been working on and I'd be happy to provide the master template as a sample, if anyone is interested. Just PM me with an email address and I'll send it along. The theme can be seen at http://www.willvalley.com for now, but only temporarily.
--
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
I've done the conversion of 960theme, and it's updated in SVN, but I haven't rolled it out because 1.3 is in beta still.
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: May 31, 2010
- Posts: 303
I suppose the only things to add and watch in your theme
- All themes theme folder have a single leading capital letter if your theme name starts with letter. (i would like to discourage the use of underscores in the folder name as well. The version file attribute for display name creates an opportunity to convey spaces in your theme name if you like. But we all know how ugly a URL can look with spaces and character formatting.) simple names with the appearance of one word names are optimal. _ Underscores are legal but ugly in many ways. Themes I personally create will start with T2 - e.g. T2motion (coming soon to the extdb)
...shameless plug
- use of gettext strings for any plain text - use it in you image alt=values and your link title=values as well
- the lang folder is now locale for your language files extracted from the gettext strings
- the newest change is the use of the .tpl extension for all templates - no more htm or HTML - this requires adjusting your ini files as well !
Themes are Dressing for Success -
@Wendell - if you download a beta copy of 1.3 from SVN or hudson, SeaBreaze is in there as well as Andreas08.
Paul
Edited by TakeIT2 on Jun 25, 2010 - 01:09 PM. -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
So, the .ini files will have the last word?
As the module-developer have the choice to use whatever pattern and extensions for the module, the themers can choose the fav extension from the .ini files?
I there's a guide about how to use code highlighting on .tpl
I have no problems
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: May 31, 2010
- Posts: 303
Well all templates, theme included really are Smarty templates? and the theme/renderer is processing the output to HTML, right?
--
Paul
____________________________________________________
"...Humor, ITs just a state of mind"
TakeIT2.CoM :: Open Destination
...my site is a perfect example of why doctors do not operate on them self :) -
- Rank: Developer
- Registered: Feb 24, 2003
- Last visit: Nov 12, 2009
- Posts: 254
TakeIT2
Well all templates, theme included really are Smarty templates? and the theme/renderer is processing the output to HTML, right?
Great question...
--
With the advent of modern technology, sites like Twitter, and the Facebook Virus...
I think we should all breathe a collective sigh of relief that I got here in time...
- randomblink -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
TakeIT2
Well all templates, theme included really are Smarty templates? and the theme/renderer is processing the output to HTML, right?
Usually the templates I "outsource" contains some logic and yes, they needs to be parsed by Smarty. Sometimes people can have templates for their Ads or "static stuff", I do that with plugins mostly.
Indeed, in the final we only get HTML
I just want to see if those who likes the .htm can preserve it through the .ini files, even when the Theme Engine defaults changes to .tpl
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
Quote
I just want to see if those who likes the .htm can preserve it through the .ini files, even when the Theme Engine defaults changes to .tpl
my understanding is since the filename is specified completely in the renderer call, it frankly doesn't matter if it is .htm, .tpl or .xyz
e.g.
Code
$render->fetch("my/dir/structure/myfulltemplatename.xyz"); -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Hi Craig
That's for modules, but theme defaults works different on the Theme Engine
--
- Mateo T. -
Mis principios... son mis fines
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
