Elxis CMS Forum

Support => General => Topic started by: ROUBOS on January 13, 2014, 12:39:55

Title: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: ROUBOS on January 13, 2014, 12:39:55
Hi,
I normally create my own templates to use with elxis. Have never created a template for the new Elxis 4.x.
I would like to create a new template and convert an old Elxis site to a new 4.x version.
Actually I only want to take the articles across, not the plugins.

Can we just use any html template that uses jquery (to make it more presentable) and convert it to an Elxis template?
Is it as simple as adding the Elxis 4.x php code?

thanks
(It's been a while since I last created an Elxis site and looking forward to working with Elxis again)
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: webgift on January 14, 2014, 17:45:37
Unfortunately i can't tell you if it's simple or easy to do that as it will be a totally subjective opinion. You could use the existing templates (https://www.elxis.net/edc/templates/) in order to help you. We are here to assist you if you need something in particular.


Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: ROUBOS on January 14, 2014, 18:24:11
thanks for your reply.

Since I have created a few templates myself in the past, I will go ahead and try it.

All I will need is the template guide for Elxis 4.x for the php code required.

thanks
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: datahell on January 14, 2014, 20:56:15
Elxis 4.x templates are the same or even easier than 2009.x. The difficulty is on the complexity you want to add afterwards, after the basic layout/style. Css/jquery/scripts, etc, are the same for Elxis 4.x, 2009.x, wordpress, joomla, drupal, plain html, anything.... These things are platform independent. If for example you want to create your own image slider you have to know javascript. If you dont know javascript you can't write js code in any cms.

The template's tutorial for Elxis 4.x (https://www.elxis.net/docs/developers/tutorials/templates-guide.html) is the place to start.
The php you will need are these four standard code blocks, anything else is optional:

<?php $eDoc->showHead(); ?> display the page's head
<?php $eDoc->modules('left'); ?>  load a module's position
<?php $eDoc->component(); ?> display the main component
<?php $eDoc->pathway(false); ?> display the pathway

You can convert any html template to an Elxis 4.x template.
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: ROUBOS on January 14, 2014, 22:56:43
thank you.

Now since I have an Elxis site running 2009.3, should I install Elxis 4.2 in a subfolder and once ready import all articles from the previous site and make it live? Or do I convert the 2009.3 to a 4.2 Elxis site?
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: webgift on January 15, 2014, 10:58:09
You have to install Elxis CMS 4.2 to a subfolder of your Elxis CMS 200x.x installation and convert it by following these instructions (https://forum.elxis.org/index.php?topic=7914.msg50994#msg50994).
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: ROUBOS on January 18, 2014, 10:44:24
thank you,
I will look into it and try and get it done.
There is a very active website I created long ago that has many members and daily visits that I want to upgrade.

thanks again.
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: webgift on January 19, 2014, 10:51:28
You are very welcome, Roubos.
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: ROUBOS on January 19, 2014, 11:58:55
To install 4.2 I will need to create a database as per normal right? Or do I use the current database.
Also on the Elxis site there is version 4.1 for download. Is 4.2 a beta?

thanks
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: datahell on January 19, 2014, 13:02:27
Current Elxis version is 4.1.
Elxis 4.2 is under development.
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: webgift on January 19, 2014, 16:39:06
Yes you should create a new database. It's like you do a fresh install of Elxis CMS 4.1. Don't forget to install to it on a sub-folder of your elxis 200x.x site. Send us a question if you face any issue.
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: ROUBOS on January 20, 2014, 14:49:45
Ok when I tried to move the repository/ folder to the recomended location, I get the permission denied error...

so I guess I need to talk to the provider for this, or should I just use the default location?
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: webgift on January 20, 2014, 15:25:16
As it seems you have set the repository folder properly. Now you must change the folder permission to 755 and verify that you are the owner of this folder.
In case that you have ssh access as a root you could give 2 lines of commands:
chown -R owner:owner /path/to/repository/folder
chmod -R 755 /path/to/repository/folder
 
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: ROUBOS on January 20, 2014, 15:36:34
the repository folder does have permission 755

trying to move it using the Plesk File manager
Title: Re: Can we use a html template (that uses jquery) as an Elxis 4.x template?
Post by: webgift on January 20, 2014, 15:54:00
Can you please send me FTP access via PM? As it seems your provider suggested: the Plesk File manager as it won't change the owner of the directories.