Guillermo
|
Hello Team...
I wanna make it fit both, the print link and the send to a friend link with my artisteer template, but can't find the way to do this... Searching found that there is a template.css style that is called by the print and send to a friend link wich is in the templates/system/css/template.css, but this file this not exists, so I get a copy of my artisteer template, template.css and paste on that file, but only shows me the author, date, and the content in a very basics style.
So... did somebody make it fit both links style with the Joomla artisteer template generated???
I'm using Joomla 1.5.14.
Thanks in advance for the answer and sorry for my english, I'm not a native english speaker.
|
|
Guillermo
|
Hello team
Any help?
Thanks in advance...
|
|
Garry
|
You may like to post your website URL here
|
|
Guillermo
|
Hello Garry...
Sure, the url is www.gueb.cl the articles still are the Joomla sample articles, but as you will see, if you click in each one of them, the print and the pdf buttons don't show the css style of the site.
Waiting for any help, regards
|
|
Pixelmessage
|
Quote Guillermo:
Hello team
Any help?
Thanks in advance...
hi huillermo,
put the line
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/name_of_your_template/css/template.css" type="text/css" />
into the file "component.php" of your artisteer-template right before the </head> - tag. that does the trick.
regards
pixelmessage
|
|
Guillermo
|
Hello pixelmessage... I put the code and get this error:
Fatal error: Call to undefined function phpdefined() in /home/guebcl/public_html/templates/musphay/component.php on line 1
Any help will be very usefull
Regards
Guillermo
|
|
Pixelmessage
|
Quote Guillermo:
Hello pixelmessage... I put the code and get this error:
Fatal error: Call to undefined function phpdefined() in /home/guebcl/public_html/templates/musphay/component.php on line 1
Any help will be very usefull
Regards
Guillermo
please post the few lines of your component.php here.
regards
pixelmessage
|
|
Guillermo
|
Hi Pixelmessage,
Here it is:
Quote :<?phpdefined('_JEXEC') or die('Restricted access'); // no direct access?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=" http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><jdoc:include type="head" /> <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" /><link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/musphay/css/template.css" type="text/css" /> </head> <body class="contentpane"> <jdoc:include type="message" /> <jdoc:include type="component" /> </body> </html>
Thanks for help
Guillermo
|
|
schorsch
|
Try it this way:
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
|
|
Guillermo
|
Hello...
Thanks for the help... I did the change and same error saying:
Fatal error: Call to undefined function phpdefined() in /home/guebcl/public_html/templates/musphay/component.php on line 1
The new few lines of the component.php is:
Quote :<?phpdefined('_JEXEC') or die('Restricted access'); // no direct access?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=" http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><jdoc:include type="head" /> <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/system/css/general.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" /> </head><body class="contentpane"> <jdoc:include type="message" /> <jdoc:include type="component" /></body></html>
Hope some help...
Guillermo
|
|
Pixelmessage
|
hi Guillermo,
you only have to put a linebreak between '<?php' and 'defined' in the first line.
so it must be:
<?php
defined('_JEXEC') or die('Restricted access'); // no direct access
then it should work.
schorsch: $this->template is undefined in component.php of artisteer
greetings
pixelmessage
|
|
pixelmixer
|
My conclusion... works fine for me:
in "component.php" of your artisteer-template replace first
<?php
defined...
?>
with
<?php
defined('_JEXEC') or die('Restricted access'); // no direct access
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';
$document = null;
if (isset($this))
$document = & $this;
$baseUrl = $this->baseurl;
$templateUrl = $this->baseurl . '/templates/' . $this->template;
artxComponentWrapper($document);
?>
and add before </head>:
<link rel="stylesheet" href="<?php echo $this->baseurl; ?><?php echo $templateUrl; ?>/css/template.css" type="text/css" />
|
|