-
AuthorPosts
-
November 15, 2009 at 6:06 am #146045
Hello team!
I´m still testing the template and want to add a new layout (fluid layout). Now I have the main layout of frontpage (default) with 960px.
What I want to do is create a new layout and assign it to a menu id (53=fluid-showroom). I did the layout taking some code from default file, now what I need is when a user clic the menu id 53 can see a fluid header, so I created a new file name header-fluid.php based in header.php file but with diferents id and class code
The file fluid-showroom.php has the code and calls to header-fluid.php who is inside blocks carpet, but the problem is that is not taking the id or classes I put, even when I changed the code in header.fluid.php it still calling original header.php code.
How can I made a new working layout, is there a tutorial out there? Please anybody who know about creating a new layout who can explain me.
Thanks and I´ll be waiting for your answer and meanwhile I´ll be working hard to find by myself
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 18, 2009 at 12:23 am #324036This is realy easy to do. Just try to modify classes for header (write new class wrap), and main (set new class to main), then open default (or any layout you want to use) and set a new style for ja-container div like this “width:960px; margin: 0 auto;”.
See what happends and let me know.
DannyNovember 18, 2009 at 6:09 am #324069That´s what I did. Look I created a new layout, at the backend configured that item menu id 53 calls this layout. In the layout I made I configured diferents blocks made by myself. I noticed when I clic on menu who correspond to id 53 the site load fine but for a reason is not loading the changes I made.
Even I named all blocks diferent from orginals. All what I did was based on original files but with diferents names and values. I set to call diferents classes and files names but nothing works.
This is the code of file named fluid-showroom:
[PHP]
// no direct access
defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );
$this->_basewidth = 20;
$positions = array (
‘left1’ =>”,
‘left2’ =>”,
‘left-mass-top’ =>”,
‘left-mass-bottom’ =>”,
‘right1′ =>’right’,
‘right2’ =>”,
‘right-mass-top’ =>”,
‘right-mass-bottom’ =>”,
‘content-mass-top’ =>”,
‘content-mass-bottom’ =>”,
‘content-top’ =>”,
‘content-bottom’ =>”,
‘inset1’ =>”,
‘inset2’ =>”
);
//$this->customwidth(‘right1’, 25);
$this->definePosition ($positions);
?><?php if ($this->isIE() && ($this->getParam(‘direction’)==’rtl’ || $this->direction == ‘rtl’)) { ?>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN” “http://www.w3.org/TR/html4/strict.dtd”>
<?php } else { ?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<?php } ?><html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>”>
<head>
</head>
<body id=”bd” class=”fs<?php echo $this->getParam(JA_TOOL_FONT);?> <?php echo $this->browser();?>”>
<a name=”Top” id=”Top”></a>
<!– HEADER –>
<?php $this->loadBlock(‘header-fluid’) ?>
<!– //HEADER –><?php $this->loadBlock(‘botsl’) ?>
<!– FOOTER –>
<?php $this->loadBlock(‘footer’) ?>
<!– //FOOTER –><jdoc:include type=”modules” name=”debug” />
</body>
</html>
[/PHP]As you can see it suposse it doesn´t call the file header.php, it only calls files footer.php, header-fluid.php and botsl.php, but when I click the menu I set to load this layout stills calling default.php file.
I set up at the backend the correct value changes: 53=showroom-fluid
So I´m still wondering what is happening. Maybe I think is my editor (UEStudio) because today I changed some values over a few files and even when I refreshed the browsers changes may not seen to takes effect. I´ll try again from scratch with Dreamweaver to see what I get, because it supossed to be easy….
Thanks… Danny? 😎
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 18, 2009 at 10:00 am #324094you better get Notepad++. It’s open source.
Now because it still calls default.php, you also have to create a link for your new layout in the menu, and if you can see templatedetails.xml must also have a reference to your new layout…
Try to create your own css classes for the new layout, and style separatelly. I am not part of the support team, I do this on my free time.
DannyNovember 18, 2009 at 10:11 am #324098In effect, it was some problem with UEStudio, I began to create a new layout from scratch and now it works. What I´ve done was add calls for my css, php and js files between header tags of the new layout. Was thinking to create a new file and put all files inside the file… anyway both way it works.
Right now I have some troubles with header, I see a space like 20px from top of page, was checking css codes and margins and padding functions are set to 0, but when I use firebug I see a space in the code generated like if some kind of invisible code was in there… still looking to fix it.
Anyway when all is done I´d like to share the link with you and see my work, I think is good. By the way I changed completely the default menu of template, and keep making changes…
See you and thanks for all your help.
P.D: Hope you get understand my english… ya que soy nicaraguense amigo y pues obvio que hablo español… jejeje saludos hermano.
May 21, 2010 at 3:27 pm #344282Admittedly, when I try to edit some files, especially with Filezilla, various errors often occur, including spaces generated between “div” around 20px, and a line firebug appears empty. And in some sectors of the template, as in the content, is cumulative and spaces are increasing. It´s a big problem for my.
usually occurs after of a div with class clearfix, example:
after of: ja-box-ct clearfixalso after of: “ja-content-main clearfix”, of “jamod-content ja-box-ct clearfix”,
but also after of class=”article-content”
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by pichichus14 14 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum