Jump to content

Configure Page Content


jmawebtech

Recommended Posts

Hi,

 

I am creating my first PrestaShop module. I am a C# programmer with a limited understanding of PHP. When my module is installed and the user clicks configure, I want to add some content. Here is an example layout:

 

Content:

What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the ...
 
Settings:
 
Name
Textbox
 
I believe I know how to add settings, but how do I adjust the layout of the configure page?
Link to comment
Share on other sites

Maybe for example look in modules/blockcms/blockcms.php

 

In function

  protected function displayForm()

 
First of all they have all kind of examples what/how you can display input fields like textarea, radioboxes etc.
 
In there you will also find a line like this:
 
    'class' => 'pull-right big-font', 
 

Which will add  the code

    class="pull-right big-font"

to the element 

 

 

Then in css (for example in the themes/<your theme folder>/css/global.css file) you can decorate whatever you need using the class as reference to the element.

 

like

 

.pull-right {

  float:right;

  margin-right: 10px;

}

 

.big-font {

    font-size: 20px;

}

 

 

or so

 

 

Hope this helps,

pascal

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...