Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Header.php
jetblab
post Dec 2 2008, 10:02 PM
Post #1


Newbie
*

Group: Members
Posts: 5
Joined: 30-November 08
Member No.: 4,648



Reputation:   0  


Hello,

Have just recently purchased Avactis and am starting the tedious process of customizing the store. Lot of questions...

1) What is the fastest most efficient way of doing this? Do I have to manually update all the templates? What if I make a slight change or modification to my template? Do I have to go back and change ALL of them?

2) Is it possible to include a php call for a header.php file and then just have to change that one file if I have a update?

I must be missing the manual for customizing...I'm sure it's on this site somewhere. Any ideas?

Thanks for all your help.
Go to the top of the page
  
+Quote Post
jetblab
post Dec 8 2008, 11:56 PM
Post #2


Newbie
*

Group: Members
Posts: 5
Joined: 30-November 08
Member No.: 4,648



Reputation:   0  


QUOTE(jetblab @ Dec 3 2008, 01:02 AM) [snapback]9935[/snapback]

Hello,

Have just recently purchased Avactis and am starting the tedious process of customizing the store. Lot of questions...

1) What is the fastest most efficient way of doing this? Do I have to manually update all the templates? What if I make a slight change or modification to my template? Do I have to go back and change ALL of them?

2) Is it possible to include a php call for a header.php file and then just have to change that one file if I have a update?

I must be missing the manual for customizing...I'm sure it's on this site somewhere. Any ideas?

Thanks for all your help.



I'll answer my own question. Yes, this is possible and I have incorporated this "feature" into my site whereby if I want to change my logo, tagline, or my horizontal navbar (or anything else), it gets the code from a header.tpl.html template place in the storefront-files/includes folder.

This does make me a little nervous that over a week, this post went unanswered by any forum admins. I hope that isn't a sign of things to come...
Go to the top of the page
  
+Quote Post
Marco
post Dec 9 2008, 07:57 AM
Post #3


Avactis Team Member
*****

Group: Administrators
Posts: 308
Joined: 3-December 07
From: Pentasoft Corp.
Member No.: 4,126



    


Sorry for that, we're just so busy with the upcoming release...

The main thing everybody should understand: it's all just HTML with PHP tags. There's nothing special with it. Edit, rewrite, include, split and any other way change these files according to your preferences.

The other most important thing is avactis-layouts/storefront-layout.ini—be sure it's correct.


--------------------
Go to the top of the page
  
+Quote Post
TestZero
post Feb 5 2009, 08:18 PM
Post #4


Newbie
*

Group: Members
Posts: 2
Joined: 5-February 09
Member No.: 4,725



Reputation:   0  


QUOTE(jetblab @ Dec 8 2008, 11:56 PM) [snapback]9983[/snapback]

I'll answer my own question. Yes, this is possible and I have incorporated this "feature" into my site whereby if I want to change my logo, tagline, or my horizontal navbar (or anything else), it gets the code from a header.tpl.html template place in the storefront-files/includes folder.


Hello,
I have wondered about this too. Where do you put the reference/link to the header.tpl.html file so the cart has access to it? And, how do you keep the flower store header from being the default?

There is no clear tutorial on how to change the site appearance...

Thanks,
TZ
Go to the top of the page
  
+Quote Post
Albert
post May 2 2009, 09:30 PM
Post #5


Novice
**

Group: Members
Posts: 15
Joined: 29-April 09
Member No.: 4,823



Reputation:   -1  


I am very much confused about all this thing about website, but reading a lot i am also pick up and little by little I starter learning how to put up a website. Thanks you for ideas and inputs.
Go to the top of the page
  
+Quote Post
Linda
post May 5 2009, 12:47 AM
Post #6


Avactis Integrator
*****

Group: Members
Posts: 396
Joined: 20-December 06
Member No.: 326



Reputation:   8  


Hi Everyone,

Marco is correct anything can be added anywhere in your design.
Making your own include is actually very simple.

It simply needs to be whatever the code was that you would normally put into your document.

I actually do this with CSS rather than an include if it only calls an image.

Here is an example:
This is my tag for my header image in the index template

<div class="Header-png"></div> <!-- Header Image -->

Here is the CSS for that tag in my style.css

div.Header-png {
position: absolute;
z-index:-2;
top: 0;
left: 0;
width: 898px;
height: 200px;
background-image: url('images/Header.png');
background-repeat: no-repeat;
background-position: left top;
}

In the future if you want to change the image you simply make a new image and exchange it and viola you have a new header.

For those of you who want to make an include?
Lets take a different piece of code where your header image is called.

<div align="left"><img src="images/text-hed.gif" width="500" height="60" alt="header image" border="0"></div>
<br /><br />
<div class="tnav" align="right">
<?php include('storefront-files/includes/main_menu2.tpl.html'); ?>
</div>
<hr>
<br />

Copy the red bit of code into an empty document:


<div align="left"><img src="images/text-hed.gif" width="500" height="60" alt="header image" border="0"></div>

name and save it say ... header.tpl.html ... upload to your storefront-files/include/ ... directory

Then where the tag was above in your doc code you will now replace with the php that will call that tpl.html like this:

<?php include('storefront-files/includes/header.tpl.html'); ?>
<br /><br />
<div class="tnav" align="right">
<?php include('storefront-files/includes/main_menu2.tpl.html'); ?>
</div>
<hr>
<br />

Not that hard once you get the hang of it all.
CSS and includes make your whole website changes very manageable from easy access locations.

Linda smile.gif


--------------------
I can't is an excuse for mediocrity.
Go to the top of the page
  
+Quote Post
Jodes
post Dec 3 2010, 06:43 AM
Post #7


Novice
**

Group: Members
Posts: 34
Joined: 23-November 10
From: Victoria, Australia
Member No.: 5,747
2.1


Reputation:   0  


Is this code still the same with the current version of Avactis? V2.0

I ask because I wouldn't mind giving it a go (setting up what you've explained above). But wanted to check first before playing around with any files.
Go to the top of the page
  
+Quote Post
Oleg
post Jan 6 2011, 07:47 AM
Post #8


Avactis Team Member
******

Group: Administrators
Posts: 510
Joined: 5-November 09
From: Pentasoft Corp.
Member No.: 5,040
Avactis Owned 1.9.1


    


QUOTE (Jodes @ Dec 3 2010, 07:43 AM) *
Is this code still the same with the current version of Avactis? V2.0

I ask because I wouldn't mind giving it a go (setting up what you've explained above). But wanted to check first before playing around with any files.


It is even easy now in Avactis 2.0.

Use visual layout editor (Page Manager) to modify blocks. You can add own PHP code there and even create your own blocks.

More details: http://docs.avactis.com/20/index.html?page_manager.htm


--------------------
Go to the top of the page
  
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th May 2013 - 04:29 AM