Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-09-16 17:23:47
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
can this joomla - layout be converted to a textpattern layout ?
Hello,
I found a beutifull layout in a joomla site.
My question is can this be converted to a textpattern layout.
The html looks like this :
<code>
<?php defined( ‘_VALID_MOS’ ) or die( ‘Direct Access to this location is not allowed.’ ); ?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<?php $iso = split( ‘=’, _ISO );
echo ‘<?xml version=“1.0” encoding=”’. $iso1 .’”?’ .’>’;
?>
<html xmlns=“http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=“Content-Type” content=“text/html; <?php echo _ISO; ?>” />
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
initEditor();
}
?>
<meta http-equiv=“Content-Type” content=“text/html; <?php echo _ISO; ?>” />
<link rel=“shortcut icon” href=”<?php echo $GLOBALS[‘mosConfig_live_site’]; ?>/templates/<?php echo $cur_template; ?>/images/favicon.ico”/>
<link rel=“stylesheet” type=“text/css” href=”<?php echo $GLOBALS[‘mosConfig_live_site’]; ?>/templates/<?php echo $cur_template; ?>/css/template_css.css” />
<style type=“text/css”>
<!—
.bg01 {
background:url(<?php echo $GLOBALS[‘mosConfig_live_site’].”/templates/”.$cur_template.”/images/bg-01”.sprintf(“_%02d”,rand(1,7)).”.jpg”; ?>) top left no-repeat;
}
—>
</style>
</head>
<body>
<h1 class=“struktur”>Kopfbereich</h1>
<a class=“struktur” href=”#inhalt”>Direkt zum Inhalt</a>
<a class=“struktur” href=”#navigation”>Direkt zur Navigation</a>
<?php if (mosCountModules( “left” )) { ?>
<div class=“menu_links”><div class=“menu_links_02”><div class=“menu_links_01”><div class=“menu_links_03”>
<div class=“menu_links_content”>
<a name=“navigation”></a>
<h1 class=“struktur”>Navigation</h1>
<?php mosLoadModules ( ‘left’); ?>
</div>
</div></div></div></div>
<?php } ?>
<?php if (mosCountModules( “right” )) { ?>
<div class=“menu_rechts”><div class=“menu_rechts_02”><div class=“menu_rechts_01”><div class=“menu_rechts_03”>
<div class=“menu_rechts_content”>
<?php mosLoadModules ( ‘right’); ?>
</div>
</div></div></div></div>
<?php } ?>
<div id=“topmenu”>
<?php if (mosCountModules( “user3” )) { ?><?php mosLoadModules ( ‘user3’,-1); ?><?php } ?>
</div>
<div class=“user4”>
<?php mosLoadModules ( ‘user4’,-1); ?>
</div>
<?php
if (mosCountModules( “right” )) {
echo “<div class=\“bg\”>”;
} else {
echo “<div class=\“bg_wide\”>”;
}
?>
<div class=“bg05”><div class=“bg02”><div class=“bg04”><div class=“bg06”><div class=“bg08”>
<div class=“bg01”><div class=“bg03”><div class=“bg07”><div class=“bg09”>
<div class=“inhalt”>
<table cellpadding=“0” cellspacing=“0” width=“100%”><tbody>
<tr><td valign=“top” width=“50%”>
<?php if (mosCountModules( “user1” )) { ?> <div id=“user1”> <?php mosLoadModules ( ‘user1’,-2); ?> </div>
</td><td valign=“top” width=“50%”>
<?php } if (mosCountModules( “user2” )) { ?> <div id=“user2”> <?php mosLoadModules ( ‘user2’,-2); ?> </div> <?php } ?>
</td></tr>
</tbody></table>
<div class=“top”>
<?php mosLoadModules ( ‘top’,-1); ?>
</div>
<a name=“inhalt”></a>
<h1 class=“struktur”>Inhalt</h1>
<?php mosMainBody(); ?>
</div>
</div></div></div></div>
</div></div></div></div></div>
</div>
<?php
if (mosCountModules( “right” )) {
echo “<div class=\“logo\”>”;
} else {
echo “<div class=\“logo_wide\”>”;
}
?>
<?php
// Danke dass Du folgenden Link im Template bestehen lässt
?>
<div class=“design”>
design by <a href=“http://www.i-cons.ch”>i-cons</a>
</div>
</body>
</html>
</code>
Thank everybody for the help.
Roelof
Last edited by roelof (2006-09-16 17:24:25)
Offline
Re: can this joomla - layout be converted to a textpattern layout ?
http://textpattern.com/faq/57/can-i-use-textpattern-to-do-this
In general Textpattern is pretty flexible and doesn’t get in the way. If you are concerned about a specific functionality, you should phrase your question more specifically.
Offline
Re: can this joomla - layout be converted to a textpattern layout ?
Hi roelof,
The best way to convert a template is to view the site and save it off in either Firefox or Opera. Then you can see the site’s html representation, rather than trying to figure out all that PHP code strewn about the template.
Then it’s a matter of understanding Textpattern’s tag system and add the appropriate one where the article goes or a menu should appear, etc. It’s pretty straightforward and it’s a lot easier to do in Textpattern than it is in Joomla.
One of the reasons I’ve never taken to Joomla or Wordpress is the PHP tags required in their template systems. Some argue that it makes it powerful but I view it as more difficult and easier to shoot your foot off if you’re new to it all.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline