Mackeral_Fillet
Well-known member
Thanks Jaxel
My mistake, it's some of my customisations.You would have to bring it up with them. Because this code is inherit to XF2's core.
Thanks very much for the update @Jaxel
It it possible to have a different widget appear? The code here refers to the same widget appearing after x number of articles.
Suppose I want a different widget to appear after article 6? Is that possible?
Thanks,
Rob.
<xf:if is="$context.i == 3"><div class="porta-article-item">
<div class="block-container porta-article-container">
<h3 class="block-header">{$title}</h3>
<div class="block-body block-row">
This widget will appear after third article.
</div>
</div>
</div>
<xf:elseif is="$context.i == 5" />
<div class="block-container porta-article-container">
<h3 class="block-header">{$title}</h3>
<div class="block-body block-row">
This widget will appear after fifth article.
</div>
</div>
</div>
</xf:if>
I cant get that to work at all unfortunately.Don't use the modulo operator, it doesn't make sense, use equality sign only.
Code:<xf:if is="$context.i == 3"><div class="porta-article-item"> <div class="block-container porta-article-container"> <h3 class="block-header">{$title}</h3> <div class="block-body block-row"> This widget will appear after third article. </div> </div> </div> <xf:elseif is="$context.i == 5" /> <div class="block-container porta-article-container"> <h3 class="block-header">{$title}</h3> <div class="block-body block-row"> This widget will appear after fifth article. </div> </div> </div> </xf:if>
"hjhjh." is not a part of the original post, it shows up if the article is long and its url leads to the article.picture?
I cant get that to work at all unfortunately.
<xf:if is="$context.i == 3"><div class="porta-article-item">
<div class="block-container porta-article-container">
<h3 class="block-header">{$title}</h3>
<div class="block-body block-row">
This widget will appear after third article.
</div>
</div>
</div>
<xf:elseif is="$context.i == 5" /><div class="porta-article-item">
<div class="block-container porta-article-container">
<h3 class="block-header">{$title}</h3>
<div class="block-body block-row">
This widget will appear after fifth article.
</div>
</div>
</div>
</xf:if>
That's on the live site which I have not updated yet.
Hi Jaxel,
There seems to be an issue with attachments not showing up in articles. We just updated our test site to XF 2.0.5, and also updated a whole bunch of add-ons including XenPorta to 2.0.21.
Now all attachments in the articles do not show up in the portal view.
View attachment 174596
The highlighted areas contain image attachments that were visible previously. I have rebuilt the cache for Attachment Thumbnails, but this didn't have any effect.
Any ideas on where could the problem lie? I have checked permissions for users, groups and nodes, and all are yes to view attachments.
- You can now disable the link to modal (popout) windows for XenMedio promoted articles.
- Fixed a bug which would give a 404 error on authors before they were created.
- Fixed a bug that was stripping YouTube embed data when running the importer.
We use essential cookies to make this site work, and optional cookies to enhance your experience.