11 years ago
4
Topic

Hello,

That's the first time i'm trying to deal with template override.

I've read every post and every tutorial regarding template overrides and I think that i'm missing something...

These are the steps i've taken:

1. construction > form & content type manager > alias of the form i've created = "2013_08_14_21_03_22"

2. therefore I've created a new folder mysite/templates/sdsimplesimon/positions/2013_08_14_21_03_22/content/

3. in that path I created 2 files:

3.1. mainbody.php:

<?php 
// No Direct Access
defined( '_JEXEC' ) or die;
?>
<div class="span6">
<p><?php echo $cck->renderField('_business_name'); ?></p>
<p><?php echo $cck->renderField('_service_description'); ?></p>
<p><?php echo $cck->renderField('_price'); ?></p>
</div>
 3.2. topbody.php:
<?php 
// No Direct Access
defined( '_JEXEC' ) or die;
?>
<div class="span3">
<p><?php echo $cck->renderField('_profile_img'); ?></p>
</div>

Somehow nothing has changed on my website... Does someone have any idea why?

Thank you all,

Ofer


Get a Book for SEBLOD
11 years ago
3
Level 1

you don't understand overwrites right a Template overwrite is Creating a Other view of a Existing Component ^^ and sdsimple simon is a Template not a component. your simply making your changes at the wrong place and template overwrites arn't the right way. 

greet

11 years ago
2
Level 2

Thank you :)

I changed the path and it works great. 

The real problem for me right now is how to make the text and all the field RTL using this code for example:

...templates/seb_one/positions/myformname/content/mainbody.php:

<?php 
// No Direct Access
defined( '_JEXEC' ) or die;
?>
<p><?php echo $cck->renderField('test'); ?></p>

And by using what position (mainbody, topbody,...) ?


Thanks !

Ofer.

11 years ago
1
Level 3

in Simply Simon it self since it is a template ^^ 

greetingz

11 years ago
0
Level 4

Sorry for my newbieness... How exactly do I do it ? 

Thanks again. I appreciate your help.

Get a Book for SEBLOD