Closed Ruud68 closed 10 years ago
Added to the list of bugfixes for the next release.
Hi, not a developer but thought I give it a shot:
This is what I did: in ./meetgavern/html/com_content/article/default.php I added the following logic:
set variable:
$aside = False
where 'aside' is created I set $aside=True like this
<aside>
<?php $aside = True; ?>
<?php if ($params->get('show_publish_date')) : ?>
...
and then I add some logic:
<?php if ($aside==True): ?>
<?php echo '<div class="gk-article">'; ?>
<?php else : ?>
<?php echo '<div class="gk-article-noaside">'; ?>
<?php endif; ?>
in joomla.less I add:
.gk-article-noaside { font-size: 1.1@baseBodyFontSize; line-height: 2@baseBodyFontSize !important; margin: 0; }
Now for the good part.... this works :) these changes should then also be added to ./meet_gavern/html/com_content/featured/default_item.php ./meet_gavern/html/com_content/category/blog_item.php
If this makes sence from a developer point of view I can complete the fix and create a pull request for it... please advise
Your idea is ok, but I'll use my solution which will be more consistent with the template code :)
okay, looking forward to it :)
Hi, thanks for this fix. implemented it on my test site and I am struggling to get it to work correctly. I have set all article options to hide (global options), I have a menu item that displays a single article. In this menu item I toggle the options, but I cannot find the logic for which one triggers the display of aside.
As I understand it from the code it should toggle on the value of $aside_visible (being e.g. show_publish_date = visible or show_category = visible)
When setting everything to hide except show_publish_date it doesn't show. additionally setting show_modify_date to show it will show, but this is not correct is it?
Can you tell me which values should be set to visible in order to display the aside?
That's weird, but I've removed brackets and I've changed or to ||: https://github.com/GavickPro/Meet-Gavern/commit/fa81653c0442eb49794aeb95593710ae69733605
Now it should work fine.
Hi @dziudek I can confirm that this is now fixed! thanks for working on it :) regards, Ruud.
Hi, when displaying article info, like auhor and category,
I have a bunch of articles that do not have any article info enabled, so the
How can I get the following use cases;
below two screenshots depicting the situation (first is current situation with margin, second is preferred situation):