Missing sections in when creating blog from awe template

EdBoon's picture
EdBoon
Tue, 04/19/2016 - 08:49
#1
Missing sections in when creating blog from awe template

Hi,

When I create a blog page on the make template I miss the sections to use in the blog page.

See screenshot.

Please let me know.

Regards,

Ed Boon

visioned.net

Image title

phuonght's picture
phuonght
Tue, 04/19/2016 - 22:41

Hi,
In node.tpl.php or file node override, we must use <?php print render($content); ?> to have all sections of awecontent or you can add <?php print render($content['builder']); ?> for backend (drag drop sections) <?php print render($content['awe_content']); ?> to display when viewing node.

phuonght's picture
phuonght
Wed, 04/20/2016 - 23:38

Please update file sites/all/themes/md_make/templates/node/blog/node--blog.tpl.php with code at http://codepaste.net/q4bkfa.

phuonght's picture
phuonght
Wed, 04/27/2016 - 06:59

- Changing code file node--blog.tpl.php can not make all pages fullwidth.
- Also, you need to know about class container of bootraps: 

+ this class will set displaying content with a certain size and centered: http://getbootstrap.com/css/
+ if this class does not exit, all content will display fullwidth.
- About file template related to class container:
+ please take a look at file page--xxx.tpl.php, example: file page--node--type--page.tpl.php template for content type page using awecontent.
lines from 164 to166

<?php if (!isset($awecontent)): ?>
<div class="container content-with-sidebar">
<?php endif; ?>

and lines from 208 to 210

<?php if (!isset($awecontent)): ?>
</div>
<?php endif; ?>

this code section help you check if a page uses awecontent. If it does not use awecontent so print div will contain class container. When using awecontent size of content will be determined by settings of sections. 

So depend on which layout, you can customize your template to fit with it. Our Make theme also support some situation and display nicely. We can not find a perfect theme, of course. 

On the other hand, awecontent help you build layout for page easier than using block and inserting block to region. Example: if you would like to display a block on the right of page, you only need to build page with awecontent and split section to 2 columns 8-4 then drag drop block to cloumn 4. 

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.