Click here to register.
      
Bazaar


     Discuss > Web Design, Templates, and Themes

Template Change Issue

User suresh
Date 6/16/2008 6:22 am
Views 1291
Rating 0    Rate [
|
]
Previous · Next
User Message
suresh

Hello Experts,

I new to WebGUI. Am having a clarification on Template Change. I just created a swifty template namely 011_000_301 blue color.

My site is http://86.109.20.33/ in that home page, The default template is displayed. http://86.109.20.33/about_us is about us page. In that page the new template is taken.
My Question is: 1. What are the steps to be followed to integrate a new template. 2. Why the template is not applied for Home Page. How we can apply that. 3. Also my template has no logo. how we can handle this.

Thanks!
Suresh

--- (Edited on 6/16/2008 6:22 am [GMT-0500] by suresh) ---



Back to Top
Rate [
|
]
 
 
bartjol

Another Dutchie!

1. Mostly templates work quite simple it is some HTML with a reference to css. If you create new content (eg a new page layout) the style of the object above is chosen as default. Otherwise you can choose it at the display settings if the object.

Don't forget to set the user function style also to this template (admin console-> settings->UI)

and changing the template probably also requests for the execution of the version tage in which you made the change

2. It is not selected as the template for your site, so edit the page, go to the display tab and select your style as the style template

3. You can put in your logo as a background picture for a <div> element, but there are some more solutions to this problem, but those are not WebGUI specific

--- (Edited on 6/16/2008 2:16 pm [GMT+0200] by bartjol) ---



Back to Top
Rate [
|
]
 
 
suresh

Hi Bartjol,


Thanks for your valuable reply. I cant get it solved. I am using swifty Template. So i unable to proceed further.

In swifty template, there are predefined values for logo, company name, slogan, etc.

That is, i am integrating Template with WebBUI. using SWIFTY Template.
I just created the folder under the swifty template namely 011_000_301.

The structure of the Template files as follows.

SWIFTY Templates
    - 011_000_301   (Folder)
        -  Blue   (Folder)
            - css (Folder that contains style.css which is used as default css)
            - img (Folder that contains all images related to the site)
            - js (Folder that contains all js related to the site which is used to menu and submenu display.)
            - config.json (Snippet)
        -  011_000_301 (Template File)
   
That Template File contains following code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<tmpl_var head.tags>
<title></title>

</head>
<body>

<script type="text/javascript">
//<![CDATA[
amh_setFooterHeight(36);
YAHOO.util.Event.on(window, "load", amh_onLoad);
//]]></script>

<script language="JavaScript1.2">mmLoadMenus();</script>
<div class="width850">
  <div class="width760">
    <div class="topbar1"></div>
    <div class="headerbg">
      <div><img src="images/height.gif" height="40"></div>
      <div class="companyname font"></div>
      <div><img src="images/height.gif" height="5"></div>
      <div align="right" class="slogan font"></div>
      <div><img src="images/height.gif" width="760" height="22"></div>
    </div>
    <div class="topbar2">
      <div><img src="images/height.gif" width="760" height="5"></div>
      <div align="center" class="marginleft180">
     
      </div>
    </div>
    <div class="blank"></div>
    <div class="home">
   
    <tmpl_var body.content>
   
    </div>
    <div class="bott_bar" align="center">
      <div class="copyright"> Copyright &copy; 2008 company name. All rights reserved. </div>
    </div>
  </div>
</div>
</body>
</html>
         

Now my query is: Where i can create a thumbnail image. How we can apply this to our template. Also how we apply menu designs

Regards

Suresh

--- (Edited on 6/16/2008 8:11 am [GMT-0500] by suresh) ---



Back to Top
Rate [
|
]
 
 
knowmad

         

Now my query is: Where i can create a thumbnail image. How we can apply this to our template. Also how we apply menu designs

Hi Suresh,

It sounds like you're getting close. You will need to add your images as an Image Asset into your WebGUI site. Once you do that, you'll have an url available to include them into your template. You can either upload the exact size you need or let WebGUI create a thumbnail of the image and then adjust the thumbnail to the size you need. However, if you use the WebGUI thumbnail, you'll need to use the thumbnail macro.

Also be sure to check out How to Give WebGUI Your Own Style in the wiki.

 

Hope that helps,
William

----
Knowmad Technologies
http://www.knowmad.com

--- (Edited on 6/16/2008 10:22 pm [GMT-0400] by knowmad) ---



Back to Top
Rate [
|
]
 
 
bartjol

Well, I would have to look into swifty templates, not sure when I have the time. Probably you're better of with someone elses help on this one.

But with each image that you add, a thumbnail is created. On display you can alter the template of the image to one with the thumbnail, and request for it with an assetproxy. a thumbnail variable should be available in the image template.

--- (Edited on 6/16/2008 4:09 pm [GMT+0200] by bartjol) ---



Back to Top
Rate [
|
]
 
 
ilagnev

hi

i have some questions.

i upload template file with images and css's files in xxx_xxx_xxx directory in swiftytempates.

how i can view this template?

when i click on "manage site" button in swifty admin menu then "select design", i can view others design's, but not that xxx_xxx_xxx.

what i must do to view my uploaded design?

--- (Edited on 6/19/2008 5:56 am [GMT-0500] by ilagnev) ---



Back to Top
Rate [
|
]
 
 
bartjol

Is it in the right namespace? (example for page layouts: Layout and for style templates: style)

--- (Edited on 6/19/2008 1:06 pm [GMT+0200] by bartjol) ---



Back to Top
Rate [
|
]
 
 
ilagnev

Is it in the right namespace? (example for page layouts: Layout and for style templates: style)

--- (Edited on 6/19/2008 1:06 pm [GMT+0200] by bartjol) ---

 

i create two template file with same html code.

in first file i chose "Layout" namespace.

in second file "style" namespace.

but i can not view my design in manage site section.

what i doing wrong?

--- (Edited on 6/19/2008 6:36 am [GMT-0500] by ilagnev) ---



Back to Top
Rate [
|
]
 
 
ilagnev

hi again :)

i apply my design to site.

but i have some trouble.

style of site is my custome design. style of menu is my too.

but the style of content block is other.

i must create other template file for content? then how i can apply this template only for content?

--- (Edited on 6/20/2008 11:07 am [GMT-0500] by ilagnev) ---



Back to Top
Rate [
|
]
 
 

Recent Discussions Color Key

Design:

Development:

Et Cetera:

Install/Upgrade:  

Smoketest:

Template Group:


Re: Shortcut of a thread by knowmad - Thu @ 07:33am

Re: Synopsis search results by knowmad - Thu @ 07:21am

Re: Templates workspace site by rogier - Thu @ 04:24am

Re: Templates workspace site by rogier - Thu @ 02:59am

Re: Shortcut of a thread by perlDreamer - Wed @ 11:46pm

Re: Ubuntu Load on Startup by SteveD - Wed @ 04:37pm

Shortcut of a thread by arjan - Wed @ 04:11pm

Re: preventing email spam mailto by lrobinson - Wed @ 03:51pm

preventing email spam mailto by sandraqu - Wed @ 03:39pm

Re: Data Form and Form Controls by martink - Tue @ 11:05am

Re: Synopsis search results by marieken - Tue @ 06:10am

Re: Übersetzungen vor dem nächsten Treffen by koen - Tue @ 04:24am

Re: Übersetzungen vor dem nächsten Treffen - Translations to be done before the next meeting will take place. by bernd - Tue @ 01:15am