Page 1 of 1

Re: Template conversions

Posted: Wed Jun 20, 2007 8:19 pm
by alby
lexscripta wrote: Can anyone recommend a good place to study how to do template conversions over to CMSMS?
Here and here, but not now because server moving

Alby

Re: Template conversions

Posted: Thu Jun 21, 2007 8:51 pm
by tsw
I should have explained the shell usage a bit better :) everybody is asking about it

yes its putty connected to shell on the server where cmsms run over ssh.

of course your isp has to have ssh shell available for customers..

then its just a basic wget (check man wget on the shell ;) to get the images from oswd to the cmsms server directly.

wget pros
- fast (server to server is usually much faster than your home adsl)
- no ftp problems
wget cons
- requires shell access
- no gui (debatable ;)

hope this clears things up a bit

Re: Template conversions

Posted: Fri Jun 22, 2007 2:27 am
by Cobby
I am also interesting in getting a tabbed menu working. I will do some of my own investigation over the next few days, but I have to learn how to use the Menu Manager paramaters, etc. Becuase I have had a look at some of the user contributed menu templates, and the use special variables that aren't mentioned in the Menu Manager help document.

Cheers,
Cobby

Re: Template conversions

Posted: Mon Jul 23, 2007 9:31 pm
by Dr.CSS

Re: Template conversions

Posted: Fri Jul 27, 2007 4:26 am
by Dr.CSS
This is probably easier and the template is in the themes site...

http://www.multiintech.com/index.php/photoleaves.html

Re: Template conversions

Posted: Tue Aug 21, 2007 6:07 am
by cyberman
lexscripta wrote: Just curious how the tabbed menu would be handled, or if thats going to require somthing special...
There's a template with tabbed menu available at themes site

http://themes.cmsmadesimple.org/index.p ... eturnid=17

Have you seen it?

Re: Template conversions

Posted: Tue Aug 21, 2007 6:41 am
by Dr.CSS
I don't know about web baker but from all the CMS programs I've looked at in the last 2 years none are as easy to work with as CMSMS, especially for porting templates to...

Almost all the menu templates have a class call for currentpage in them which you can change to active, which I did for the pencil template...

At one point I was porting them over at a rate of about 3 a day till I ran out of ones I thought were nice enough looking to bother with...

That one, golf, wasn't hard it was just my first attempt to do it and I ended up using divs instead of ul li for the menu...

Here is one using just a default css menu template with my styling applied...

http://www.multiintech.com/cmsms2/index ... ptabs.html

So I went to the template you linked and ported it over in about 45 min....

http://multiintech.com/cmsms1.1/pencil.html    looks like you have to be careful how long your menu text is...

Re: Template conversions

Posted: Wed Sep 12, 2007 6:47 pm
by Dr.CSS
If you look at the pencil tab you will notice a subtle difference from the others, the same change that is used for hover, it has the same calls for active page as the original and I shortened the menu text for Default Templates Explained to fit in the tab, other wise it had a gap on the left, that's what I meant by being careful about menu text length...

Menu call...

  {menu template="pencil" number_of_levels="1"}  number of levels is set because I didn't want other levels dropping down


The menu under quick links is just another {menu} tag call, I just used a set of menu items made for another template...

{menu start_element="9.1" show_root_siblings="1"}


For most conversions/porting the menu is the hardest part, what you need to do is see how they set up the menu for it then either change their calls, as in using menuactive, which is in most CMSMS menu templates, in the original menu CSS or change the menu template calls...

This one had...

Pencil

and calls so in the menu template...

{if $node->current == true}
url}" class="active"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

The whole menu, so you can see that the   doesn't belong at the beginning and end of every ' tag you will not need the closing tag...

{* CSS classes used in this template:
.currentpage - The active/current page
.bullet_sectionheader - To style section header
hr.separator - To style the ruler for the separator *}
{if $count > 0}
  notice no class or ID call for the ul
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}

{elseif $node->index > 0}
{/if}

{if $node->current == true}
url}" class="active"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

{elseif $node->parent == true && $node->depth == 1}
url}" class="activeparent"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

{elseif $node->type == 'sectionheader'}
{$node->menutext}

{elseif $node->type == 'separator'}


{else}
url}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

{/if}

{/foreach}

{repeat string="" times=$node->depth-1}

{/if}


I didn't bother putting {content block="secondcontent"} calls in this as I was just showing how it can be ported to CMSMS in a relatively short time, but for every area you want to be able to edit in all pages you just call another content block...

So for About The Author, Meta, even Quick Links, more editable content below the main or any where else just put additional content block tags