Tagged: main; body; FULL-1; template; css
January 5, 2015 at 6:15 pm #1801
I’m excited by the design and functionality of this template. But I do have a small issue: I have several modules following the tutorial, explaining how to make it look the same way as the template demo does. BUT if I want to show up third party things (eg. a download-section) in the main body (as the button “Go inside” it does) and get rid of this Full-1, Full-2, etc. Modules - so just the menu and my new main body - I still have the situation, that first of all other content, Full-1 till 4 is showing up, then comes my main body and then again the other Full-sections. Can someone please tell me how to make it work, that my main body overloads this Full-stuff and makes them disappear?
AxyloJanuary 6, 2015 at 9:57 am #1805
Hi Guy !
Which versions have you used for your site are pro or free ?
Best regards !
Toan PhamJanuary 6, 2015 at 10:58 pm #1808
Hi, thanks for your reply. I used ST Deep 1.0.0 free.January 11, 2015 at 4:36 pm #1815
anybody out there?January 12, 2015 at 2:50 am #1817
Hi Axylol !
You can open the file “default.php” in folder “http://your_site/templates/st_deep/core/layouts and read it. I think you will understand it.
Best regards !
Toan PhamJanuary 15, 2015 at 8:34 pm #1834
Hi Toan Pham
Thank you very much for you answer. I went through the php-File. And I understood that it steers the whole display of the template. But I can only change it for everything or nothing. I’d like to stay with the same starting page. Once I click on a menu item, it will change to another display behaviour without the full-modules. Is there a way where I can solve it with overrides?
Thank you very much
Axylo1January 22, 2015 at 12:15 am #1843
Finally found it: you need to modify and extend the st_deep/index.php-file as follows:
- add the code:12$layout = $this->params->get('layout_style');echo $template->render($layout);
- and replace
public function render($layout = 'default')with
public function render($layout)in the file template.php in st_deep/core/classes/
- copy the default.php file in /st_deep/core/layouts and give a name (eg. example.php)
- edit the example.php as you wish
- extend the templateDetails.xml with1234567<field name="layout_style"type="radio"default="default" class="btn-group"label="Layout Style" description="Please choose the style of your layout"><option value="default">default</option><option value="example">example</option></field>
hope this helps.January 22, 2015 at 12:17 am #1844
hmm, can’t edit my post: the first code snippet would be:12$layout = $this->params->get('layout_style');echo $template->render($layout);
You must be logged in to reply to this topic.