Hide 'Featured Articles' on frontpage of multilingual site

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Jun 23, 2015 12:50 pm
Reply with quote
Report this post
Hi,

at http://42pulse.com/creativity/index.php/en/ you can find the English version of a multilingual (EN, DE, RO) website.

The IDs of the menu item to the home page in each language are 743 (en), 744 (de) and 745 (ro)

I managed to solve the issue of modules being displayed next to each other rather than below each other with the information I found in the forum and adding the rules in template configuration:

743=onepage
744=onepage
745=onepage

However, I still face the problem, that a section for 'featured articles' is being displayed (the header reads 'Home', as you can see by scrolling down) between the 'What We Do' and 'About' modules.

I tried the approach described here https://www.gavick.com/documentation/joomla/how-to-disable-content-on-selected-joomla-pages, but to no avail. According to this, I would have to add the rule 'noMainbody' to the respective ID and enter some changed in the override.css.

Problem is, that I don't know what ID to take. 'Featured Articles' is not a specific page. So I tried it by using the ID of the menu items like this:

743=noMainbody

But this does not have any effect. 'noMainbody' does not show up in the source code.

Then I added the suffix 'noMainbody' to the menu item properties (in 'Page Class' under 'Page Display'). This causes the source code to include this:

Code: Select all
<div id="gkMainbody">
   <section class="blog-featurednoMainbody" itemscope itemtype="http://schema.org/Blog">
      <header>
         <h1>Home</h1>
      </header>
   </section>
</div>


I enabled CSS override and added this:
Code: Select all
.noMainbody #gkMainbody { display: none !important}


No effect, so I tried this:
Code: Select all
.blog-featurednoMainbody #gkMainbody { display: none !important}


Again, no effect.

So this is where I am now. Would appreciate your help in this matter.
User avatar
Fresh Boarder

GK User
Wed Jun 24, 2015 1:36 pm
Reply with quote
Report this post
From what I see the problem is with same id used twice. If you want to add multiple classes to one page, please provide them in one line:
Code: Select all
onepage noMainbody
User avatar
Moderator

GK User
Wed Jun 24, 2015 5:23 pm
Reply with quote
Report this post
I am afraid not. The issue is not the alignment of the modules (anymore), but the visibility of the 'featured articles'.

So I don't know to which ID I should apply the 'noMainbody' rule.

Problem is, that I don't know what ID to take. 'Featured Articles' is not a specific page. So I tried it by using the ID of the menu items like this:
User avatar
Fresh Boarder

GK User
Fri Jun 26, 2015 7:11 am
Reply with quote
Report this post
Isn't this a homepage? How do you navigate to such a page?
User avatar
Moderator

GK User
Fri Jun 26, 2015 11:10 am
Reply with quote
Report this post
I am afraid, I am not explaining this properly. Let me try it this way:

If you use the 'creativity' template without multilingual support enabled, it works perfectly. The section for featured articles with the heading 'Home' does not show up.

Once you enable multilingual support, it does. I just don't want to see the 'featured article' section there.
User avatar
Fresh Boarder

GK User
Sun Jun 28, 2015 7:45 pm
Reply with quote
Report this post
From what I see the issue is gone. Am I right?
User avatar
Moderator

GK User
Mon Jun 29, 2015 11:03 am
Reply with quote
Report this post
yes, by accident. I had not realized. But now I know why:

If you assign a module (e.g. ImageShow GK4) to the 'mainbody' on the frontpage, the 'featured articles' will not be displayed anymore.

Not sure this is an actual solution, but I can certainly live with it. As I said, I had not realized this effect, because I did not expect it at all :)
User avatar
Fresh Boarder

GK User
Mon Jun 29, 2015 4:32 pm
Reply with quote
Report this post
Actually you should be also able to hide default articles simply by using noMainbody suffix... But if this solution works, then why do bother ;)
User avatar
Moderator


cron