jmawebtech Posted May 1, 2015 Share Posted May 1, 2015 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 More sharing options...
PascalVG Posted May 2, 2015 Share Posted May 2, 2015 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 More sharing options...
jmawebtech Posted May 2, 2015 Author Share Posted May 2, 2015 Hi, Thanks for the code. Is there a way to add HTML to the configure page? Link to comment Share on other sites More sharing options...
PascalVG Posted May 4, 2015 Share Posted May 4, 2015 More info on the helper pages/classes here: http://doc.prestashop.com/display/PS16/Using+the+Helper+classes Not sure if it by default can handle HTML text to display, but have a look. My 2 cents, pascal Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now