Issue with block aside tag

Issue with block aside tag

by Igor T -
Number of replies: 0

Hello!

As new member, I'm really sorry if I post in wrong forum. I just got some problems with content block.

So, I am trying to override page where available courses are displayed for each student. I have frontpage where all courses are displayed and that page works great. But I have another page - My courses where are shown courses that student is enrolled in. And on that page I have poblems because I want that page to look exactly same as my frontpage but I am not able to do that.


I have attached images of my front page and My Courses page. 

Also, in my theme renderer, I have overrided function block_course_overview_renderer to get not list but custom designed course boxes like you see in attachment. But I am not able to remove this content block on left side that looks like background for course. Can you help me with that? If that helps, I just want this My courses page to look exactly like front page, exactly same HTML and CSS if possible.

Also, the code which is generated and which wrap my content on My course page is this:

[code]

<aside id="block-region-content" class="block-region" data-blockregion="content" data-droptarget="1">

<a href="#sb-1" class="skip-block">Skip Course overview</a>

<div id="inst10" class="block_course_overview  block" role="complementary" data-block="course_overview" data-instanceid="10" aria-labelledby="instance-10-header"><div class="header">

<div class="title"><div class="block_action"></div>

<h2 id="instance-10-header">Course overview</h2>

</div>

</div>

<div class="content">

<section id="region-main">

<div class="caption-hover">

<div class="slide">

<img src="http://domain.com/pluginfile.php?file=%2F732%2Fcourse%2Foverviewfiles%2F5.jpg">

</div>

<div class="mask lightblue">

<h2>Course name</h2>

<p></p>

<a title="Course name" class="info" href="http://domain.com/course/view.php?id=75">Go To Course</a>

</div>

</section>

</div></div>

<span id="sb-1" class="skip-block-to"></span>

</aside>

[/code]


The code I really need is only this part within section tags. Other I would like to remove, but section is inherited in aside and other tags. I tried many ways just to get rendered content outside block, but no way for me. :/

Thank you.

Attachment frontpage.jpg
Attachment mycourses.jpg
Average of ratings: -