@Jaxel or anyone else.
Is it possible to remove the addthis social bar from the article in Xenporta
View attachment 97950
Thanks for any guidance. ICPOA FOP
I'm on a cell fone now, I remember you need to edit the template file EWRporta2_ArticleView
.sidebar .section.visitorPanel {display:none;}
foreach ($articles AS &$article)
{
$article['article_date'] = $article['order_date'];
}
<ul class="statData">
<li><div class="iconKey views"></div>{xen:number $article.view_count}</li>
<li><div class="iconKey comments"></div>{xen:number $article.reply_count}</li>
</ul>
.articleItem .statData {
position: absolute;
right: 0;
}
.articleItem .statData li{
display: inline-block;
}
<xen:if is="@enableResponsive">
@media (max-width:@maxResponsiveNarrowWidth)
{
.articleItem .statData { display: none; }
}
</xen:if>
In the next version, if there are too many categories, it will simply break into a second line.@Jaxel: Will the overlapping categories @ article list be fixed in the upcoming update? It looks so bad (visually, and I have to add the articles to the corresponding categories, so can't not do it..), I really need to fix this :\
Where is that link created?View attachment 98105
Google webmaster tool
false articles link ?
View attachment 98106
Test:
View attachment 98110
Demo URL: https://www.vinafix.vn/threads/acer-x223w.13910/www.vinafix.vn
Yes... create a layout for articles... dont put a sidebar in it.You can disable the sidebar when viewing the article only?
- About hardcoded phrases, check my pm.
- You forgot to implement the function to deal with the option "articlessimple_trim"
- EWRporta2_Model_Articles :
- The below loop can be avoided since there's a final loop after:
PHP:foreach ($articles AS &$article) { $article['article_date'] = $article['order_date']; }
- About the trim missing function:
The parseArticle function should have probably a new parameter to allow to get params from the widget and particulary the trim setting which could override the "$options->EWRporta2_articles_excerpt" or even the prebreak options.- Template: EWRporta2_ArticleList_Bit
- About the stat data, it would be nice to regroup them in a same parent. Ie:
HTML:<ul class="statData"> <li><div class="iconKey views"></div>{xen:number $article.view_count}</li> <li><div class="iconKey comments"></div>{xen:number $article.reply_count}</li> </ul>
Code:.articleItem .statData { position: absolute; right: 0; } .articleItem .statData li{ display: inline-block; }
On small screens, the stats often come above the date information, so may be this kind of css would be useful
Code:<xen:if is="@enableResponsive"> @media (max-width:@maxResponsiveNarrowWidth) { .articleItem .statData { display: none; } } </xen:if>
- About the phrase "porta2_by_x_on_y_at_z", it would also be nice to split it in 3 parts and let admin decide if they want to display the time, date, or none otherwise it can't be done by css since it requires to hide the whole block, unless (and that would be easier for you) you wrap each data inside a specific span tag.
- If the option "EWRporta2_articles_dateblock" is checked, there's no really use to display the date
- About the time, unless (I haven't tried) this data also reflects the edited time of the article and mention it clearly ("edited the..." ; useful to alert users of an update) ; now to keep this on a single line is going to be hard
$adjustDate = false;
if(...)
{
(...)
$adjustDate = true;
}
else
{
}
foreach ($articles AS &$article)
{
if($adjustDate)
{
$article['article_date'] = $article['order_date'];
}
$article = $this->parseArticle($article);
}
In the next version, if there are too many categories, it will simply break into a second line.
Doesn't that already exist?Could you add a "Validation Callback" for the Widget options ? That would be useful.
My bad, I totally missed it.Doesn't that already exist?
We use essential cookies to make this site work, and optional cookies to enhance your experience.