Page 1 of 1

Web/graphic design website - showandtell.com.au

Posted: Thu Sep 13, 2007 6:11 am
by showtell
Just launched this yesterday. It was a revamp of our existing website, and also our first website using CMS Made Simple. Hope you like it-

http://www.showandtell.com.au/

Re: Web/graphic design website - showandtell.com.au

Posted: Tue Oct 02, 2007 4:08 am
by Dren
Wow! I like this! What are you using for that gallery?  :-\ I really like that gallery.. lol

Re: Web/graphic design website - showandtell.com.au

Posted: Wed Oct 03, 2007 2:59 pm
by tyman00
Great looking site, modern and fun yet simple. I am also very impressed at how clean your code is!

If you don't mind me asking, how did you get the id="***" to show up in the following, did you use PHP to query the page name or did you manually  ad it.


Re: Web/graphic design website - showandtell.com.au

Posted: Thu Oct 04, 2007 9:14 pm
by neophron
Hi,

this is a website worth to remember. I bookmarked it at once. I like the style, it's very individual. There are a lot of interesting stuff to learn. I have some questions:
On the http://www.showandtell.com.au/gallery, below gallery | Overview, is a multi search form. How did you ceate it? Is it complicated to implement sIFR for the headlines into CMSmadesimple?

neophron

Re: Web/graphic design website - showandtell.com.au

Posted: Tue Oct 09, 2007 3:24 am
by MaC747
aussie aussie aussie      :D

nice work mate...
makes me look at my site and think what a waste of time lol

Re: Web/graphic design website - showandtell.com.au

Posted: Wed Oct 10, 2007 11:25 pm
by showtell
Sorry, about the long time on response. Haven't looked here for a little.
Wow! I like this! What are you using for that gallery?  Undecided I really like that gallery.. lol
I coded the gallery, as there were no modules existing for what I wanted to be able to do. I used my own URL system because the one on CMS made simple makes me  >:(. Took me about a week.
If you don't mind me asking, how did you get the id="***" to show up in the following, did you use PHP to query the page name or did you manually  ad it.
That is just a simple module / or custom tag. Code is something simular to this...

Code: Select all

global $gCms;
global $smarty;

$hm =& $gCms->GetHierarchyManager();
$result = 'not-found';

$thisPage = $gCms->variables['content_id'];
$page_name = $gCms->variables['page_name'];
$currentNode = &$hm->sureGetNodeById($thisPage);

if (isset($currentNode)) {
	
	$currentContent =& $currentNode->getContent();
	$current_name = $result = $currentContent->Name();
	$currentNode =& $currentNode->getParentNode();

	while( isset($currentNode) && $currentNode->getLevel() >= 0 )
	{
	    $currentContent =& $currentNode->getContent();
	    if ($currentNode->getLevel() >= 1){
	     $current_name = $result = $currentContent->Name();
	     $page_name = $currentContent->Alias();
      }
	    $result = $currentContent->Name();
	    $currentNode =& $currentNode->getParentNode();
	}
	
}

$parent_name = $result;
$parent_id = str_replace(' ', '-', strtolower($result));
$smarty->assign('head_id', $parent_id);

if ($page_name == $parent_id){
	$page_name .= '-main';
}

$smarty->assign('body_id', $page_name);
then in the template you just use

Hope that helps.
Thanks for all the comments. Much appreciated.