supply chain consulting using cms made simple

Post links to sites running CMS in all its glory.
Post Reply
rllqph

supply chain consulting using cms made simple

Post by rllqph »

we're proud to say that we're using cms made simple as our cms of choice!

http://support-asia.com/sccbeta/

it's still under beta test but everything's working fine with our requirements. as a web developer of the company, i want the management to donate somehow to your project. please email me personally at rllqph@yahoo.com.sg

btw, i only have one question in smarty template using menu manager......

how will i know the first and last item in the bulletmenu.tpl?

about - first
services
integration
contact - last

i tried reading the manual for the menumanager but it seems that it's not available there. any help will be appreciated. ^^

i will attach the original template for your reference...

[attachment deleted by admin]
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: supply chain consulting using cms made simple

Post by Dr.CSS »

Nice...
the pages on the bullet menu are ordered by the list of pages and the order they are put in in Content � Pages, the arrows on the right hand side moves the pages up or down to order them in the menu...
horizontal... left to right
vertical... top to bottom
i get the idea that you are not using the menu manager to make that menu  ;)
if you are not going to have any more pages than that you can use the ellnav-horiz.tpl...
for pages to dropdown below the others use the cssmenu.tpl with the 'Default CSSMenu Horizontal' CSS and you can add your own 'style' to that eg., images, color of text/hovers, active, etc. ....
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: supply chain consulting using cms made simple

Post by Ted »

Try something like this.  It should assign the class of "first" or "last" to the appropiate node (though, I didn't test it).

Code: Select all

{* 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}
<ul>
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}

{if $node->index == 0}
{assign var="firstlast" value="first"}
{elseif $node->index == $count - 1}
{assign var="firstlast" value="last"}
{/if}

{if $node->current == true}
<li><a href="{$node->url}" class="currentpage{if isset($firstlast)} {$firstlast}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>
{elseif $node->type == 'sectionheader'}
<li><span class="bullet_sectionheader"> {$node->menutext} </span>
{elseif $node->type == 'separator'}
<li style="list-style-type: none;"><hr class="separator" />
{else}
<li><a {if isset($firstlast)} class="{$firstlast}" {/if}href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext} </a>{/if}
{/foreach}

{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
rllqph

Re: supply chain consulting using cms made simple

Post by rllqph »

i tried it ted but only the "last" variable worked.

the other items puts class="first" on every list items so... -_-
rllqph

Re: supply chain consulting using cms made simple

Post by rllqph »

wait! thanks! it's working now! ^_^

my code is this..........



{* 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}

{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="leftactive{if isset($firstlast)} {$firstlast}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

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

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


{elseif $node->index == 0}
url}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

{elseif $node->index == $count - 1}
url}"{if $node->target ne ""} target="{$node->target}"{/if}> {$node->menutext}

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

{/foreach}

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

{/if}
Post Reply

Return to “CMS Show Off”